@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
|
@@ -6,17 +6,15 @@ exports.ActionsOrganizationSecret = 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 actions organization secret named `mysecret` to a `github_actions_organization_secret` resource named `example`.
|
|
14
14
|
*
|
|
15
15
|
* ```sh
|
|
16
|
-
* $ pulumi import github:index/actionsOrganizationSecret:ActionsOrganizationSecret
|
|
16
|
+
* $ pulumi import github:index/actionsOrganizationSecret:ActionsOrganizationSecret example 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 ActionsOrganizationSecret extends pulumi.CustomResource {
|
|
22
20
|
/**
|
|
@@ -49,7 +47,9 @@ class ActionsOrganizationSecret extends pulumi.CustomResource {
|
|
|
49
47
|
resourceInputs["createdAt"] = state?.createdAt;
|
|
50
48
|
resourceInputs["destroyOnDrift"] = state?.destroyOnDrift;
|
|
51
49
|
resourceInputs["encryptedValue"] = state?.encryptedValue;
|
|
50
|
+
resourceInputs["keyId"] = state?.keyId;
|
|
52
51
|
resourceInputs["plaintextValue"] = state?.plaintextValue;
|
|
52
|
+
resourceInputs["remoteUpdatedAt"] = state?.remoteUpdatedAt;
|
|
53
53
|
resourceInputs["secretName"] = state?.secretName;
|
|
54
54
|
resourceInputs["selectedRepositoryIds"] = state?.selectedRepositoryIds;
|
|
55
55
|
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
@@ -65,11 +65,13 @@ class ActionsOrganizationSecret extends pulumi.CustomResource {
|
|
|
65
65
|
}
|
|
66
66
|
resourceInputs["destroyOnDrift"] = args?.destroyOnDrift;
|
|
67
67
|
resourceInputs["encryptedValue"] = args?.encryptedValue ? pulumi.secret(args.encryptedValue) : undefined;
|
|
68
|
+
resourceInputs["keyId"] = args?.keyId;
|
|
68
69
|
resourceInputs["plaintextValue"] = args?.plaintextValue ? pulumi.secret(args.plaintextValue) : undefined;
|
|
69
70
|
resourceInputs["secretName"] = args?.secretName;
|
|
70
71
|
resourceInputs["selectedRepositoryIds"] = args?.selectedRepositoryIds;
|
|
71
72
|
resourceInputs["visibility"] = args?.visibility;
|
|
72
73
|
resourceInputs["createdAt"] = undefined /*out*/;
|
|
74
|
+
resourceInputs["remoteUpdatedAt"] = undefined /*out*/;
|
|
73
75
|
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
74
76
|
}
|
|
75
77
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionsOrganizationSecret.js","sourceRoot":"","sources":["../actionsOrganizationSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"actionsOrganizationSecret.js","sourceRoot":"","sources":["../actionsOrganizationSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;AACH,MAAa,yBAA0B,SAAQ,MAAM,CAAC,cAAc;IAChE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsC,EAAE,IAAmC;QACpI,OAAO,IAAI,yBAAyB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAChF,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,yBAAyB,CAAC,YAAY,CAAC;IAC1E,CAAC;IAyDD,YAAY,IAAY,EAAE,WAA4E,EAAE,IAAmC;QACvI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAyD,CAAC;YACxE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAA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,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACzG,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,EAAE,qBAAqB,CAAC;YACtE,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,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,yBAAyB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9E,CAAC;;AAzHL,8DA0HC;AA5GG,gBAAgB;AACO,sCAAY,GAAG,kEAAkE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
* This resource allows you to manage
|
|
3
|
+
* This resource allows you to manage the repositories allowed to access an actions secret within your GitHub organization.
|
|
4
4
|
* You must have write access to an organization secret to use this resource.
|
|
5
5
|
*
|
|
6
6
|
* This resource is only applicable when `visibility` of the existing organization secret has been set to `selected`.
|
|
@@ -11,21 +11,29 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
11
11
|
* import * as pulumi from "@pulumi/pulumi";
|
|
12
12
|
* import * as github from "@pulumi/github";
|
|
13
13
|
*
|
|
14
|
-
* const
|
|
15
|
-
*
|
|
14
|
+
* const example = new github.ActionsOrganizationSecret("example", {
|
|
15
|
+
* secretName: "mysecret",
|
|
16
|
+
* plaintextValue: "foo",
|
|
17
|
+
* visibility: "selected",
|
|
16
18
|
* });
|
|
17
|
-
* const
|
|
18
|
-
*
|
|
19
|
-
*
|
|
19
|
+
* const exampleRepository = new github.Repository("example", {
|
|
20
|
+
* name: "myrepo",
|
|
21
|
+
* visibility: "public",
|
|
22
|
+
* });
|
|
23
|
+
* const exampleActionsOrganizationSecretRepositories = new github.ActionsOrganizationSecretRepositories("example", {
|
|
24
|
+
* secretName: example.name,
|
|
25
|
+
* selectedRepositoryIds: [exampleRepository.repoId],
|
|
20
26
|
* });
|
|
21
27
|
* ```
|
|
22
28
|
*
|
|
23
29
|
* ## Import
|
|
24
30
|
*
|
|
25
|
-
*
|
|
31
|
+
* ### Import Command
|
|
32
|
+
*
|
|
33
|
+
* The following command imports the repositories able to access the actions organization secret named `mysecret` to a `github_actions_organization_secret_repositories` resource named `example`.
|
|
26
34
|
*
|
|
27
35
|
* ```sh
|
|
28
|
-
* $ pulumi import github:index/actionsOrganizationSecretRepositories:ActionsOrganizationSecretRepositories
|
|
36
|
+
* $ pulumi import github:index/actionsOrganizationSecretRepositories:ActionsOrganizationSecretRepositories example mysecret
|
|
29
37
|
* ```
|
|
30
38
|
*/
|
|
31
39
|
export declare class ActionsOrganizationSecretRepositories extends pulumi.CustomResource {
|
|
@@ -45,11 +53,11 @@ export declare class ActionsOrganizationSecretRepositories extends pulumi.Custom
|
|
|
45
53
|
*/
|
|
46
54
|
static isInstance(obj: any): obj is ActionsOrganizationSecretRepositories;
|
|
47
55
|
/**
|
|
48
|
-
* Name of the
|
|
56
|
+
* Name of the actions organization secret.
|
|
49
57
|
*/
|
|
50
58
|
readonly secretName: pulumi.Output<string>;
|
|
51
59
|
/**
|
|
52
|
-
*
|
|
60
|
+
* List of IDs for the repositories that should be able to access the secret.
|
|
53
61
|
*/
|
|
54
62
|
readonly selectedRepositoryIds: pulumi.Output<number[]>;
|
|
55
63
|
/**
|
|
@@ -66,11 +74,11 @@ export declare class ActionsOrganizationSecretRepositories extends pulumi.Custom
|
|
|
66
74
|
*/
|
|
67
75
|
export interface ActionsOrganizationSecretRepositoriesState {
|
|
68
76
|
/**
|
|
69
|
-
* Name of the
|
|
77
|
+
* Name of the actions organization secret.
|
|
70
78
|
*/
|
|
71
79
|
secretName?: pulumi.Input<string>;
|
|
72
80
|
/**
|
|
73
|
-
*
|
|
81
|
+
* List of IDs for the repositories that should be able to access the secret.
|
|
74
82
|
*/
|
|
75
83
|
selectedRepositoryIds?: pulumi.Input<pulumi.Input<number>[]>;
|
|
76
84
|
}
|
|
@@ -79,11 +87,11 @@ export interface ActionsOrganizationSecretRepositoriesState {
|
|
|
79
87
|
*/
|
|
80
88
|
export interface ActionsOrganizationSecretRepositoriesArgs {
|
|
81
89
|
/**
|
|
82
|
-
* Name of the
|
|
90
|
+
* Name of the actions organization secret.
|
|
83
91
|
*/
|
|
84
92
|
secretName: pulumi.Input<string>;
|
|
85
93
|
/**
|
|
86
|
-
*
|
|
94
|
+
* List of IDs for the repositories that should be able to access the secret.
|
|
87
95
|
*/
|
|
88
96
|
selectedRepositoryIds: pulumi.Input<pulumi.Input<number>[]>;
|
|
89
97
|
}
|
|
@@ -6,7 +6,7 @@ exports.ActionsOrganizationSecretRepositories = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* This resource allows you to manage
|
|
9
|
+
* This resource allows you to manage the repositories allowed to access an actions secret within your GitHub organization.
|
|
10
10
|
* You must have write access to an organization secret to use this resource.
|
|
11
11
|
*
|
|
12
12
|
* This resource is only applicable when `visibility` of the existing organization secret has been set to `selected`.
|
|
@@ -17,21 +17,29 @@ const utilities = require("./utilities");
|
|
|
17
17
|
* import * as pulumi from "@pulumi/pulumi";
|
|
18
18
|
* import * as github from "@pulumi/github";
|
|
19
19
|
*
|
|
20
|
-
* const
|
|
21
|
-
*
|
|
20
|
+
* const example = new github.ActionsOrganizationSecret("example", {
|
|
21
|
+
* secretName: "mysecret",
|
|
22
|
+
* plaintextValue: "foo",
|
|
23
|
+
* visibility: "selected",
|
|
22
24
|
* });
|
|
23
|
-
* const
|
|
24
|
-
*
|
|
25
|
-
*
|
|
25
|
+
* const exampleRepository = new github.Repository("example", {
|
|
26
|
+
* name: "myrepo",
|
|
27
|
+
* visibility: "public",
|
|
28
|
+
* });
|
|
29
|
+
* const exampleActionsOrganizationSecretRepositories = new github.ActionsOrganizationSecretRepositories("example", {
|
|
30
|
+
* secretName: example.name,
|
|
31
|
+
* selectedRepositoryIds: [exampleRepository.repoId],
|
|
26
32
|
* });
|
|
27
33
|
* ```
|
|
28
34
|
*
|
|
29
35
|
* ## Import
|
|
30
36
|
*
|
|
31
|
-
*
|
|
37
|
+
* ### Import Command
|
|
38
|
+
*
|
|
39
|
+
* The following command imports the repositories able to access the actions organization secret named `mysecret` to a `github_actions_organization_secret_repositories` resource named `example`.
|
|
32
40
|
*
|
|
33
41
|
* ```sh
|
|
34
|
-
* $ pulumi import github:index/actionsOrganizationSecretRepositories:ActionsOrganizationSecretRepositories
|
|
42
|
+
* $ pulumi import github:index/actionsOrganizationSecretRepositories:ActionsOrganizationSecretRepositories example mysecret
|
|
35
43
|
* ```
|
|
36
44
|
*/
|
|
37
45
|
class ActionsOrganizationSecretRepositories extends pulumi.CustomResource {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionsOrganizationSecretRepositories.js","sourceRoot":"","sources":["../actionsOrganizationSecretRepositories.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"actionsOrganizationSecretRepositories.js","sourceRoot":"","sources":["../actionsOrganizationSecretRepositories.ts"],"names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KAAK,CAAC,mDAAmD,CAAC,CAAC;aACxE;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,EAAE,qBAAqB,CAAC;SACzE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,qCAAqC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1F,CAAC;;AAjEL,sFAkEC;AApDG,gBAAgB;AACO,kDAAY,GAAG,0FAA0F,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
* This resource
|
|
3
|
+
* This resource adds permission for a repository to use an actions secret within your GitHub organization.
|
|
4
4
|
* You must have write access to an organization secret to use this resource.
|
|
5
5
|
*
|
|
6
6
|
* This resource is only applicable when `visibility` of the existing organization secret has been set to `selected`.
|
|
@@ -11,21 +11,29 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
11
11
|
* import * as pulumi from "@pulumi/pulumi";
|
|
12
12
|
* import * as github from "@pulumi/github";
|
|
13
13
|
*
|
|
14
|
-
* const
|
|
15
|
-
*
|
|
14
|
+
* const example = new github.ActionsOrganizationSecret("example", {
|
|
15
|
+
* secretName: "mysecret",
|
|
16
|
+
* plaintextValue: "foo",
|
|
17
|
+
* visibility: "selected",
|
|
16
18
|
* });
|
|
17
|
-
* const
|
|
18
|
-
*
|
|
19
|
-
*
|
|
19
|
+
* const exampleRepository = new github.Repository("example", {
|
|
20
|
+
* name: "myrepo",
|
|
21
|
+
* visibility: "public",
|
|
22
|
+
* });
|
|
23
|
+
* const exampleActionsOrganizationSecretRepository = new github.ActionsOrganizationSecretRepository("example", {
|
|
24
|
+
* secretName: example.name,
|
|
25
|
+
* repositoryId: exampleRepository.repoId,
|
|
20
26
|
* });
|
|
21
27
|
* ```
|
|
22
28
|
*
|
|
23
29
|
* ## Import
|
|
24
30
|
*
|
|
25
|
-
*
|
|
31
|
+
* ### Import Command
|
|
32
|
+
*
|
|
33
|
+
* The following command imports the access of repository ID `123456` for the actions organization secret named `mysecret` to a `github_actions_organization_secret_repository` resource named `example`.
|
|
26
34
|
*
|
|
27
35
|
* ```sh
|
|
28
|
-
* $ pulumi import github:index/actionsOrganizationSecretRepository:ActionsOrganizationSecretRepository
|
|
36
|
+
* $ pulumi import github:index/actionsOrganizationSecretRepository:ActionsOrganizationSecretRepository example mysecret:123456
|
|
29
37
|
* ```
|
|
30
38
|
*/
|
|
31
39
|
export declare class ActionsOrganizationSecretRepository extends pulumi.CustomResource {
|
|
@@ -45,11 +53,11 @@ export declare class ActionsOrganizationSecretRepository extends pulumi.CustomRe
|
|
|
45
53
|
*/
|
|
46
54
|
static isInstance(obj: any): obj is ActionsOrganizationSecretRepository;
|
|
47
55
|
/**
|
|
48
|
-
*
|
|
56
|
+
* ID of the repository that should be able to access the secret.
|
|
49
57
|
*/
|
|
50
58
|
readonly repositoryId: pulumi.Output<number>;
|
|
51
59
|
/**
|
|
52
|
-
* Name of the
|
|
60
|
+
* Name of the actions organization secret.
|
|
53
61
|
*/
|
|
54
62
|
readonly secretName: pulumi.Output<string>;
|
|
55
63
|
/**
|
|
@@ -66,11 +74,11 @@ export declare class ActionsOrganizationSecretRepository extends pulumi.CustomRe
|
|
|
66
74
|
*/
|
|
67
75
|
export interface ActionsOrganizationSecretRepositoryState {
|
|
68
76
|
/**
|
|
69
|
-
*
|
|
77
|
+
* ID of the repository that should be able to access the secret.
|
|
70
78
|
*/
|
|
71
79
|
repositoryId?: pulumi.Input<number>;
|
|
72
80
|
/**
|
|
73
|
-
* Name of the
|
|
81
|
+
* Name of the actions organization secret.
|
|
74
82
|
*/
|
|
75
83
|
secretName?: pulumi.Input<string>;
|
|
76
84
|
}
|
|
@@ -79,11 +87,11 @@ export interface ActionsOrganizationSecretRepositoryState {
|
|
|
79
87
|
*/
|
|
80
88
|
export interface ActionsOrganizationSecretRepositoryArgs {
|
|
81
89
|
/**
|
|
82
|
-
*
|
|
90
|
+
* ID of the repository that should be able to access the secret.
|
|
83
91
|
*/
|
|
84
92
|
repositoryId: pulumi.Input<number>;
|
|
85
93
|
/**
|
|
86
|
-
* Name of the
|
|
94
|
+
* Name of the actions organization secret.
|
|
87
95
|
*/
|
|
88
96
|
secretName: pulumi.Input<string>;
|
|
89
97
|
}
|
|
@@ -6,7 +6,7 @@ exports.ActionsOrganizationSecretRepository = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* This resource
|
|
9
|
+
* This resource adds permission for a repository to use an actions secret within your GitHub organization.
|
|
10
10
|
* You must have write access to an organization secret to use this resource.
|
|
11
11
|
*
|
|
12
12
|
* This resource is only applicable when `visibility` of the existing organization secret has been set to `selected`.
|
|
@@ -17,21 +17,29 @@ const utilities = require("./utilities");
|
|
|
17
17
|
* import * as pulumi from "@pulumi/pulumi";
|
|
18
18
|
* import * as github from "@pulumi/github";
|
|
19
19
|
*
|
|
20
|
-
* const
|
|
21
|
-
*
|
|
20
|
+
* const example = new github.ActionsOrganizationSecret("example", {
|
|
21
|
+
* secretName: "mysecret",
|
|
22
|
+
* plaintextValue: "foo",
|
|
23
|
+
* visibility: "selected",
|
|
22
24
|
* });
|
|
23
|
-
* const
|
|
24
|
-
*
|
|
25
|
-
*
|
|
25
|
+
* const exampleRepository = new github.Repository("example", {
|
|
26
|
+
* name: "myrepo",
|
|
27
|
+
* visibility: "public",
|
|
28
|
+
* });
|
|
29
|
+
* const exampleActionsOrganizationSecretRepository = new github.ActionsOrganizationSecretRepository("example", {
|
|
30
|
+
* secretName: example.name,
|
|
31
|
+
* repositoryId: exampleRepository.repoId,
|
|
26
32
|
* });
|
|
27
33
|
* ```
|
|
28
34
|
*
|
|
29
35
|
* ## Import
|
|
30
36
|
*
|
|
31
|
-
*
|
|
37
|
+
* ### Import Command
|
|
38
|
+
*
|
|
39
|
+
* The following command imports the access of repository ID `123456` for the actions organization secret named `mysecret` to a `github_actions_organization_secret_repository` resource named `example`.
|
|
32
40
|
*
|
|
33
41
|
* ```sh
|
|
34
|
-
* $ pulumi import github:index/actionsOrganizationSecretRepository:ActionsOrganizationSecretRepository
|
|
42
|
+
* $ pulumi import github:index/actionsOrganizationSecretRepository:ActionsOrganizationSecretRepository example mysecret:123456
|
|
35
43
|
* ```
|
|
36
44
|
*/
|
|
37
45
|
class ActionsOrganizationSecretRepository extends pulumi.CustomResource {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionsOrganizationSecretRepository.js","sourceRoot":"","sources":["../actionsOrganizationSecretRepository.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"actionsOrganizationSecretRepository.js","sourceRoot":"","sources":["../actionsOrganizationSecretRepository.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAa,mCAAoC,SAAQ,MAAM,CAAC,cAAc;IAC1E;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgD,EAAE,IAAmC;QAC9I,OAAO,IAAI,mCAAmC,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1F,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;Q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Import Command
|
|
37
|
+
*
|
|
38
|
+
* The following command imports a GitHub actions organization variable named `myvariable` to a `github_actions_organization_variable` resource named `example`.
|
|
37
39
|
*
|
|
38
40
|
* ```sh
|
|
39
|
-
* $ pulumi import github:index/actionsOrganizationVariable:ActionsOrganizationVariable
|
|
41
|
+
* $ pulumi import github:index/actionsOrganizationVariable:ActionsOrganizationVariable example myvariable
|
|
40
42
|
* ```
|
|
41
43
|
*/
|
|
42
44
|
export declare class ActionsOrganizationVariable extends pulumi.CustomResource {
|
|
@@ -56,28 +58,27 @@ export declare class ActionsOrganizationVariable extends pulumi.CustomResource {
|
|
|
56
58
|
*/
|
|
57
59
|
static isInstance(obj: any): obj is ActionsOrganizationVariable;
|
|
58
60
|
/**
|
|
59
|
-
* Date
|
|
61
|
+
* Date the variable was created.
|
|
60
62
|
*/
|
|
61
63
|
readonly createdAt: pulumi.Output<string>;
|
|
62
64
|
/**
|
|
63
|
-
* An array of repository
|
|
65
|
+
* An array of repository IDs that can access the organization variable; this requires `visibility` to be set to `selected`.
|
|
64
66
|
*/
|
|
65
67
|
readonly selectedRepositoryIds: pulumi.Output<number[] | undefined>;
|
|
66
68
|
/**
|
|
67
|
-
* Date
|
|
69
|
+
* Date the variable was last updated.
|
|
68
70
|
*/
|
|
69
71
|
readonly updatedAt: pulumi.Output<string>;
|
|
70
72
|
/**
|
|
71
|
-
* Value of the variable
|
|
73
|
+
* Value of the variable.
|
|
72
74
|
*/
|
|
73
75
|
readonly value: pulumi.Output<string>;
|
|
74
76
|
/**
|
|
75
|
-
* Name of the variable
|
|
77
|
+
* Name of the variable.
|
|
76
78
|
*/
|
|
77
79
|
readonly variableName: pulumi.Output<string>;
|
|
78
80
|
/**
|
|
79
|
-
* Configures the access that repositories have to the organization variable
|
|
80
|
-
* Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
|
|
81
|
+
* Configures the access that repositories have to the organization variable; must be one of `all`, `private`, or `selected`.
|
|
81
82
|
*/
|
|
82
83
|
readonly visibility: pulumi.Output<string>;
|
|
83
84
|
/**
|
|
@@ -94,28 +95,27 @@ export declare class ActionsOrganizationVariable extends pulumi.CustomResource {
|
|
|
94
95
|
*/
|
|
95
96
|
export interface ActionsOrganizationVariableState {
|
|
96
97
|
/**
|
|
97
|
-
* Date
|
|
98
|
+
* Date the variable was created.
|
|
98
99
|
*/
|
|
99
100
|
createdAt?: pulumi.Input<string>;
|
|
100
101
|
/**
|
|
101
|
-
* An array of repository
|
|
102
|
+
* An array of repository IDs that can access the organization variable; this requires `visibility` to be set to `selected`.
|
|
102
103
|
*/
|
|
103
104
|
selectedRepositoryIds?: pulumi.Input<pulumi.Input<number>[]>;
|
|
104
105
|
/**
|
|
105
|
-
* Date
|
|
106
|
+
* Date the variable was last updated.
|
|
106
107
|
*/
|
|
107
108
|
updatedAt?: pulumi.Input<string>;
|
|
108
109
|
/**
|
|
109
|
-
* Value of the variable
|
|
110
|
+
* Value of the variable.
|
|
110
111
|
*/
|
|
111
112
|
value?: pulumi.Input<string>;
|
|
112
113
|
/**
|
|
113
|
-
* Name of the variable
|
|
114
|
+
* Name of the variable.
|
|
114
115
|
*/
|
|
115
116
|
variableName?: pulumi.Input<string>;
|
|
116
117
|
/**
|
|
117
|
-
* Configures the access that repositories have to the organization variable
|
|
118
|
-
* Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
|
|
118
|
+
* Configures the access that repositories have to the organization variable; must be one of `all`, `private`, or `selected`.
|
|
119
119
|
*/
|
|
120
120
|
visibility?: pulumi.Input<string>;
|
|
121
121
|
}
|
|
@@ -124,20 +124,19 @@ export interface ActionsOrganizationVariableState {
|
|
|
124
124
|
*/
|
|
125
125
|
export interface ActionsOrganizationVariableArgs {
|
|
126
126
|
/**
|
|
127
|
-
* An array of repository
|
|
127
|
+
* An array of repository IDs that can access the organization variable; this requires `visibility` to be set to `selected`.
|
|
128
128
|
*/
|
|
129
129
|
selectedRepositoryIds?: pulumi.Input<pulumi.Input<number>[]>;
|
|
130
130
|
/**
|
|
131
|
-
* Value of the variable
|
|
131
|
+
* Value of the variable.
|
|
132
132
|
*/
|
|
133
133
|
value: pulumi.Input<string>;
|
|
134
134
|
/**
|
|
135
|
-
* Name of the variable
|
|
135
|
+
* Name of the variable.
|
|
136
136
|
*/
|
|
137
137
|
variableName: pulumi.Input<string>;
|
|
138
138
|
/**
|
|
139
|
-
* Configures the access that repositories have to the organization variable
|
|
140
|
-
* Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
|
|
139
|
+
* Configures the access that repositories have to the organization variable; must be one of `all`, `private`, or `selected`.
|
|
141
140
|
*/
|
|
142
141
|
visibility: pulumi.Input<string>;
|
|
143
142
|
}
|
|
@@ -39,10 +39,12 @@ const utilities = require("./utilities");
|
|
|
39
39
|
*
|
|
40
40
|
* ## Import
|
|
41
41
|
*
|
|
42
|
-
*
|
|
42
|
+
* ### Import Command
|
|
43
|
+
*
|
|
44
|
+
* The following command imports a GitHub actions organization variable named `myvariable` to a `github_actions_organization_variable` resource named `example`.
|
|
43
45
|
*
|
|
44
46
|
* ```sh
|
|
45
|
-
* $ pulumi import github:index/actionsOrganizationVariable:ActionsOrganizationVariable
|
|
47
|
+
* $ pulumi import github:index/actionsOrganizationVariable:ActionsOrganizationVariable example myvariable
|
|
46
48
|
* ```
|
|
47
49
|
*/
|
|
48
50
|
class ActionsOrganizationVariable extends pulumi.CustomResource {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionsOrganizationVariable.js","sourceRoot":"","sources":["../actionsOrganizationVariable.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"actionsOrganizationVariable.js","sourceRoot":"","sources":["../actionsOrganizationVariable.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;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E;gBACxC,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;aACxD;YACD,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,uBAAuB,CAAC,GAAG,IAAI,EAAE,qBAAqB,CAAC;YACtE,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,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,KAAK,CAAC,2BAA2B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChF,CAAC;;AA5FL,kEA6FC;AA/EG,gBAAgB;AACO,wCAAY,GAAG,sEAAsE,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource allows you to manage the repositories allowed to access an actions variable within your GitHub organization.
|
|
4
|
+
* You must have write access to an organization variable to use this resource.
|
|
5
|
+
*
|
|
6
|
+
* This resource is only applicable when `visibility` of the existing organization variable 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.ActionsOrganizationVariable("example", {
|
|
15
|
+
* variableName: "myvariable",
|
|
16
|
+
* plaintextValue: "foo",
|
|
17
|
+
* visibility: "selected",
|
|
18
|
+
* });
|
|
19
|
+
* const exampleRepository = new github.Repository("example", {
|
|
20
|
+
* name: "myrepo",
|
|
21
|
+
* visibility: "public",
|
|
22
|
+
* });
|
|
23
|
+
* const exampleActionsOrganizationVariableRepositories = new github.ActionsOrganizationVariableRepositories("example", {
|
|
24
|
+
* variableName: example.name,
|
|
25
|
+
* selectedRepositoryIds: [exampleRepository.repoId],
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* ## Import
|
|
30
|
+
*
|
|
31
|
+
* ### Import Command
|
|
32
|
+
*
|
|
33
|
+
* The following command imports the repositories able to access the actions organization variable named `myvariable` to a `github_actions_organization_variable_repositories` resource named `example`.
|
|
34
|
+
*
|
|
35
|
+
* ```sh
|
|
36
|
+
* $ pulumi import github:index/actionsOrganizationVariableRepositories:ActionsOrganizationVariableRepositories example myvariable
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
export declare class ActionsOrganizationVariableRepositories extends pulumi.CustomResource {
|
|
40
|
+
/**
|
|
41
|
+
* Get an existing ActionsOrganizationVariableRepositories 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?: ActionsOrganizationVariableRepositoriesState, opts?: pulumi.CustomResourceOptions): ActionsOrganizationVariableRepositories;
|
|
50
|
+
/**
|
|
51
|
+
* Returns true if the given object is an instance of ActionsOrganizationVariableRepositories. 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 ActionsOrganizationVariableRepositories;
|
|
55
|
+
/**
|
|
56
|
+
* List of IDs for the repositories that should be able to access the variable.
|
|
57
|
+
*/
|
|
58
|
+
readonly selectedRepositoryIds: pulumi.Output<number[]>;
|
|
59
|
+
/**
|
|
60
|
+
* Name of the actions organization variable.
|
|
61
|
+
*/
|
|
62
|
+
readonly variableName: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* Create a ActionsOrganizationVariableRepositories 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: ActionsOrganizationVariableRepositoriesArgs, opts?: pulumi.CustomResourceOptions);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Input properties used for looking up and filtering ActionsOrganizationVariableRepositories resources.
|
|
74
|
+
*/
|
|
75
|
+
export interface ActionsOrganizationVariableRepositoriesState {
|
|
76
|
+
/**
|
|
77
|
+
* List of IDs for the repositories that should be able to access the variable.
|
|
78
|
+
*/
|
|
79
|
+
selectedRepositoryIds?: pulumi.Input<pulumi.Input<number>[]>;
|
|
80
|
+
/**
|
|
81
|
+
* Name of the actions organization variable.
|
|
82
|
+
*/
|
|
83
|
+
variableName?: pulumi.Input<string>;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* The set of arguments for constructing a ActionsOrganizationVariableRepositories resource.
|
|
87
|
+
*/
|
|
88
|
+
export interface ActionsOrganizationVariableRepositoriesArgs {
|
|
89
|
+
/**
|
|
90
|
+
* List of IDs for the repositories that should be able to access the variable.
|
|
91
|
+
*/
|
|
92
|
+
selectedRepositoryIds: pulumi.Input<pulumi.Input<number>[]>;
|
|
93
|
+
/**
|
|
94
|
+
* Name of the actions organization variable.
|
|
95
|
+
*/
|
|
96
|
+
variableName: pulumi.Input<string>;
|
|
97
|
+
}
|