@pulumi/github 6.12.0-alpha.1770156575 → 6.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actionsEnvironmentSecret.d.ts +45 -5
- package/actionsEnvironmentSecret.js +15 -3
- package/actionsEnvironmentSecret.js.map +1 -1
- package/actionsEnvironmentVariable.d.ts +29 -18
- package/actionsEnvironmentVariable.js +16 -11
- package/actionsEnvironmentVariable.js.map +1 -1
- package/actionsOrganizationPermissions.d.ts +12 -0
- package/actionsOrganizationPermissions.js +2 -0
- package/actionsOrganizationPermissions.js.map +1 -1
- package/actionsOrganizationSecret.d.ts +67 -25
- package/actionsOrganizationSecret.js +8 -6
- package/actionsOrganizationSecret.js.map +1 -1
- package/actionsOrganizationSecretRepositories.d.ts +22 -14
- package/actionsOrganizationSecretRepositories.js +16 -8
- package/actionsOrganizationSecretRepositories.js.map +1 -1
- package/actionsOrganizationSecretRepository.d.ts +22 -14
- package/actionsOrganizationSecretRepository.js +16 -8
- package/actionsOrganizationSecretRepository.js.map +1 -1
- package/actionsOrganizationVariable.d.ts +20 -21
- package/actionsOrganizationVariable.js +4 -2
- package/actionsOrganizationVariable.js.map +1 -1
- package/actionsOrganizationVariableRepositories.d.ts +97 -0
- package/actionsOrganizationVariableRepositories.js +94 -0
- package/actionsOrganizationVariableRepositories.js.map +1 -0
- package/actionsOrganizationVariableRepository.d.ts +97 -0
- package/actionsOrganizationVariableRepository.js +94 -0
- package/actionsOrganizationVariableRepository.js.map +1 -0
- package/actionsRepositoryPermissions.d.ts +12 -0
- package/actionsRepositoryPermissions.js +2 -0
- package/actionsRepositoryPermissions.js.map +1 -1
- package/actionsSecret.d.ts +66 -19
- package/actionsSecret.js +10 -6
- package/actionsSecret.js.map +1 -1
- package/actionsVariable.d.ts +25 -15
- package/actionsVariable.js +6 -2
- package/actionsVariable.js.map +1 -1
- package/appInstallationRepositories.d.ts +3 -3
- package/appInstallationRepositories.js +3 -3
- package/appInstallationRepository.d.ts +3 -3
- package/appInstallationRepository.js +3 -3
- package/dependabotOrganizationSecret.d.ts +46 -27
- package/dependabotOrganizationSecret.js +8 -8
- package/dependabotOrganizationSecret.js.map +1 -1
- package/dependabotOrganizationSecretRepositories.d.ts +21 -18
- package/dependabotOrganizationSecretRepositories.js +15 -12
- package/dependabotOrganizationSecretRepositories.js.map +1 -1
- package/dependabotOrganizationSecretRepository.d.ts +97 -0
- package/dependabotOrganizationSecretRepository.js +94 -0
- package/dependabotOrganizationSecretRepository.js.map +1 -0
- package/dependabotSecret.d.ts +51 -19
- package/dependabotSecret.js +10 -6
- package/dependabotSecret.js.map +1 -1
- package/emuGroupMapping.d.ts +20 -2
- package/emuGroupMapping.js +8 -2
- package/emuGroupMapping.js.map +1 -1
- package/getReleaseAsset.d.ts +212 -0
- package/getReleaseAsset.js +142 -0
- package/getReleaseAsset.js.map +1 -0
- package/index.d.ts +12 -0
- package/index.js +23 -5
- package/index.js.map +1 -1
- package/organizationRuleset.d.ts +4 -7
- package/organizationRuleset.js +1 -4
- package/organizationRuleset.js.map +1 -1
- package/package.json +2 -2
- package/repository.d.ts +16 -12
- package/repository.js +1 -3
- package/repository.js.map +1 -1
- package/repositoryRuleset.d.ts +3 -3
- package/types/input.d.ts +67 -5
- package/types/output.d.ts +69 -7
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource adds permission for a repository to use a Dependabot secret within your GitHub organization.
|
|
4
|
+
* You must have write access to an organization secret to use this resource.
|
|
5
|
+
*
|
|
6
|
+
* This resource is only applicable when `visibility` of the existing organization secret has been set to `selected`.
|
|
7
|
+
*
|
|
8
|
+
* ## Example Usage
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as github from "@pulumi/github";
|
|
13
|
+
*
|
|
14
|
+
* const example = new github.DependabotOrganizationSecret("example", {
|
|
15
|
+
* secretName: "mysecret",
|
|
16
|
+
* plaintextValue: "foo",
|
|
17
|
+
* visibility: "selected",
|
|
18
|
+
* });
|
|
19
|
+
* const exampleRepository = new github.Repository("example", {
|
|
20
|
+
* name: "myrepo",
|
|
21
|
+
* visibility: "public",
|
|
22
|
+
* });
|
|
23
|
+
* const exampleDependabotOrganizationSecretRepository = new github.DependabotOrganizationSecretRepository("example", {
|
|
24
|
+
* secretName: example.name,
|
|
25
|
+
* repositoryId: exampleRepository.repoId,
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* ## Import
|
|
30
|
+
*
|
|
31
|
+
* ### Import Command
|
|
32
|
+
*
|
|
33
|
+
* The following command imports the access of repository ID `123456` for the Dependabot organization secret named `mysecret` to a `v` resource named `example`.
|
|
34
|
+
*
|
|
35
|
+
* ```sh
|
|
36
|
+
* $ pulumi import github:index/dependabotOrganizationSecretRepository:DependabotOrganizationSecretRepository example mysecret:123456
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
export declare class DependabotOrganizationSecretRepository extends pulumi.CustomResource {
|
|
40
|
+
/**
|
|
41
|
+
* Get an existing DependabotOrganizationSecretRepository resource's state with the given name, ID, and optional extra
|
|
42
|
+
* properties used to qualify the lookup.
|
|
43
|
+
*
|
|
44
|
+
* @param name The _unique_ name of the resulting resource.
|
|
45
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
46
|
+
* @param state Any extra arguments used during the lookup.
|
|
47
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
48
|
+
*/
|
|
49
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DependabotOrganizationSecretRepositoryState, opts?: pulumi.CustomResourceOptions): DependabotOrganizationSecretRepository;
|
|
50
|
+
/**
|
|
51
|
+
* Returns true if the given object is an instance of DependabotOrganizationSecretRepository. This is designed to work even
|
|
52
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
53
|
+
*/
|
|
54
|
+
static isInstance(obj: any): obj is DependabotOrganizationSecretRepository;
|
|
55
|
+
/**
|
|
56
|
+
* ID of the repository that should be able to access the secret.
|
|
57
|
+
*/
|
|
58
|
+
readonly repositoryId: pulumi.Output<number>;
|
|
59
|
+
/**
|
|
60
|
+
* Name of the Dependabot organization secret.
|
|
61
|
+
*/
|
|
62
|
+
readonly secretName: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* Create a DependabotOrganizationSecretRepository resource with the given unique name, arguments, and options.
|
|
65
|
+
*
|
|
66
|
+
* @param name The _unique_ name of the resource.
|
|
67
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
68
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
69
|
+
*/
|
|
70
|
+
constructor(name: string, args: DependabotOrganizationSecretRepositoryArgs, opts?: pulumi.CustomResourceOptions);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Input properties used for looking up and filtering DependabotOrganizationSecretRepository resources.
|
|
74
|
+
*/
|
|
75
|
+
export interface DependabotOrganizationSecretRepositoryState {
|
|
76
|
+
/**
|
|
77
|
+
* ID of the repository that should be able to access the secret.
|
|
78
|
+
*/
|
|
79
|
+
repositoryId?: pulumi.Input<number>;
|
|
80
|
+
/**
|
|
81
|
+
* Name of the Dependabot organization secret.
|
|
82
|
+
*/
|
|
83
|
+
secretName?: pulumi.Input<string>;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* The set of arguments for constructing a DependabotOrganizationSecretRepository resource.
|
|
87
|
+
*/
|
|
88
|
+
export interface DependabotOrganizationSecretRepositoryArgs {
|
|
89
|
+
/**
|
|
90
|
+
* ID of the repository that should be able to access the secret.
|
|
91
|
+
*/
|
|
92
|
+
repositoryId: pulumi.Input<number>;
|
|
93
|
+
/**
|
|
94
|
+
* Name of the Dependabot organization secret.
|
|
95
|
+
*/
|
|
96
|
+
secretName: pulumi.Input<string>;
|
|
97
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.DependabotOrganizationSecretRepository = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource adds permission for a repository to use a Dependabot secret within your GitHub organization.
|
|
10
|
+
* You must have write access to an organization secret to use this resource.
|
|
11
|
+
*
|
|
12
|
+
* This resource is only applicable when `visibility` of the existing organization secret has been set to `selected`.
|
|
13
|
+
*
|
|
14
|
+
* ## Example Usage
|
|
15
|
+
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as github from "@pulumi/github";
|
|
19
|
+
*
|
|
20
|
+
* const example = new github.DependabotOrganizationSecret("example", {
|
|
21
|
+
* secretName: "mysecret",
|
|
22
|
+
* plaintextValue: "foo",
|
|
23
|
+
* visibility: "selected",
|
|
24
|
+
* });
|
|
25
|
+
* const exampleRepository = new github.Repository("example", {
|
|
26
|
+
* name: "myrepo",
|
|
27
|
+
* visibility: "public",
|
|
28
|
+
* });
|
|
29
|
+
* const exampleDependabotOrganizationSecretRepository = new github.DependabotOrganizationSecretRepository("example", {
|
|
30
|
+
* secretName: example.name,
|
|
31
|
+
* repositoryId: exampleRepository.repoId,
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* ## Import
|
|
36
|
+
*
|
|
37
|
+
* ### Import Command
|
|
38
|
+
*
|
|
39
|
+
* The following command imports the access of repository ID `123456` for the Dependabot organization secret named `mysecret` to a `v` resource named `example`.
|
|
40
|
+
*
|
|
41
|
+
* ```sh
|
|
42
|
+
* $ pulumi import github:index/dependabotOrganizationSecretRepository:DependabotOrganizationSecretRepository example mysecret:123456
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
class DependabotOrganizationSecretRepository extends pulumi.CustomResource {
|
|
46
|
+
/**
|
|
47
|
+
* Get an existing DependabotOrganizationSecretRepository resource's state with the given name, ID, and optional extra
|
|
48
|
+
* properties used to qualify the lookup.
|
|
49
|
+
*
|
|
50
|
+
* @param name The _unique_ name of the resulting resource.
|
|
51
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
52
|
+
* @param state Any extra arguments used during the lookup.
|
|
53
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
54
|
+
*/
|
|
55
|
+
static get(name, id, state, opts) {
|
|
56
|
+
return new DependabotOrganizationSecretRepository(name, state, { ...opts, id: id });
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Returns true if the given object is an instance of DependabotOrganizationSecretRepository. This is designed to work even
|
|
60
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
61
|
+
*/
|
|
62
|
+
static isInstance(obj) {
|
|
63
|
+
if (obj === undefined || obj === null) {
|
|
64
|
+
return false;
|
|
65
|
+
}
|
|
66
|
+
return obj['__pulumiType'] === DependabotOrganizationSecretRepository.__pulumiType;
|
|
67
|
+
}
|
|
68
|
+
constructor(name, argsOrState, opts) {
|
|
69
|
+
let resourceInputs = {};
|
|
70
|
+
opts = opts || {};
|
|
71
|
+
if (opts.id) {
|
|
72
|
+
const state = argsOrState;
|
|
73
|
+
resourceInputs["repositoryId"] = state?.repositoryId;
|
|
74
|
+
resourceInputs["secretName"] = state?.secretName;
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
const args = argsOrState;
|
|
78
|
+
if (args?.repositoryId === undefined && !opts.urn) {
|
|
79
|
+
throw new Error("Missing required property 'repositoryId'");
|
|
80
|
+
}
|
|
81
|
+
if (args?.secretName === undefined && !opts.urn) {
|
|
82
|
+
throw new Error("Missing required property 'secretName'");
|
|
83
|
+
}
|
|
84
|
+
resourceInputs["repositoryId"] = args?.repositoryId;
|
|
85
|
+
resourceInputs["secretName"] = args?.secretName;
|
|
86
|
+
}
|
|
87
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
88
|
+
super(DependabotOrganizationSecretRepository.__pulumiType, name, resourceInputs, opts);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
exports.DependabotOrganizationSecretRepository = DependabotOrganizationSecretRepository;
|
|
92
|
+
/** @internal */
|
|
93
|
+
DependabotOrganizationSecretRepository.__pulumiType = 'github:index/dependabotOrganizationSecretRepository:DependabotOrganizationSecretRepository';
|
|
94
|
+
//# sourceMappingURL=dependabotOrganizationSecretRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dependabotOrganizationSecretRepository.js","sourceRoot":"","sources":["../dependabotOrganizationSecretRepository.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAa,sCAAuC,SAAQ,MAAM,CAAC,cAAc;IAC7E;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmD,EAAE,IAAmC;QACjJ,OAAO,IAAI,sCAAsC,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC7F,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,sCAAsC,CAAC,YAAY,CAAC;IACvF,CAAC;IAmBD,YAAY,IAAY,EAAE,WAAsG,EAAE,IAAmC;QACjK,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAsE,CAAC;YACrF,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,EAAE,YAAY,CAAC;YACrD,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,EAAE,UAAU,CAAC;SACpD;aAAM;YACH,MAAM,IAAI,GAAG,WAAqE,CAAC;YACnF,IAAI,IAAI,EAAE,YAAY,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC/C,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;aAC/D;YACD,IAAI,IAAI,EAAE,UAAU,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC7C,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,sCAAsC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3F,CAAC;;AAjEL,wFAkEC;AApDG,gBAAgB;AACO,mDAAY,GAAG,4FAA4F,CAAC"}
|
package/dependabotSecret.d.ts
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
* ## Example Usage
|
|
4
|
-
*
|
|
5
3
|
* ## Import
|
|
6
4
|
*
|
|
7
|
-
*
|
|
5
|
+
* ### Import Command
|
|
6
|
+
*
|
|
7
|
+
* The following command imports a GitHub Dependabot secret named `mysecret` for the repo `myrepo` to a `github_dependabot_secret` resource named `example`.
|
|
8
8
|
*
|
|
9
9
|
* ```sh
|
|
10
|
-
* $ pulumi import github:index/dependabotSecret:DependabotSecret
|
|
10
|
+
* $ pulumi import github:index/dependabotSecret:DependabotSecret example myrepo:mysecret
|
|
11
11
|
* ```
|
|
12
|
-
* NOTE: the implementation is limited in that it won't fetch the value of the
|
|
13
|
-
* `plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.
|
|
14
12
|
*/
|
|
15
13
|
export declare class DependabotSecret extends pulumi.CustomResource {
|
|
16
14
|
/**
|
|
@@ -29,7 +27,7 @@ export declare class DependabotSecret extends pulumi.CustomResource {
|
|
|
29
27
|
*/
|
|
30
28
|
static isInstance(obj: any): obj is DependabotSecret;
|
|
31
29
|
/**
|
|
32
|
-
* Date
|
|
30
|
+
* Date the secret was created.
|
|
33
31
|
*/
|
|
34
32
|
readonly createdAt: pulumi.Output<string>;
|
|
35
33
|
/**
|
|
@@ -37,19 +35,33 @@ export declare class DependabotSecret extends pulumi.CustomResource {
|
|
|
37
35
|
*/
|
|
38
36
|
readonly encryptedValue: pulumi.Output<string | undefined>;
|
|
39
37
|
/**
|
|
40
|
-
*
|
|
38
|
+
* ID of the public key used to encrypt the secret. This should be provided when setting `encryptedValue`; if it isn't then the current public key will be looked up, which could cause a missmatch. This conflicts with `plaintextValue`.
|
|
39
|
+
*/
|
|
40
|
+
readonly keyId: pulumi.Output<string>;
|
|
41
|
+
/**
|
|
42
|
+
* Plaintext value of the secret to be encrypted.
|
|
43
|
+
*
|
|
44
|
+
* > **Note**: One of either `encryptedValue` or `plaintextValue` must be specified.
|
|
41
45
|
*/
|
|
42
46
|
readonly plaintextValue: pulumi.Output<string | undefined>;
|
|
43
47
|
/**
|
|
44
|
-
*
|
|
48
|
+
* Date the secret was last updated in GitHub.
|
|
49
|
+
*/
|
|
50
|
+
readonly remoteUpdatedAt: pulumi.Output<string>;
|
|
51
|
+
/**
|
|
52
|
+
* Name of the repository.
|
|
45
53
|
*/
|
|
46
54
|
readonly repository: pulumi.Output<string>;
|
|
47
55
|
/**
|
|
48
|
-
*
|
|
56
|
+
* ID of the repository.
|
|
57
|
+
*/
|
|
58
|
+
readonly repositoryId: pulumi.Output<number>;
|
|
59
|
+
/**
|
|
60
|
+
* Name of the secret.
|
|
49
61
|
*/
|
|
50
62
|
readonly secretName: pulumi.Output<string>;
|
|
51
63
|
/**
|
|
52
|
-
* Date
|
|
64
|
+
* Date the secret was last updated by the provider.
|
|
53
65
|
*/
|
|
54
66
|
readonly updatedAt: pulumi.Output<string>;
|
|
55
67
|
/**
|
|
@@ -66,7 +78,7 @@ export declare class DependabotSecret extends pulumi.CustomResource {
|
|
|
66
78
|
*/
|
|
67
79
|
export interface DependabotSecretState {
|
|
68
80
|
/**
|
|
69
|
-
* Date
|
|
81
|
+
* Date the secret was created.
|
|
70
82
|
*/
|
|
71
83
|
createdAt?: pulumi.Input<string>;
|
|
72
84
|
/**
|
|
@@ -74,19 +86,33 @@ export interface DependabotSecretState {
|
|
|
74
86
|
*/
|
|
75
87
|
encryptedValue?: pulumi.Input<string>;
|
|
76
88
|
/**
|
|
77
|
-
*
|
|
89
|
+
* ID of the public key used to encrypt the secret. This should be provided when setting `encryptedValue`; if it isn't then the current public key will be looked up, which could cause a missmatch. This conflicts with `plaintextValue`.
|
|
90
|
+
*/
|
|
91
|
+
keyId?: pulumi.Input<string>;
|
|
92
|
+
/**
|
|
93
|
+
* Plaintext value of the secret to be encrypted.
|
|
94
|
+
*
|
|
95
|
+
* > **Note**: One of either `encryptedValue` or `plaintextValue` must be specified.
|
|
78
96
|
*/
|
|
79
97
|
plaintextValue?: pulumi.Input<string>;
|
|
80
98
|
/**
|
|
81
|
-
*
|
|
99
|
+
* Date the secret was last updated in GitHub.
|
|
100
|
+
*/
|
|
101
|
+
remoteUpdatedAt?: pulumi.Input<string>;
|
|
102
|
+
/**
|
|
103
|
+
* Name of the repository.
|
|
82
104
|
*/
|
|
83
105
|
repository?: pulumi.Input<string>;
|
|
84
106
|
/**
|
|
85
|
-
*
|
|
107
|
+
* ID of the repository.
|
|
108
|
+
*/
|
|
109
|
+
repositoryId?: pulumi.Input<number>;
|
|
110
|
+
/**
|
|
111
|
+
* Name of the secret.
|
|
86
112
|
*/
|
|
87
113
|
secretName?: pulumi.Input<string>;
|
|
88
114
|
/**
|
|
89
|
-
* Date
|
|
115
|
+
* Date the secret was last updated by the provider.
|
|
90
116
|
*/
|
|
91
117
|
updatedAt?: pulumi.Input<string>;
|
|
92
118
|
}
|
|
@@ -99,15 +125,21 @@ export interface DependabotSecretArgs {
|
|
|
99
125
|
*/
|
|
100
126
|
encryptedValue?: pulumi.Input<string>;
|
|
101
127
|
/**
|
|
102
|
-
*
|
|
128
|
+
* ID of the public key used to encrypt the secret. This should be provided when setting `encryptedValue`; if it isn't then the current public key will be looked up, which could cause a missmatch. This conflicts with `plaintextValue`.
|
|
129
|
+
*/
|
|
130
|
+
keyId?: pulumi.Input<string>;
|
|
131
|
+
/**
|
|
132
|
+
* Plaintext value of the secret to be encrypted.
|
|
133
|
+
*
|
|
134
|
+
* > **Note**: One of either `encryptedValue` or `plaintextValue` must be specified.
|
|
103
135
|
*/
|
|
104
136
|
plaintextValue?: pulumi.Input<string>;
|
|
105
137
|
/**
|
|
106
|
-
* Name of the repository
|
|
138
|
+
* Name of the repository.
|
|
107
139
|
*/
|
|
108
140
|
repository: pulumi.Input<string>;
|
|
109
141
|
/**
|
|
110
|
-
* Name of the secret
|
|
142
|
+
* Name of the secret.
|
|
111
143
|
*/
|
|
112
144
|
secretName: pulumi.Input<string>;
|
|
113
145
|
}
|
package/dependabotSecret.js
CHANGED
|
@@ -6,17 +6,15 @@ exports.DependabotSecret = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* ## Example Usage
|
|
10
|
-
*
|
|
11
9
|
* ## Import
|
|
12
10
|
*
|
|
13
|
-
*
|
|
11
|
+
* ### Import Command
|
|
12
|
+
*
|
|
13
|
+
* The following command imports a GitHub Dependabot secret named `mysecret` for the repo `myrepo` to a `github_dependabot_secret` resource named `example`.
|
|
14
14
|
*
|
|
15
15
|
* ```sh
|
|
16
|
-
* $ pulumi import github:index/dependabotSecret:DependabotSecret
|
|
16
|
+
* $ pulumi import github:index/dependabotSecret:DependabotSecret example myrepo:mysecret
|
|
17
17
|
* ```
|
|
18
|
-
* NOTE: the implementation is limited in that it won't fetch the value of the
|
|
19
|
-
* `plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.
|
|
20
18
|
*/
|
|
21
19
|
class DependabotSecret extends pulumi.CustomResource {
|
|
22
20
|
/**
|
|
@@ -48,8 +46,11 @@ class DependabotSecret extends pulumi.CustomResource {
|
|
|
48
46
|
const state = argsOrState;
|
|
49
47
|
resourceInputs["createdAt"] = state?.createdAt;
|
|
50
48
|
resourceInputs["encryptedValue"] = state?.encryptedValue;
|
|
49
|
+
resourceInputs["keyId"] = state?.keyId;
|
|
51
50
|
resourceInputs["plaintextValue"] = state?.plaintextValue;
|
|
51
|
+
resourceInputs["remoteUpdatedAt"] = state?.remoteUpdatedAt;
|
|
52
52
|
resourceInputs["repository"] = state?.repository;
|
|
53
|
+
resourceInputs["repositoryId"] = state?.repositoryId;
|
|
53
54
|
resourceInputs["secretName"] = state?.secretName;
|
|
54
55
|
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
55
56
|
}
|
|
@@ -62,10 +63,13 @@ class DependabotSecret extends pulumi.CustomResource {
|
|
|
62
63
|
throw new Error("Missing required property 'secretName'");
|
|
63
64
|
}
|
|
64
65
|
resourceInputs["encryptedValue"] = args?.encryptedValue ? pulumi.secret(args.encryptedValue) : undefined;
|
|
66
|
+
resourceInputs["keyId"] = args?.keyId;
|
|
65
67
|
resourceInputs["plaintextValue"] = args?.plaintextValue ? pulumi.secret(args.plaintextValue) : undefined;
|
|
66
68
|
resourceInputs["repository"] = args?.repository;
|
|
67
69
|
resourceInputs["secretName"] = args?.secretName;
|
|
68
70
|
resourceInputs["createdAt"] = undefined /*out*/;
|
|
71
|
+
resourceInputs["remoteUpdatedAt"] = undefined /*out*/;
|
|
72
|
+
resourceInputs["repositoryId"] = undefined /*out*/;
|
|
69
73
|
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
70
74
|
}
|
|
71
75
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
package/dependabotSecret.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dependabotSecret.js","sourceRoot":"","sources":["../dependabotSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"dependabotSecret.js","sourceRoot":"","sources":["../dependabotSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACvE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,gBAAgB,CAAC,YAAY,CAAC;IACjE,CAAC;IAiDD,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,I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E,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACzG,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACtD,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACnD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAE,CAAC;QACrF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AA/GL,4CAgHC;AAlGG,gBAAgB;AACO,6BAAY,GAAG,gDAAgD,CAAC"}
|
package/emuGroupMapping.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
+
* This resource manages mappings between external groups for enterprise managed users and GitHub teams. It wraps the [Teams#ExternalGroups API](https://docs.github.com/en/rest/reference/teams#external-groups). Note that this is a distinct resource from `github.TeamSyncGroupMapping`. `github.EmuGroupMapping` is special to the Enterprise Managed User (EMU) external group feature, whereas `github.TeamSyncGroupMapping` is specific to Identity Provider Groups.
|
|
4
|
+
*
|
|
3
5
|
* ## Example Usage
|
|
4
6
|
*
|
|
5
7
|
* ```typescript
|
|
@@ -14,10 +16,10 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
14
16
|
*
|
|
15
17
|
* ## Import
|
|
16
18
|
*
|
|
17
|
-
* GitHub EMU External Group Mappings can be imported using the
|
|
19
|
+
* GitHub EMU External Group Mappings can be imported using the `team_slug` and external `group_id` separated by a colon, e.g.
|
|
18
20
|
*
|
|
19
21
|
* ```sh
|
|
20
|
-
* $ pulumi import github:index/emuGroupMapping:EmuGroupMapping example_emu_group_mapping
|
|
22
|
+
* $ pulumi import github:index/emuGroupMapping:EmuGroupMapping example_emu_group_mapping emu-test-team:28836
|
|
21
23
|
* ```
|
|
22
24
|
*/
|
|
23
25
|
export declare class EmuGroupMapping extends pulumi.CustomResource {
|
|
@@ -41,6 +43,14 @@ export declare class EmuGroupMapping extends pulumi.CustomResource {
|
|
|
41
43
|
* Integer corresponding to the external group ID to be linked
|
|
42
44
|
*/
|
|
43
45
|
readonly groupId: pulumi.Output<number>;
|
|
46
|
+
/**
|
|
47
|
+
* Name of the external group.
|
|
48
|
+
*/
|
|
49
|
+
readonly groupName: pulumi.Output<string>;
|
|
50
|
+
/**
|
|
51
|
+
* ID of the GitHub team.
|
|
52
|
+
*/
|
|
53
|
+
readonly teamId: pulumi.Output<string>;
|
|
44
54
|
/**
|
|
45
55
|
* Slug of the GitHub team
|
|
46
56
|
*/
|
|
@@ -63,6 +73,14 @@ export interface EmuGroupMappingState {
|
|
|
63
73
|
* Integer corresponding to the external group ID to be linked
|
|
64
74
|
*/
|
|
65
75
|
groupId?: pulumi.Input<number>;
|
|
76
|
+
/**
|
|
77
|
+
* Name of the external group.
|
|
78
|
+
*/
|
|
79
|
+
groupName?: pulumi.Input<string>;
|
|
80
|
+
/**
|
|
81
|
+
* ID of the GitHub team.
|
|
82
|
+
*/
|
|
83
|
+
teamId?: pulumi.Input<string>;
|
|
66
84
|
/**
|
|
67
85
|
* Slug of the GitHub team
|
|
68
86
|
*/
|
package/emuGroupMapping.js
CHANGED
|
@@ -6,6 +6,8 @@ exports.EmuGroupMapping = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
+
* This resource manages mappings between external groups for enterprise managed users and GitHub teams. It wraps the [Teams#ExternalGroups API](https://docs.github.com/en/rest/reference/teams#external-groups). Note that this is a distinct resource from `github.TeamSyncGroupMapping`. `github.EmuGroupMapping` is special to the Enterprise Managed User (EMU) external group feature, whereas `github.TeamSyncGroupMapping` is specific to Identity Provider Groups.
|
|
10
|
+
*
|
|
9
11
|
* ## Example Usage
|
|
10
12
|
*
|
|
11
13
|
* ```typescript
|
|
@@ -20,10 +22,10 @@ const utilities = require("./utilities");
|
|
|
20
22
|
*
|
|
21
23
|
* ## Import
|
|
22
24
|
*
|
|
23
|
-
* GitHub EMU External Group Mappings can be imported using the
|
|
25
|
+
* GitHub EMU External Group Mappings can be imported using the `team_slug` and external `group_id` separated by a colon, e.g.
|
|
24
26
|
*
|
|
25
27
|
* ```sh
|
|
26
|
-
* $ pulumi import github:index/emuGroupMapping:EmuGroupMapping example_emu_group_mapping
|
|
28
|
+
* $ pulumi import github:index/emuGroupMapping:EmuGroupMapping example_emu_group_mapping emu-test-team:28836
|
|
27
29
|
* ```
|
|
28
30
|
*/
|
|
29
31
|
class EmuGroupMapping extends pulumi.CustomResource {
|
|
@@ -56,6 +58,8 @@ class EmuGroupMapping extends pulumi.CustomResource {
|
|
|
56
58
|
const state = argsOrState;
|
|
57
59
|
resourceInputs["etag"] = state?.etag;
|
|
58
60
|
resourceInputs["groupId"] = state?.groupId;
|
|
61
|
+
resourceInputs["groupName"] = state?.groupName;
|
|
62
|
+
resourceInputs["teamId"] = state?.teamId;
|
|
59
63
|
resourceInputs["teamSlug"] = state?.teamSlug;
|
|
60
64
|
}
|
|
61
65
|
else {
|
|
@@ -69,6 +73,8 @@ class EmuGroupMapping extends pulumi.CustomResource {
|
|
|
69
73
|
resourceInputs["groupId"] = args?.groupId;
|
|
70
74
|
resourceInputs["teamSlug"] = args?.teamSlug;
|
|
71
75
|
resourceInputs["etag"] = undefined /*out*/;
|
|
76
|
+
resourceInputs["groupName"] = undefined /*out*/;
|
|
77
|
+
resourceInputs["teamId"] = undefined /*out*/;
|
|
72
78
|
}
|
|
73
79
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
74
80
|
super(EmuGroupMapping.__pulumiType, name, resourceInputs, opts);
|
package/emuGroupMapping.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emuGroupMapping.js","sourceRoot":"","sources":["../emuGroupMapping.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"emuGroupMapping.js","sourceRoot":"","sources":["../emuGroupMapping.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACtE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;IA4BD,YAAY,IAAY,EAA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