@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
|
@@ -2,7 +2,13 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
/**
|
|
3
3
|
* ## Import
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* ### Import Command
|
|
6
|
+
*
|
|
7
|
+
* The following command imports a GitHub actions environment secret named `mysecret` for the repo `myrepo` and environment `myenv` to a `github_actions_environment_secret` resource named `example`.
|
|
8
|
+
*
|
|
9
|
+
* ```sh
|
|
10
|
+
* $ pulumi import github:index/actionsEnvironmentSecret:ActionsEnvironmentSecret example myrepo:myenv:mysecret
|
|
11
|
+
* ```
|
|
6
12
|
*/
|
|
7
13
|
export declare class ActionsEnvironmentSecret extends pulumi.CustomResource {
|
|
8
14
|
/**
|
|
@@ -21,7 +27,7 @@ export declare class ActionsEnvironmentSecret extends pulumi.CustomResource {
|
|
|
21
27
|
*/
|
|
22
28
|
static isInstance(obj: any): obj is ActionsEnvironmentSecret;
|
|
23
29
|
/**
|
|
24
|
-
* Date
|
|
30
|
+
* Date the secret was created.
|
|
25
31
|
*/
|
|
26
32
|
readonly createdAt: pulumi.Output<string>;
|
|
27
33
|
/**
|
|
@@ -32,20 +38,34 @@ export declare class ActionsEnvironmentSecret extends pulumi.CustomResource {
|
|
|
32
38
|
* Name of the environment.
|
|
33
39
|
*/
|
|
34
40
|
readonly environment: pulumi.Output<string>;
|
|
41
|
+
/**
|
|
42
|
+
* 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`.
|
|
43
|
+
*/
|
|
44
|
+
readonly keyId: pulumi.Output<string>;
|
|
35
45
|
/**
|
|
36
46
|
* Plaintext value of the secret to be encrypted.
|
|
47
|
+
*
|
|
48
|
+
* > **Note**: One of either `encryptedValue` or `plaintextValue` must be specified.
|
|
37
49
|
*/
|
|
38
50
|
readonly plaintextValue: pulumi.Output<string | undefined>;
|
|
51
|
+
/**
|
|
52
|
+
* Date the secret was last updated in GitHub.
|
|
53
|
+
*/
|
|
54
|
+
readonly remoteUpdatedAt: pulumi.Output<string>;
|
|
39
55
|
/**
|
|
40
56
|
* Name of the repository.
|
|
41
57
|
*/
|
|
42
58
|
readonly repository: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* ID of the repository.
|
|
61
|
+
*/
|
|
62
|
+
readonly repositoryId: pulumi.Output<number>;
|
|
43
63
|
/**
|
|
44
64
|
* Name of the secret.
|
|
45
65
|
*/
|
|
46
66
|
readonly secretName: pulumi.Output<string>;
|
|
47
67
|
/**
|
|
48
|
-
* Date
|
|
68
|
+
* Date the secret was last updated by the provider.
|
|
49
69
|
*/
|
|
50
70
|
readonly updatedAt: pulumi.Output<string>;
|
|
51
71
|
/**
|
|
@@ -62,7 +82,7 @@ export declare class ActionsEnvironmentSecret extends pulumi.CustomResource {
|
|
|
62
82
|
*/
|
|
63
83
|
export interface ActionsEnvironmentSecretState {
|
|
64
84
|
/**
|
|
65
|
-
* Date
|
|
85
|
+
* Date the secret was created.
|
|
66
86
|
*/
|
|
67
87
|
createdAt?: pulumi.Input<string>;
|
|
68
88
|
/**
|
|
@@ -73,20 +93,34 @@ export interface ActionsEnvironmentSecretState {
|
|
|
73
93
|
* Name of the environment.
|
|
74
94
|
*/
|
|
75
95
|
environment?: pulumi.Input<string>;
|
|
96
|
+
/**
|
|
97
|
+
* 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`.
|
|
98
|
+
*/
|
|
99
|
+
keyId?: pulumi.Input<string>;
|
|
76
100
|
/**
|
|
77
101
|
* Plaintext value of the secret to be encrypted.
|
|
102
|
+
*
|
|
103
|
+
* > **Note**: One of either `encryptedValue` or `plaintextValue` must be specified.
|
|
78
104
|
*/
|
|
79
105
|
plaintextValue?: pulumi.Input<string>;
|
|
106
|
+
/**
|
|
107
|
+
* Date the secret was last updated in GitHub.
|
|
108
|
+
*/
|
|
109
|
+
remoteUpdatedAt?: pulumi.Input<string>;
|
|
80
110
|
/**
|
|
81
111
|
* Name of the repository.
|
|
82
112
|
*/
|
|
83
113
|
repository?: pulumi.Input<string>;
|
|
114
|
+
/**
|
|
115
|
+
* ID of the repository.
|
|
116
|
+
*/
|
|
117
|
+
repositoryId?: pulumi.Input<number>;
|
|
84
118
|
/**
|
|
85
119
|
* Name of the secret.
|
|
86
120
|
*/
|
|
87
121
|
secretName?: pulumi.Input<string>;
|
|
88
122
|
/**
|
|
89
|
-
* Date
|
|
123
|
+
* Date the secret was last updated by the provider.
|
|
90
124
|
*/
|
|
91
125
|
updatedAt?: pulumi.Input<string>;
|
|
92
126
|
}
|
|
@@ -102,8 +136,14 @@ export interface ActionsEnvironmentSecretArgs {
|
|
|
102
136
|
* Name of the environment.
|
|
103
137
|
*/
|
|
104
138
|
environment: pulumi.Input<string>;
|
|
139
|
+
/**
|
|
140
|
+
* 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`.
|
|
141
|
+
*/
|
|
142
|
+
keyId?: pulumi.Input<string>;
|
|
105
143
|
/**
|
|
106
144
|
* Plaintext value of the secret to be encrypted.
|
|
145
|
+
*
|
|
146
|
+
* > **Note**: One of either `encryptedValue` or `plaintextValue` must be specified.
|
|
107
147
|
*/
|
|
108
148
|
plaintextValue?: pulumi.Input<string>;
|
|
109
149
|
/**
|
|
@@ -8,7 +8,13 @@ const utilities = require("./utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* ## Import
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* ### Import Command
|
|
12
|
+
*
|
|
13
|
+
* The following command imports a GitHub actions environment secret named `mysecret` for the repo `myrepo` and environment `myenv` to a `github_actions_environment_secret` resource named `example`.
|
|
14
|
+
*
|
|
15
|
+
* ```sh
|
|
16
|
+
* $ pulumi import github:index/actionsEnvironmentSecret:ActionsEnvironmentSecret example myrepo:myenv:mysecret
|
|
17
|
+
* ```
|
|
12
18
|
*/
|
|
13
19
|
class ActionsEnvironmentSecret extends pulumi.CustomResource {
|
|
14
20
|
/**
|
|
@@ -41,8 +47,11 @@ class ActionsEnvironmentSecret extends pulumi.CustomResource {
|
|
|
41
47
|
resourceInputs["createdAt"] = state?.createdAt;
|
|
42
48
|
resourceInputs["encryptedValue"] = state?.encryptedValue;
|
|
43
49
|
resourceInputs["environment"] = state?.environment;
|
|
50
|
+
resourceInputs["keyId"] = state?.keyId;
|
|
44
51
|
resourceInputs["plaintextValue"] = state?.plaintextValue;
|
|
52
|
+
resourceInputs["remoteUpdatedAt"] = state?.remoteUpdatedAt;
|
|
45
53
|
resourceInputs["repository"] = state?.repository;
|
|
54
|
+
resourceInputs["repositoryId"] = state?.repositoryId;
|
|
46
55
|
resourceInputs["secretName"] = state?.secretName;
|
|
47
56
|
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
48
57
|
}
|
|
@@ -57,16 +66,19 @@ class ActionsEnvironmentSecret extends pulumi.CustomResource {
|
|
|
57
66
|
if (args?.secretName === undefined && !opts.urn) {
|
|
58
67
|
throw new Error("Missing required property 'secretName'");
|
|
59
68
|
}
|
|
60
|
-
resourceInputs["encryptedValue"] = args?.encryptedValue
|
|
69
|
+
resourceInputs["encryptedValue"] = args?.encryptedValue;
|
|
61
70
|
resourceInputs["environment"] = args?.environment;
|
|
71
|
+
resourceInputs["keyId"] = args?.keyId;
|
|
62
72
|
resourceInputs["plaintextValue"] = args?.plaintextValue ? pulumi.secret(args.plaintextValue) : undefined;
|
|
63
73
|
resourceInputs["repository"] = args?.repository;
|
|
64
74
|
resourceInputs["secretName"] = args?.secretName;
|
|
65
75
|
resourceInputs["createdAt"] = undefined /*out*/;
|
|
76
|
+
resourceInputs["remoteUpdatedAt"] = undefined /*out*/;
|
|
77
|
+
resourceInputs["repositoryId"] = undefined /*out*/;
|
|
66
78
|
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
67
79
|
}
|
|
68
80
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
69
|
-
const secretOpts = { additionalSecretOutputs: ["
|
|
81
|
+
const secretOpts = { additionalSecretOutputs: ["plaintextValue"] };
|
|
70
82
|
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
71
83
|
super(ActionsEnvironmentSecret.__pulumiType, name, resourceInputs, opts);
|
|
72
84
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionsEnvironmentSecret.js","sourceRoot":"","sources":["../actionsEnvironmentSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+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AAiB,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,CAAC,EAAE,CAAC;QACnE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,wBAAwB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7E,CAAC;;AAxHL,4DAyHC;AA3GG,gBAAgB;AACO,qCAAY,GAAG,gEAAgE,CAAC"}
|
|
@@ -9,10 +9,11 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
9
9
|
* import * as pulumi from "@pulumi/pulumi";
|
|
10
10
|
* import * as github from "@pulumi/github";
|
|
11
11
|
*
|
|
12
|
-
* const
|
|
13
|
-
*
|
|
12
|
+
* const example = new github.ActionsEnvironmentVariable("example", {
|
|
13
|
+
* repository: "example-repo",
|
|
14
|
+
* environment: "example-environment",
|
|
14
15
|
* variableName: "example_variable_name",
|
|
15
|
-
* value: "
|
|
16
|
+
* value: "example-value",
|
|
16
17
|
* });
|
|
17
18
|
* ```
|
|
18
19
|
*
|
|
@@ -20,24 +21,26 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
20
21
|
* import * as pulumi from "@pulumi/pulumi";
|
|
21
22
|
* import * as github from "@pulumi/github";
|
|
22
23
|
*
|
|
23
|
-
* const
|
|
24
|
+
* const example = github.getRepository({
|
|
24
25
|
* fullName: "my-org/repo",
|
|
25
26
|
* });
|
|
26
|
-
* const
|
|
27
|
-
* repository:
|
|
27
|
+
* const exampleRepositoryEnvironment = new github.RepositoryEnvironment("example", {
|
|
28
|
+
* repository: example.then(example => example.name),
|
|
28
29
|
* environment: "example_environment",
|
|
29
30
|
* });
|
|
30
|
-
* const
|
|
31
|
-
* repository:
|
|
32
|
-
* environment:
|
|
31
|
+
* const exampleActionsEnvironmentVariable = new github.ActionsEnvironmentVariable("example", {
|
|
32
|
+
* repository: example.then(example => example.name),
|
|
33
|
+
* environment: exampleRepositoryEnvironment.environment,
|
|
33
34
|
* variableName: "example_variable_name",
|
|
34
|
-
* value: "
|
|
35
|
+
* value: "example-value",
|
|
35
36
|
* });
|
|
36
37
|
* ```
|
|
37
38
|
*
|
|
38
39
|
* ## Import
|
|
39
40
|
*
|
|
40
|
-
*
|
|
41
|
+
* ### Import Command
|
|
42
|
+
*
|
|
43
|
+
* The following command imports a GitHub actions environment variable named `myvariable` for the repo `myrepo` and environment `myenv` to a `github_actions_environment_variable` resource named `example`.
|
|
41
44
|
*
|
|
42
45
|
* ```sh
|
|
43
46
|
* $ pulumi import github:index/actionsEnvironmentVariable:ActionsEnvironmentVariable example myrepo:myenv:myvariable
|
|
@@ -60,7 +63,7 @@ export declare class ActionsEnvironmentVariable extends pulumi.CustomResource {
|
|
|
60
63
|
*/
|
|
61
64
|
static isInstance(obj: any): obj is ActionsEnvironmentVariable;
|
|
62
65
|
/**
|
|
63
|
-
* Date
|
|
66
|
+
* Date the variable was created.
|
|
64
67
|
*/
|
|
65
68
|
readonly createdAt: pulumi.Output<string>;
|
|
66
69
|
/**
|
|
@@ -72,11 +75,15 @@ export declare class ActionsEnvironmentVariable extends pulumi.CustomResource {
|
|
|
72
75
|
*/
|
|
73
76
|
readonly repository: pulumi.Output<string>;
|
|
74
77
|
/**
|
|
75
|
-
*
|
|
78
|
+
* ID of the repository.
|
|
79
|
+
*/
|
|
80
|
+
readonly repositoryId: pulumi.Output<number>;
|
|
81
|
+
/**
|
|
82
|
+
* Date the variable was last updated.
|
|
76
83
|
*/
|
|
77
84
|
readonly updatedAt: pulumi.Output<string>;
|
|
78
85
|
/**
|
|
79
|
-
* Value of the variable
|
|
86
|
+
* Value of the variable.
|
|
80
87
|
*/
|
|
81
88
|
readonly value: pulumi.Output<string>;
|
|
82
89
|
/**
|
|
@@ -97,7 +104,7 @@ export declare class ActionsEnvironmentVariable extends pulumi.CustomResource {
|
|
|
97
104
|
*/
|
|
98
105
|
export interface ActionsEnvironmentVariableState {
|
|
99
106
|
/**
|
|
100
|
-
* Date
|
|
107
|
+
* Date the variable was created.
|
|
101
108
|
*/
|
|
102
109
|
createdAt?: pulumi.Input<string>;
|
|
103
110
|
/**
|
|
@@ -109,11 +116,15 @@ export interface ActionsEnvironmentVariableState {
|
|
|
109
116
|
*/
|
|
110
117
|
repository?: pulumi.Input<string>;
|
|
111
118
|
/**
|
|
112
|
-
*
|
|
119
|
+
* ID of the repository.
|
|
120
|
+
*/
|
|
121
|
+
repositoryId?: pulumi.Input<number>;
|
|
122
|
+
/**
|
|
123
|
+
* Date the variable was last updated.
|
|
113
124
|
*/
|
|
114
125
|
updatedAt?: pulumi.Input<string>;
|
|
115
126
|
/**
|
|
116
|
-
* Value of the variable
|
|
127
|
+
* Value of the variable.
|
|
117
128
|
*/
|
|
118
129
|
value?: pulumi.Input<string>;
|
|
119
130
|
/**
|
|
@@ -134,7 +145,7 @@ export interface ActionsEnvironmentVariableArgs {
|
|
|
134
145
|
*/
|
|
135
146
|
repository: pulumi.Input<string>;
|
|
136
147
|
/**
|
|
137
|
-
* Value of the variable
|
|
148
|
+
* Value of the variable.
|
|
138
149
|
*/
|
|
139
150
|
value: pulumi.Input<string>;
|
|
140
151
|
/**
|
|
@@ -15,10 +15,11 @@ const utilities = require("./utilities");
|
|
|
15
15
|
* import * as pulumi from "@pulumi/pulumi";
|
|
16
16
|
* import * as github from "@pulumi/github";
|
|
17
17
|
*
|
|
18
|
-
* const
|
|
19
|
-
*
|
|
18
|
+
* const example = new github.ActionsEnvironmentVariable("example", {
|
|
19
|
+
* repository: "example-repo",
|
|
20
|
+
* environment: "example-environment",
|
|
20
21
|
* variableName: "example_variable_name",
|
|
21
|
-
* value: "
|
|
22
|
+
* value: "example-value",
|
|
22
23
|
* });
|
|
23
24
|
* ```
|
|
24
25
|
*
|
|
@@ -26,24 +27,26 @@ const utilities = require("./utilities");
|
|
|
26
27
|
* import * as pulumi from "@pulumi/pulumi";
|
|
27
28
|
* import * as github from "@pulumi/github";
|
|
28
29
|
*
|
|
29
|
-
* const
|
|
30
|
+
* const example = github.getRepository({
|
|
30
31
|
* fullName: "my-org/repo",
|
|
31
32
|
* });
|
|
32
|
-
* const
|
|
33
|
-
* repository:
|
|
33
|
+
* const exampleRepositoryEnvironment = new github.RepositoryEnvironment("example", {
|
|
34
|
+
* repository: example.then(example => example.name),
|
|
34
35
|
* environment: "example_environment",
|
|
35
36
|
* });
|
|
36
|
-
* const
|
|
37
|
-
* repository:
|
|
38
|
-
* environment:
|
|
37
|
+
* const exampleActionsEnvironmentVariable = new github.ActionsEnvironmentVariable("example", {
|
|
38
|
+
* repository: example.then(example => example.name),
|
|
39
|
+
* environment: exampleRepositoryEnvironment.environment,
|
|
39
40
|
* variableName: "example_variable_name",
|
|
40
|
-
* value: "
|
|
41
|
+
* value: "example-value",
|
|
41
42
|
* });
|
|
42
43
|
* ```
|
|
43
44
|
*
|
|
44
45
|
* ## Import
|
|
45
46
|
*
|
|
46
|
-
*
|
|
47
|
+
* ### Import Command
|
|
48
|
+
*
|
|
49
|
+
* The following command imports a GitHub actions environment variable named `myvariable` for the repo `myrepo` and environment `myenv` to a `github_actions_environment_variable` resource named `example`.
|
|
47
50
|
*
|
|
48
51
|
* ```sh
|
|
49
52
|
* $ pulumi import github:index/actionsEnvironmentVariable:ActionsEnvironmentVariable example myrepo:myenv:myvariable
|
|
@@ -80,6 +83,7 @@ class ActionsEnvironmentVariable extends pulumi.CustomResource {
|
|
|
80
83
|
resourceInputs["createdAt"] = state?.createdAt;
|
|
81
84
|
resourceInputs["environment"] = state?.environment;
|
|
82
85
|
resourceInputs["repository"] = state?.repository;
|
|
86
|
+
resourceInputs["repositoryId"] = state?.repositoryId;
|
|
83
87
|
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
84
88
|
resourceInputs["value"] = state?.value;
|
|
85
89
|
resourceInputs["variableName"] = state?.variableName;
|
|
@@ -103,6 +107,7 @@ class ActionsEnvironmentVariable extends pulumi.CustomResource {
|
|
|
103
107
|
resourceInputs["value"] = args?.value;
|
|
104
108
|
resourceInputs["variableName"] = args?.variableName;
|
|
105
109
|
resourceInputs["createdAt"] = undefined /*out*/;
|
|
110
|
+
resourceInputs["repositoryId"] = undefined /*out*/;
|
|
106
111
|
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
107
112
|
}
|
|
108
113
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionsEnvironmentVariable.js","sourceRoot":"","sources":["../actionsEnvironmentVariable.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"actionsEnvironmentVariable.js","sourceRoot":"","sources":["../actionsEnvironmentVariable.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,MAAa,0BAA2B,SAAQ,MAAM,CAAC,cAAc;IACjE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuC,EAAE,IAAmC;QACrI,OAAO,IAAI,0BAA0B,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACjF,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B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,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,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,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,KAAK,CAAC,0BAA0B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/E,CAAC;;AArGL,gEAsGC;AAxFG,gBAAgB;AACO,uCAAY,GAAG,oEAAoE,CAAC"}
|
|
@@ -69,6 +69,10 @@ export declare class ActionsOrganizationPermissions extends pulumi.CustomResourc
|
|
|
69
69
|
* Sets the list of selected repositories that are enabled for GitHub Actions in an organization. Only available when `enabledRepositories` = `selected`. See Enabled Repositories Config below for details.
|
|
70
70
|
*/
|
|
71
71
|
readonly enabledRepositoriesConfig: pulumi.Output<outputs.ActionsOrganizationPermissionsEnabledRepositoriesConfig | undefined>;
|
|
72
|
+
/**
|
|
73
|
+
* Whether pinning to a specific SHA is required for all actions and reusable workflows in an organization.
|
|
74
|
+
*/
|
|
75
|
+
readonly shaPinningRequired: pulumi.Output<boolean>;
|
|
72
76
|
/**
|
|
73
77
|
* Create a ActionsOrganizationPermissions resource with the given unique name, arguments, and options.
|
|
74
78
|
*
|
|
@@ -98,6 +102,10 @@ export interface ActionsOrganizationPermissionsState {
|
|
|
98
102
|
* Sets the list of selected repositories that are enabled for GitHub Actions in an organization. Only available when `enabledRepositories` = `selected`. See Enabled Repositories Config below for details.
|
|
99
103
|
*/
|
|
100
104
|
enabledRepositoriesConfig?: pulumi.Input<inputs.ActionsOrganizationPermissionsEnabledRepositoriesConfig>;
|
|
105
|
+
/**
|
|
106
|
+
* Whether pinning to a specific SHA is required for all actions and reusable workflows in an organization.
|
|
107
|
+
*/
|
|
108
|
+
shaPinningRequired?: pulumi.Input<boolean>;
|
|
101
109
|
}
|
|
102
110
|
/**
|
|
103
111
|
* The set of arguments for constructing a ActionsOrganizationPermissions resource.
|
|
@@ -119,4 +127,8 @@ export interface ActionsOrganizationPermissionsArgs {
|
|
|
119
127
|
* Sets the list of selected repositories that are enabled for GitHub Actions in an organization. Only available when `enabledRepositories` = `selected`. See Enabled Repositories Config below for details.
|
|
120
128
|
*/
|
|
121
129
|
enabledRepositoriesConfig?: pulumi.Input<inputs.ActionsOrganizationPermissionsEnabledRepositoriesConfig>;
|
|
130
|
+
/**
|
|
131
|
+
* Whether pinning to a specific SHA is required for all actions and reusable workflows in an organization.
|
|
132
|
+
*/
|
|
133
|
+
shaPinningRequired?: pulumi.Input<boolean>;
|
|
122
134
|
}
|
|
@@ -73,6 +73,7 @@ class ActionsOrganizationPermissions extends pulumi.CustomResource {
|
|
|
73
73
|
resourceInputs["allowedActionsConfig"] = state?.allowedActionsConfig;
|
|
74
74
|
resourceInputs["enabledRepositories"] = state?.enabledRepositories;
|
|
75
75
|
resourceInputs["enabledRepositoriesConfig"] = state?.enabledRepositoriesConfig;
|
|
76
|
+
resourceInputs["shaPinningRequired"] = state?.shaPinningRequired;
|
|
76
77
|
}
|
|
77
78
|
else {
|
|
78
79
|
const args = argsOrState;
|
|
@@ -83,6 +84,7 @@ class ActionsOrganizationPermissions extends pulumi.CustomResource {
|
|
|
83
84
|
resourceInputs["allowedActionsConfig"] = args?.allowedActionsConfig;
|
|
84
85
|
resourceInputs["enabledRepositories"] = args?.enabledRepositories;
|
|
85
86
|
resourceInputs["enabledRepositoriesConfig"] = args?.enabledRepositoriesConfig;
|
|
87
|
+
resourceInputs["shaPinningRequired"] = args?.shaPinningRequired;
|
|
86
88
|
}
|
|
87
89
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
88
90
|
super(ActionsOrganizationPermissions.__pulumiType, name, resourceInputs, opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionsOrganizationPermissions.js","sourceRoot":"","sources":["../actionsOrganizationPermissions.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAa,8BAA+B,SAAQ,MAAM,CAAC,cAAc;IACrE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2C,EAAE,IAAmC;QACzI,OAAO,IAAI,8BAA8B,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACrF,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,8BAA8B,CAAC,YAAY,CAAC;IAC/E,CAAC;
|
|
1
|
+
{"version":3,"file":"actionsOrganizationPermissions.js","sourceRoot":"","sources":["../actionsOrganizationPermissions.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,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,CAAC,iDAAiD,CAAC,CAAC;aACtE;YACD,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,EAAE,oBAAoB,CAAC;YACpE,cAAc,CAAC,qBAAqB,CAAC,GAAG,IAAI,EAAE,mBAAmB,CAAC;YAClE,cAAc,CAAC,2BAA2B,CAAC,GAAG,IAAI,EAAE,yBAAyB,CAAC;YAC9E,cAAc,CAAC,oBAAoB,CAAC,GAAG,IAAI,EAAE,kBAAkB,CAAC;SACnE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,8BAA8B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnF,CAAC;;AAhFL,wEAiFC;AAnEG,gBAAgB;AACO,2CAAY,GAAG,4EAA4E,CAAC"}
|
|
@@ -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 actions organization secret named `mysecret` to a `github_actions_organization_secret` resource named `example`.
|
|
8
8
|
*
|
|
9
9
|
* ```sh
|
|
10
|
-
* $ pulumi import github:index/actionsOrganizationSecret:ActionsOrganizationSecret
|
|
10
|
+
* $ pulumi import github:index/actionsOrganizationSecret:ActionsOrganizationSecret example 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 ActionsOrganizationSecret extends pulumi.CustomResource {
|
|
16
14
|
/**
|
|
@@ -29,33 +27,49 @@ export declare class ActionsOrganizationSecret extends pulumi.CustomResource {
|
|
|
29
27
|
*/
|
|
30
28
|
static isInstance(obj: any): obj is ActionsOrganizationSecret;
|
|
31
29
|
/**
|
|
32
|
-
* Date
|
|
30
|
+
* Date the secret was created.
|
|
33
31
|
*/
|
|
34
32
|
readonly createdAt: pulumi.Output<string>;
|
|
33
|
+
/**
|
|
34
|
+
* (Optional) This is ignored as drift detection is built into the resource.
|
|
35
|
+
*
|
|
36
|
+
* > **Note**: One of either `encryptedValue` or `plaintextValue` must be specified.
|
|
37
|
+
*
|
|
38
|
+
* @deprecated This is no longer required and will be removed in a future release. Drift detection is now always performed, and external changes will result in the secret being updated to match the Terraform configuration. If you want to ignore external changes, you can use the `lifecycle` block with `ignoreChanges` on the `remoteUpdatedAt` field.
|
|
39
|
+
*/
|
|
35
40
|
readonly destroyOnDrift: pulumi.Output<boolean | undefined>;
|
|
36
41
|
/**
|
|
37
42
|
* Encrypted value of the secret using the GitHub public key in Base64 format.
|
|
38
43
|
*/
|
|
39
44
|
readonly encryptedValue: pulumi.Output<string | undefined>;
|
|
40
45
|
/**
|
|
41
|
-
*
|
|
46
|
+
* 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`.
|
|
47
|
+
*/
|
|
48
|
+
readonly keyId: pulumi.Output<string>;
|
|
49
|
+
/**
|
|
50
|
+
* Plaintext value of the secret to be encrypted.
|
|
42
51
|
*/
|
|
43
52
|
readonly plaintextValue: pulumi.Output<string | undefined>;
|
|
44
53
|
/**
|
|
45
|
-
*
|
|
54
|
+
* Date the secret was last updated in GitHub.
|
|
55
|
+
*/
|
|
56
|
+
readonly remoteUpdatedAt: pulumi.Output<string>;
|
|
57
|
+
/**
|
|
58
|
+
* Name of the secret.
|
|
46
59
|
*/
|
|
47
60
|
readonly secretName: pulumi.Output<string>;
|
|
48
61
|
/**
|
|
49
|
-
* An array of repository
|
|
62
|
+
* An array of repository IDs that can access the organization variable; this requires `visibility` to be set to `selected`.
|
|
63
|
+
*
|
|
64
|
+
* @deprecated This field is deprecated and will be removed in a future release. Please use the `github.ActionsOrganizationSecretRepositories` or `github.ActionsOrganizationSecretRepository` resources to manage repository access to organization secrets.
|
|
50
65
|
*/
|
|
51
66
|
readonly selectedRepositoryIds: pulumi.Output<number[] | undefined>;
|
|
52
67
|
/**
|
|
53
|
-
* Date
|
|
68
|
+
* Date the secret was last updated by the provider.
|
|
54
69
|
*/
|
|
55
70
|
readonly updatedAt: pulumi.Output<string>;
|
|
56
71
|
/**
|
|
57
|
-
* Configures the access that repositories have to the organization secret
|
|
58
|
-
* Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
|
|
72
|
+
* Configures the access that repositories have to the organization secret; must be one of `all`, `private`, or `selected`.
|
|
59
73
|
*/
|
|
60
74
|
readonly visibility: pulumi.Output<string>;
|
|
61
75
|
/**
|
|
@@ -72,33 +86,49 @@ export declare class ActionsOrganizationSecret extends pulumi.CustomResource {
|
|
|
72
86
|
*/
|
|
73
87
|
export interface ActionsOrganizationSecretState {
|
|
74
88
|
/**
|
|
75
|
-
* Date
|
|
89
|
+
* Date the secret was created.
|
|
76
90
|
*/
|
|
77
91
|
createdAt?: pulumi.Input<string>;
|
|
92
|
+
/**
|
|
93
|
+
* (Optional) This is ignored as drift detection is built into the resource.
|
|
94
|
+
*
|
|
95
|
+
* > **Note**: One of either `encryptedValue` or `plaintextValue` must be specified.
|
|
96
|
+
*
|
|
97
|
+
* @deprecated This is no longer required and will be removed in a future release. Drift detection is now always performed, and external changes will result in the secret being updated to match the Terraform configuration. If you want to ignore external changes, you can use the `lifecycle` block with `ignoreChanges` on the `remoteUpdatedAt` field.
|
|
98
|
+
*/
|
|
78
99
|
destroyOnDrift?: pulumi.Input<boolean>;
|
|
79
100
|
/**
|
|
80
101
|
* Encrypted value of the secret using the GitHub public key in Base64 format.
|
|
81
102
|
*/
|
|
82
103
|
encryptedValue?: pulumi.Input<string>;
|
|
83
104
|
/**
|
|
84
|
-
*
|
|
105
|
+
* 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`.
|
|
106
|
+
*/
|
|
107
|
+
keyId?: pulumi.Input<string>;
|
|
108
|
+
/**
|
|
109
|
+
* Plaintext value of the secret to be encrypted.
|
|
85
110
|
*/
|
|
86
111
|
plaintextValue?: pulumi.Input<string>;
|
|
87
112
|
/**
|
|
88
|
-
*
|
|
113
|
+
* Date the secret was last updated in GitHub.
|
|
114
|
+
*/
|
|
115
|
+
remoteUpdatedAt?: pulumi.Input<string>;
|
|
116
|
+
/**
|
|
117
|
+
* Name of the secret.
|
|
89
118
|
*/
|
|
90
119
|
secretName?: pulumi.Input<string>;
|
|
91
120
|
/**
|
|
92
|
-
* An array of repository
|
|
121
|
+
* An array of repository IDs that can access the organization variable; this requires `visibility` to be set to `selected`.
|
|
122
|
+
*
|
|
123
|
+
* @deprecated This field is deprecated and will be removed in a future release. Please use the `github.ActionsOrganizationSecretRepositories` or `github.ActionsOrganizationSecretRepository` resources to manage repository access to organization secrets.
|
|
93
124
|
*/
|
|
94
125
|
selectedRepositoryIds?: pulumi.Input<pulumi.Input<number>[]>;
|
|
95
126
|
/**
|
|
96
|
-
* Date
|
|
127
|
+
* Date the secret was last updated by the provider.
|
|
97
128
|
*/
|
|
98
129
|
updatedAt?: pulumi.Input<string>;
|
|
99
130
|
/**
|
|
100
|
-
* Configures the access that repositories have to the organization secret
|
|
101
|
-
* Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
|
|
131
|
+
* Configures the access that repositories have to the organization secret; must be one of `all`, `private`, or `selected`.
|
|
102
132
|
*/
|
|
103
133
|
visibility?: pulumi.Input<string>;
|
|
104
134
|
}
|
|
@@ -106,26 +136,38 @@ export interface ActionsOrganizationSecretState {
|
|
|
106
136
|
* The set of arguments for constructing a ActionsOrganizationSecret resource.
|
|
107
137
|
*/
|
|
108
138
|
export interface ActionsOrganizationSecretArgs {
|
|
139
|
+
/**
|
|
140
|
+
* (Optional) This is ignored as drift detection is built into the resource.
|
|
141
|
+
*
|
|
142
|
+
* > **Note**: One of either `encryptedValue` or `plaintextValue` must be specified.
|
|
143
|
+
*
|
|
144
|
+
* @deprecated This is no longer required and will be removed in a future release. Drift detection is now always performed, and external changes will result in the secret being updated to match the Terraform configuration. If you want to ignore external changes, you can use the `lifecycle` block with `ignoreChanges` on the `remoteUpdatedAt` field.
|
|
145
|
+
*/
|
|
109
146
|
destroyOnDrift?: pulumi.Input<boolean>;
|
|
110
147
|
/**
|
|
111
148
|
* Encrypted value of the secret using the GitHub public key in Base64 format.
|
|
112
149
|
*/
|
|
113
150
|
encryptedValue?: pulumi.Input<string>;
|
|
114
151
|
/**
|
|
115
|
-
*
|
|
152
|
+
* 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`.
|
|
153
|
+
*/
|
|
154
|
+
keyId?: pulumi.Input<string>;
|
|
155
|
+
/**
|
|
156
|
+
* Plaintext value of the secret to be encrypted.
|
|
116
157
|
*/
|
|
117
158
|
plaintextValue?: pulumi.Input<string>;
|
|
118
159
|
/**
|
|
119
|
-
* Name of the secret
|
|
160
|
+
* Name of the secret.
|
|
120
161
|
*/
|
|
121
162
|
secretName: pulumi.Input<string>;
|
|
122
163
|
/**
|
|
123
|
-
* An array of repository
|
|
164
|
+
* An array of repository IDs that can access the organization variable; this requires `visibility` to be set to `selected`.
|
|
165
|
+
*
|
|
166
|
+
* @deprecated This field is deprecated and will be removed in a future release. Please use the `github.ActionsOrganizationSecretRepositories` or `github.ActionsOrganizationSecretRepository` resources to manage repository access to organization secrets.
|
|
124
167
|
*/
|
|
125
168
|
selectedRepositoryIds?: pulumi.Input<pulumi.Input<number>[]>;
|
|
126
169
|
/**
|
|
127
|
-
* Configures the access that repositories have to the organization secret
|
|
128
|
-
* Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
|
|
170
|
+
* Configures the access that repositories have to the organization secret; must be one of `all`, `private`, or `selected`.
|
|
129
171
|
*/
|
|
130
172
|
visibility: pulumi.Input<string>;
|
|
131
173
|
}
|