@pulumi/github 5.27.0-alpha.1708063205 → 6.0.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/README.md +1 -3
- package/branchProtection.d.ts +25 -35
- package/branchProtection.js +9 -9
- package/branchProtection.js.map +1 -1
- package/config/vars.d.ts +14 -0
- package/config/vars.js +18 -0
- package/config/vars.js.map +1 -1
- package/dependabotOrganizationSecret.d.ts +68 -16
- package/dependabotOrganizationSecret.js +52 -0
- package/dependabotOrganizationSecret.js.map +1 -1
- package/dependabotOrganizationSecretRepositories.d.ts +37 -3
- package/dependabotOrganizationSecretRepositories.js +34 -0
- package/dependabotOrganizationSecretRepositories.js.map +1 -1
- package/dependabotSecret.d.ts +44 -13
- package/dependabotSecret.js +31 -0
- package/dependabotSecret.js.map +1 -1
- package/getDependabotPublicKey.d.ts +42 -0
- package/getDependabotPublicKey.js +30 -0
- package/getDependabotPublicKey.js.map +1 -1
- package/getIpRanges.d.ts +12 -0
- package/getIpRanges.js.map +1 -1
- package/getRepository.d.ts +1 -1
- package/getRestApi.d.ts +4 -8
- package/organizationWebhook.d.ts +0 -17
- package/organizationWebhook.js +0 -17
- package/organizationWebhook.js.map +1 -1
- package/package.json +1 -1
- package/provider.d.ts +14 -0
- package/provider.js +3 -0
- package/provider.js.map +1 -1
- package/repositoryDependabotSecurityUpdates.d.ts +33 -3
- package/repositoryDependabotSecurityUpdates.js +30 -0
- package/repositoryDependabotSecurityUpdates.js.map +1 -1
- package/repositoryDeployKey.d.ts +8 -5
- package/repositoryDeployKey.js +8 -5
- package/repositoryDeployKey.js.map +1 -1
- package/repositoryEnvironment.d.ts +13 -0
- package/repositoryEnvironment.js +3 -0
- package/repositoryEnvironment.js.map +1 -1
- package/repositoryFile.d.ts +3 -3
- package/types/input.d.ts +11 -1
- package/types/output.d.ts +11 -1
package/README.md
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
[](https://travis-ci.com/pulumi/pulumi-github)
|
|
2
|
-
|
|
3
1
|
# GitHub provider
|
|
4
2
|
|
|
5
3
|
The GitHub resource provider for Pulumi lets you use GitHub resources in your infrastructure programs.
|
|
@@ -29,7 +27,7 @@ To use from Python, install using `pip`:
|
|
|
29
27
|
|
|
30
28
|
To use from Go, use `go get` to grab the latest version of the library
|
|
31
29
|
|
|
32
|
-
$ go get github.com/pulumi/pulumi-github/sdk/
|
|
30
|
+
$ go get github.com/pulumi/pulumi-github/sdk/v6
|
|
33
31
|
|
|
34
32
|
### .NET
|
|
35
33
|
|
package/branchProtection.d.ts
CHANGED
|
@@ -35,11 +35,13 @@ import * as outputs from "./types/output";
|
|
|
35
35
|
* "exampleorganization/exampleteam",
|
|
36
36
|
* ],
|
|
37
37
|
* }],
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
38
|
+
* restrictPushes: [{
|
|
39
|
+
* pushAllowances: [
|
|
40
|
+
* exampleUser.then(exampleUser => exampleUser.nodeId),
|
|
41
|
+
* "/exampleuser",
|
|
42
|
+
* "exampleorganization/exampleteam",
|
|
43
|
+
* ],
|
|
44
|
+
* }],
|
|
43
45
|
* forcePushBypassers: [
|
|
44
46
|
* exampleUser.then(exampleUser => exampleUser.nodeId),
|
|
45
47
|
* "/exampleuser",
|
|
@@ -82,19 +84,15 @@ export declare class BranchProtection extends pulumi.CustomResource {
|
|
|
82
84
|
*/
|
|
83
85
|
readonly allowsDeletions: pulumi.Output<boolean | undefined>;
|
|
84
86
|
/**
|
|
85
|
-
* Boolean, setting this to `true` to allow force pushes on the branch.
|
|
87
|
+
* Boolean, setting this to `true` to allow force pushes on the branch to everyone. Set it to `false` if you specify `forcePushBypassers`.
|
|
86
88
|
*/
|
|
87
89
|
readonly allowsForcePushes: pulumi.Output<boolean | undefined>;
|
|
88
|
-
/**
|
|
89
|
-
* Boolean, setting this to `true` to block creating the branch.
|
|
90
|
-
*/
|
|
91
|
-
readonly blocksCreations: pulumi.Output<boolean | undefined>;
|
|
92
90
|
/**
|
|
93
91
|
* Boolean, setting this to `true` enforces status checks for repository administrators.
|
|
94
92
|
*/
|
|
95
93
|
readonly enforceAdmins: pulumi.Output<boolean | undefined>;
|
|
96
94
|
/**
|
|
97
|
-
* The list of actor Names/IDs that are allowed to bypass force push restrictions. Actor names must either begin with a "/" for users or the organization name followed by a "/" for teams.
|
|
95
|
+
* The list of actor Names/IDs that are allowed to bypass force push restrictions. Actor names must either begin with a "/" for users or the organization name followed by a "/" for teams. If the list is not empty, `allowsForcePushes` should be set to `false`.
|
|
98
96
|
*/
|
|
99
97
|
readonly forcePushBypassers: pulumi.Output<string[] | undefined>;
|
|
100
98
|
/**
|
|
@@ -105,10 +103,6 @@ export declare class BranchProtection extends pulumi.CustomResource {
|
|
|
105
103
|
* Identifies the protection rule pattern.
|
|
106
104
|
*/
|
|
107
105
|
readonly pattern: pulumi.Output<string>;
|
|
108
|
-
/**
|
|
109
|
-
* The list of actor Names/IDs that may push to the branch. Actor names must either begin with a "/" for users or the organization name followed by a "/" for teams.
|
|
110
|
-
*/
|
|
111
|
-
readonly pushRestrictions: pulumi.Output<string[] | undefined>;
|
|
112
106
|
/**
|
|
113
107
|
* The name or node ID of the repository associated with this branch protection rule.
|
|
114
108
|
*/
|
|
@@ -133,6 +127,10 @@ export declare class BranchProtection extends pulumi.CustomResource {
|
|
|
133
127
|
* Enforce restrictions for required status checks. See Required Status Checks below for details.
|
|
134
128
|
*/
|
|
135
129
|
readonly requiredStatusChecks: pulumi.Output<outputs.BranchProtectionRequiredStatusCheck[] | undefined>;
|
|
130
|
+
/**
|
|
131
|
+
* Restrict pushes to matching branches. See Restrict Pushes below for details.
|
|
132
|
+
*/
|
|
133
|
+
readonly restrictPushes: pulumi.Output<outputs.BranchProtectionRestrictPush[] | undefined>;
|
|
136
134
|
/**
|
|
137
135
|
* Create a BranchProtection resource with the given unique name, arguments, and options.
|
|
138
136
|
*
|
|
@@ -151,19 +149,15 @@ export interface BranchProtectionState {
|
|
|
151
149
|
*/
|
|
152
150
|
allowsDeletions?: pulumi.Input<boolean>;
|
|
153
151
|
/**
|
|
154
|
-
* Boolean, setting this to `true` to allow force pushes on the branch.
|
|
152
|
+
* Boolean, setting this to `true` to allow force pushes on the branch to everyone. Set it to `false` if you specify `forcePushBypassers`.
|
|
155
153
|
*/
|
|
156
154
|
allowsForcePushes?: pulumi.Input<boolean>;
|
|
157
|
-
/**
|
|
158
|
-
* Boolean, setting this to `true` to block creating the branch.
|
|
159
|
-
*/
|
|
160
|
-
blocksCreations?: pulumi.Input<boolean>;
|
|
161
155
|
/**
|
|
162
156
|
* Boolean, setting this to `true` enforces status checks for repository administrators.
|
|
163
157
|
*/
|
|
164
158
|
enforceAdmins?: pulumi.Input<boolean>;
|
|
165
159
|
/**
|
|
166
|
-
* The list of actor Names/IDs that are allowed to bypass force push restrictions. Actor names must either begin with a "/" for users or the organization name followed by a "/" for teams.
|
|
160
|
+
* The list of actor Names/IDs that are allowed to bypass force push restrictions. Actor names must either begin with a "/" for users or the organization name followed by a "/" for teams. If the list is not empty, `allowsForcePushes` should be set to `false`.
|
|
167
161
|
*/
|
|
168
162
|
forcePushBypassers?: pulumi.Input<pulumi.Input<string>[]>;
|
|
169
163
|
/**
|
|
@@ -174,10 +168,6 @@ export interface BranchProtectionState {
|
|
|
174
168
|
* Identifies the protection rule pattern.
|
|
175
169
|
*/
|
|
176
170
|
pattern?: pulumi.Input<string>;
|
|
177
|
-
/**
|
|
178
|
-
* The list of actor Names/IDs that may push to the branch. Actor names must either begin with a "/" for users or the organization name followed by a "/" for teams.
|
|
179
|
-
*/
|
|
180
|
-
pushRestrictions?: pulumi.Input<pulumi.Input<string>[]>;
|
|
181
171
|
/**
|
|
182
172
|
* The name or node ID of the repository associated with this branch protection rule.
|
|
183
173
|
*/
|
|
@@ -202,6 +192,10 @@ export interface BranchProtectionState {
|
|
|
202
192
|
* Enforce restrictions for required status checks. See Required Status Checks below for details.
|
|
203
193
|
*/
|
|
204
194
|
requiredStatusChecks?: pulumi.Input<pulumi.Input<inputs.BranchProtectionRequiredStatusCheck>[]>;
|
|
195
|
+
/**
|
|
196
|
+
* Restrict pushes to matching branches. See Restrict Pushes below for details.
|
|
197
|
+
*/
|
|
198
|
+
restrictPushes?: pulumi.Input<pulumi.Input<inputs.BranchProtectionRestrictPush>[]>;
|
|
205
199
|
}
|
|
206
200
|
/**
|
|
207
201
|
* The set of arguments for constructing a BranchProtection resource.
|
|
@@ -212,19 +206,15 @@ export interface BranchProtectionArgs {
|
|
|
212
206
|
*/
|
|
213
207
|
allowsDeletions?: pulumi.Input<boolean>;
|
|
214
208
|
/**
|
|
215
|
-
* Boolean, setting this to `true` to allow force pushes on the branch.
|
|
209
|
+
* Boolean, setting this to `true` to allow force pushes on the branch to everyone. Set it to `false` if you specify `forcePushBypassers`.
|
|
216
210
|
*/
|
|
217
211
|
allowsForcePushes?: pulumi.Input<boolean>;
|
|
218
|
-
/**
|
|
219
|
-
* Boolean, setting this to `true` to block creating the branch.
|
|
220
|
-
*/
|
|
221
|
-
blocksCreations?: pulumi.Input<boolean>;
|
|
222
212
|
/**
|
|
223
213
|
* Boolean, setting this to `true` enforces status checks for repository administrators.
|
|
224
214
|
*/
|
|
225
215
|
enforceAdmins?: pulumi.Input<boolean>;
|
|
226
216
|
/**
|
|
227
|
-
* The list of actor Names/IDs that are allowed to bypass force push restrictions. Actor names must either begin with a "/" for users or the organization name followed by a "/" for teams.
|
|
217
|
+
* The list of actor Names/IDs that are allowed to bypass force push restrictions. Actor names must either begin with a "/" for users or the organization name followed by a "/" for teams. If the list is not empty, `allowsForcePushes` should be set to `false`.
|
|
228
218
|
*/
|
|
229
219
|
forcePushBypassers?: pulumi.Input<pulumi.Input<string>[]>;
|
|
230
220
|
/**
|
|
@@ -235,10 +225,6 @@ export interface BranchProtectionArgs {
|
|
|
235
225
|
* Identifies the protection rule pattern.
|
|
236
226
|
*/
|
|
237
227
|
pattern: pulumi.Input<string>;
|
|
238
|
-
/**
|
|
239
|
-
* The list of actor Names/IDs that may push to the branch. Actor names must either begin with a "/" for users or the organization name followed by a "/" for teams.
|
|
240
|
-
*/
|
|
241
|
-
pushRestrictions?: pulumi.Input<pulumi.Input<string>[]>;
|
|
242
228
|
/**
|
|
243
229
|
* The name or node ID of the repository associated with this branch protection rule.
|
|
244
230
|
*/
|
|
@@ -263,4 +249,8 @@ export interface BranchProtectionArgs {
|
|
|
263
249
|
* Enforce restrictions for required status checks. See Required Status Checks below for details.
|
|
264
250
|
*/
|
|
265
251
|
requiredStatusChecks?: pulumi.Input<pulumi.Input<inputs.BranchProtectionRequiredStatusCheck>[]>;
|
|
252
|
+
/**
|
|
253
|
+
* Restrict pushes to matching branches. See Restrict Pushes below for details.
|
|
254
|
+
*/
|
|
255
|
+
restrictPushes?: pulumi.Input<pulumi.Input<inputs.BranchProtectionRestrictPush>[]>;
|
|
266
256
|
}
|
package/branchProtection.js
CHANGED
|
@@ -39,11 +39,13 @@ const utilities = require("./utilities");
|
|
|
39
39
|
* "exampleorganization/exampleteam",
|
|
40
40
|
* ],
|
|
41
41
|
* }],
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
42
|
+
* restrictPushes: [{
|
|
43
|
+
* pushAllowances: [
|
|
44
|
+
* exampleUser.then(exampleUser => exampleUser.nodeId),
|
|
45
|
+
* "/exampleuser",
|
|
46
|
+
* "exampleorganization/exampleteam",
|
|
47
|
+
* ],
|
|
48
|
+
* }],
|
|
47
49
|
* forcePushBypassers: [
|
|
48
50
|
* exampleUser.then(exampleUser => exampleUser.nodeId),
|
|
49
51
|
* "/exampleuser",
|
|
@@ -95,18 +97,17 @@ class BranchProtection extends pulumi.CustomResource {
|
|
|
95
97
|
const state = argsOrState;
|
|
96
98
|
resourceInputs["allowsDeletions"] = state ? state.allowsDeletions : undefined;
|
|
97
99
|
resourceInputs["allowsForcePushes"] = state ? state.allowsForcePushes : undefined;
|
|
98
|
-
resourceInputs["blocksCreations"] = state ? state.blocksCreations : undefined;
|
|
99
100
|
resourceInputs["enforceAdmins"] = state ? state.enforceAdmins : undefined;
|
|
100
101
|
resourceInputs["forcePushBypassers"] = state ? state.forcePushBypassers : undefined;
|
|
101
102
|
resourceInputs["lockBranch"] = state ? state.lockBranch : undefined;
|
|
102
103
|
resourceInputs["pattern"] = state ? state.pattern : undefined;
|
|
103
|
-
resourceInputs["pushRestrictions"] = state ? state.pushRestrictions : undefined;
|
|
104
104
|
resourceInputs["repositoryId"] = state ? state.repositoryId : undefined;
|
|
105
105
|
resourceInputs["requireConversationResolution"] = state ? state.requireConversationResolution : undefined;
|
|
106
106
|
resourceInputs["requireSignedCommits"] = state ? state.requireSignedCommits : undefined;
|
|
107
107
|
resourceInputs["requiredLinearHistory"] = state ? state.requiredLinearHistory : undefined;
|
|
108
108
|
resourceInputs["requiredPullRequestReviews"] = state ? state.requiredPullRequestReviews : undefined;
|
|
109
109
|
resourceInputs["requiredStatusChecks"] = state ? state.requiredStatusChecks : undefined;
|
|
110
|
+
resourceInputs["restrictPushes"] = state ? state.restrictPushes : undefined;
|
|
110
111
|
}
|
|
111
112
|
else {
|
|
112
113
|
const args = argsOrState;
|
|
@@ -118,18 +119,17 @@ class BranchProtection extends pulumi.CustomResource {
|
|
|
118
119
|
}
|
|
119
120
|
resourceInputs["allowsDeletions"] = args ? args.allowsDeletions : undefined;
|
|
120
121
|
resourceInputs["allowsForcePushes"] = args ? args.allowsForcePushes : undefined;
|
|
121
|
-
resourceInputs["blocksCreations"] = args ? args.blocksCreations : undefined;
|
|
122
122
|
resourceInputs["enforceAdmins"] = args ? args.enforceAdmins : undefined;
|
|
123
123
|
resourceInputs["forcePushBypassers"] = args ? args.forcePushBypassers : undefined;
|
|
124
124
|
resourceInputs["lockBranch"] = args ? args.lockBranch : undefined;
|
|
125
125
|
resourceInputs["pattern"] = args ? args.pattern : undefined;
|
|
126
|
-
resourceInputs["pushRestrictions"] = args ? args.pushRestrictions : undefined;
|
|
127
126
|
resourceInputs["repositoryId"] = args ? args.repositoryId : undefined;
|
|
128
127
|
resourceInputs["requireConversationResolution"] = args ? args.requireConversationResolution : undefined;
|
|
129
128
|
resourceInputs["requireSignedCommits"] = args ? args.requireSignedCommits : undefined;
|
|
130
129
|
resourceInputs["requiredLinearHistory"] = args ? args.requiredLinearHistory : undefined;
|
|
131
130
|
resourceInputs["requiredPullRequestReviews"] = args ? args.requiredPullRequestReviews : undefined;
|
|
132
131
|
resourceInputs["requiredStatusChecks"] = args ? args.requiredStatusChecks : undefined;
|
|
132
|
+
resourceInputs["restrictPushes"] = args ? args.restrictPushes : undefined;
|
|
133
133
|
}
|
|
134
134
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
135
135
|
super(BranchProtection.__pulumiType, name, resourceInputs, opts);
|
package/branchProtection.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branchProtection.js","sourceRoot":"","sources":["../branchProtection.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"branchProtection.js","sourceRoot":"","sources":["../branchProtection.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;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,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACvE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAA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C,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AAnIL,4CAoIC;AAtHG,gBAAgB;AACO,6BAAY,GAAG,gDAAgD,CAAC"}
|
package/config/vars.d.ts
CHANGED
|
@@ -12,6 +12,10 @@ export declare const baseUrl: string;
|
|
|
12
12
|
* Enable `insecure` mode for testing purposes
|
|
13
13
|
*/
|
|
14
14
|
export declare const insecure: boolean | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Number of times to retry a request after receiving an error status codeDefaults to 3
|
|
17
|
+
*/
|
|
18
|
+
export declare const maxRetries: number | undefined;
|
|
15
19
|
/**
|
|
16
20
|
* The GitHub organization name to manage. Use this field instead of `owner` when managing organization accounts.
|
|
17
21
|
*/
|
|
@@ -30,6 +34,16 @@ export declare const parallelRequests: boolean | undefined;
|
|
|
30
34
|
* Amount of time in milliseconds to sleep in between non-write requests to GitHub API. Defaults to 0ms if not set.
|
|
31
35
|
*/
|
|
32
36
|
export declare const readDelayMs: number | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Amount of time in milliseconds to sleep in between requests to GitHub API after an error response. Defaults to 1000ms or
|
|
39
|
+
* 1s if not set, the maxRetries must be set to greater than zero.
|
|
40
|
+
*/
|
|
41
|
+
export declare const retryDelayMs: number | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Allow the provider to retry after receiving an error status code, the maxRetries should be set for this to workDefaults
|
|
44
|
+
* to [500, 502, 503, 504]
|
|
45
|
+
*/
|
|
46
|
+
export declare const retryableErrors: number[] | undefined;
|
|
33
47
|
/**
|
|
34
48
|
* The OAuth token used to connect to GitHub. Anonymous mode is enabled if both `token` and `appAuth` are not set.
|
|
35
49
|
*/
|
package/config/vars.js
CHANGED
|
@@ -24,6 +24,12 @@ Object.defineProperty(exports, "insecure", {
|
|
|
24
24
|
},
|
|
25
25
|
enumerable: true,
|
|
26
26
|
});
|
|
27
|
+
Object.defineProperty(exports, "maxRetries", {
|
|
28
|
+
get() {
|
|
29
|
+
return __config.getObject("maxRetries");
|
|
30
|
+
},
|
|
31
|
+
enumerable: true,
|
|
32
|
+
});
|
|
27
33
|
Object.defineProperty(exports, "organization", {
|
|
28
34
|
get() {
|
|
29
35
|
return __config.get("organization");
|
|
@@ -48,6 +54,18 @@ Object.defineProperty(exports, "readDelayMs", {
|
|
|
48
54
|
},
|
|
49
55
|
enumerable: true,
|
|
50
56
|
});
|
|
57
|
+
Object.defineProperty(exports, "retryDelayMs", {
|
|
58
|
+
get() {
|
|
59
|
+
return __config.getObject("retryDelayMs");
|
|
60
|
+
},
|
|
61
|
+
enumerable: true,
|
|
62
|
+
});
|
|
63
|
+
Object.defineProperty(exports, "retryableErrors", {
|
|
64
|
+
get() {
|
|
65
|
+
return __config.getObject("retryableErrors");
|
|
66
|
+
},
|
|
67
|
+
enumerable: true,
|
|
68
|
+
});
|
|
51
69
|
Object.defineProperty(exports, "token", {
|
|
52
70
|
get() {
|
|
53
71
|
return __config.get("token");
|
package/config/vars.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAG1C,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAO7C,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE;IACtC,GAAG;QACC,OAAO,QAAQ,CAAC,SAAS,CAAyB,SAAS,CAAC,CAAC;IACjE,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE;IACtC,GAAG;;QACC,OAAO,MAAA,QAAQ,CAAC,GA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,cAAc,CAAC,CAAC;IACtD,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
|
|
@@ -1,4 +1,56 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## Example Usage
|
|
4
|
+
*
|
|
5
|
+
* ```typescript
|
|
6
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
7
|
+
* import * as github from "@pulumi/github";
|
|
8
|
+
*
|
|
9
|
+
* const exampleSecretDependabotOrganizationSecret = new github.DependabotOrganizationSecret("exampleSecretDependabotOrganizationSecret", {
|
|
10
|
+
* secretName: "example_secret_name",
|
|
11
|
+
* visibility: "private",
|
|
12
|
+
* plaintextValue: _var.some_secret_string,
|
|
13
|
+
* });
|
|
14
|
+
* const exampleSecretIndex_dependabotOrganizationSecretDependabotOrganizationSecret = new github.DependabotOrganizationSecret("exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret", {
|
|
15
|
+
* secretName: "example_secret_name",
|
|
16
|
+
* visibility: "private",
|
|
17
|
+
* encryptedValue: _var.some_encrypted_secret_string,
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* ```typescript
|
|
22
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
+
* import * as github from "@pulumi/github";
|
|
24
|
+
*
|
|
25
|
+
* const repo = github.getRepository({
|
|
26
|
+
* fullName: "my-org/repo",
|
|
27
|
+
* });
|
|
28
|
+
* const exampleSecretDependabotOrganizationSecret = new github.DependabotOrganizationSecret("exampleSecretDependabotOrganizationSecret", {
|
|
29
|
+
* secretName: "example_secret_name",
|
|
30
|
+
* visibility: "selected",
|
|
31
|
+
* plaintextValue: _var.some_secret_string,
|
|
32
|
+
* selectedRepositoryIds: [repo.then(repo => repo.repoId)],
|
|
33
|
+
* });
|
|
34
|
+
* const exampleSecretIndex_dependabotOrganizationSecretDependabotOrganizationSecret = new github.DependabotOrganizationSecret("exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret", {
|
|
35
|
+
* secretName: "example_secret_name",
|
|
36
|
+
* visibility: "selected",
|
|
37
|
+
* encryptedValue: _var.some_encrypted_secret_string,
|
|
38
|
+
* selectedRepositoryIds: [repo.then(repo => repo.repoId)],
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* ## Import
|
|
43
|
+
*
|
|
44
|
+
* This resource can be imported using an ID made up of the secret name:
|
|
45
|
+
*
|
|
46
|
+
* ```sh
|
|
47
|
+
* $ pulumi import github:index/dependabotOrganizationSecret:DependabotOrganizationSecret test_secret test_secret_name
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* NOTE: the implementation is limited in that it won't fetch the value of the
|
|
51
|
+
*
|
|
52
|
+
* `plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.
|
|
53
|
+
*/
|
|
2
54
|
export declare class DependabotOrganizationSecret extends pulumi.CustomResource {
|
|
3
55
|
/**
|
|
4
56
|
* Get an existing DependabotOrganizationSecret resource's state with the given name, ID, and optional extra
|
|
@@ -16,7 +68,7 @@ export declare class DependabotOrganizationSecret extends pulumi.CustomResource
|
|
|
16
68
|
*/
|
|
17
69
|
static isInstance(obj: any): obj is DependabotOrganizationSecret;
|
|
18
70
|
/**
|
|
19
|
-
* Date of
|
|
71
|
+
* Date of dependabotSecret creation.
|
|
20
72
|
*/
|
|
21
73
|
readonly createdAt: pulumi.Output<string>;
|
|
22
74
|
/**
|
|
@@ -24,11 +76,11 @@ export declare class DependabotOrganizationSecret extends pulumi.CustomResource
|
|
|
24
76
|
*/
|
|
25
77
|
readonly encryptedValue: pulumi.Output<string | undefined>;
|
|
26
78
|
/**
|
|
27
|
-
* Plaintext value of the secret to be encrypted
|
|
79
|
+
* Plaintext value of the secret to be encrypted
|
|
28
80
|
*/
|
|
29
81
|
readonly plaintextValue: pulumi.Output<string | undefined>;
|
|
30
82
|
/**
|
|
31
|
-
* Name of the secret
|
|
83
|
+
* Name of the secret
|
|
32
84
|
*/
|
|
33
85
|
readonly secretName: pulumi.Output<string>;
|
|
34
86
|
/**
|
|
@@ -36,12 +88,12 @@ export declare class DependabotOrganizationSecret extends pulumi.CustomResource
|
|
|
36
88
|
*/
|
|
37
89
|
readonly selectedRepositoryIds: pulumi.Output<number[] | undefined>;
|
|
38
90
|
/**
|
|
39
|
-
* Date of
|
|
91
|
+
* Date of dependabotSecret update.
|
|
40
92
|
*/
|
|
41
93
|
readonly updatedAt: pulumi.Output<string>;
|
|
42
94
|
/**
|
|
43
|
-
* Configures the access that repositories have to the organization secret.
|
|
44
|
-
*
|
|
95
|
+
* Configures the access that repositories have to the organization secret.
|
|
96
|
+
* Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
|
|
45
97
|
*/
|
|
46
98
|
readonly visibility: pulumi.Output<string>;
|
|
47
99
|
/**
|
|
@@ -58,7 +110,7 @@ export declare class DependabotOrganizationSecret extends pulumi.CustomResource
|
|
|
58
110
|
*/
|
|
59
111
|
export interface DependabotOrganizationSecretState {
|
|
60
112
|
/**
|
|
61
|
-
* Date of
|
|
113
|
+
* Date of dependabotSecret creation.
|
|
62
114
|
*/
|
|
63
115
|
createdAt?: pulumi.Input<string>;
|
|
64
116
|
/**
|
|
@@ -66,11 +118,11 @@ export interface DependabotOrganizationSecretState {
|
|
|
66
118
|
*/
|
|
67
119
|
encryptedValue?: pulumi.Input<string>;
|
|
68
120
|
/**
|
|
69
|
-
* Plaintext value of the secret to be encrypted
|
|
121
|
+
* Plaintext value of the secret to be encrypted
|
|
70
122
|
*/
|
|
71
123
|
plaintextValue?: pulumi.Input<string>;
|
|
72
124
|
/**
|
|
73
|
-
* Name of the secret
|
|
125
|
+
* Name of the secret
|
|
74
126
|
*/
|
|
75
127
|
secretName?: pulumi.Input<string>;
|
|
76
128
|
/**
|
|
@@ -78,12 +130,12 @@ export interface DependabotOrganizationSecretState {
|
|
|
78
130
|
*/
|
|
79
131
|
selectedRepositoryIds?: pulumi.Input<pulumi.Input<number>[]>;
|
|
80
132
|
/**
|
|
81
|
-
* Date of
|
|
133
|
+
* Date of dependabotSecret update.
|
|
82
134
|
*/
|
|
83
135
|
updatedAt?: pulumi.Input<string>;
|
|
84
136
|
/**
|
|
85
|
-
* Configures the access that repositories have to the organization secret.
|
|
86
|
-
*
|
|
137
|
+
* Configures the access that repositories have to the organization secret.
|
|
138
|
+
* Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
|
|
87
139
|
*/
|
|
88
140
|
visibility?: pulumi.Input<string>;
|
|
89
141
|
}
|
|
@@ -96,11 +148,11 @@ export interface DependabotOrganizationSecretArgs {
|
|
|
96
148
|
*/
|
|
97
149
|
encryptedValue?: pulumi.Input<string>;
|
|
98
150
|
/**
|
|
99
|
-
* Plaintext value of the secret to be encrypted
|
|
151
|
+
* Plaintext value of the secret to be encrypted
|
|
100
152
|
*/
|
|
101
153
|
plaintextValue?: pulumi.Input<string>;
|
|
102
154
|
/**
|
|
103
|
-
* Name of the secret
|
|
155
|
+
* Name of the secret
|
|
104
156
|
*/
|
|
105
157
|
secretName: pulumi.Input<string>;
|
|
106
158
|
/**
|
|
@@ -108,8 +160,8 @@ export interface DependabotOrganizationSecretArgs {
|
|
|
108
160
|
*/
|
|
109
161
|
selectedRepositoryIds?: pulumi.Input<pulumi.Input<number>[]>;
|
|
110
162
|
/**
|
|
111
|
-
* Configures the access that repositories have to the organization secret.
|
|
112
|
-
*
|
|
163
|
+
* Configures the access that repositories have to the organization secret.
|
|
164
|
+
* Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
|
|
113
165
|
*/
|
|
114
166
|
visibility: pulumi.Input<string>;
|
|
115
167
|
}
|
|
@@ -5,6 +5,58 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.DependabotOrganizationSecret = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as github from "@pulumi/github";
|
|
14
|
+
*
|
|
15
|
+
* const exampleSecretDependabotOrganizationSecret = new github.DependabotOrganizationSecret("exampleSecretDependabotOrganizationSecret", {
|
|
16
|
+
* secretName: "example_secret_name",
|
|
17
|
+
* visibility: "private",
|
|
18
|
+
* plaintextValue: _var.some_secret_string,
|
|
19
|
+
* });
|
|
20
|
+
* const exampleSecretIndex_dependabotOrganizationSecretDependabotOrganizationSecret = new github.DependabotOrganizationSecret("exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret", {
|
|
21
|
+
* secretName: "example_secret_name",
|
|
22
|
+
* visibility: "private",
|
|
23
|
+
* encryptedValue: _var.some_encrypted_secret_string,
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* ```typescript
|
|
28
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
29
|
+
* import * as github from "@pulumi/github";
|
|
30
|
+
*
|
|
31
|
+
* const repo = github.getRepository({
|
|
32
|
+
* fullName: "my-org/repo",
|
|
33
|
+
* });
|
|
34
|
+
* const exampleSecretDependabotOrganizationSecret = new github.DependabotOrganizationSecret("exampleSecretDependabotOrganizationSecret", {
|
|
35
|
+
* secretName: "example_secret_name",
|
|
36
|
+
* visibility: "selected",
|
|
37
|
+
* plaintextValue: _var.some_secret_string,
|
|
38
|
+
* selectedRepositoryIds: [repo.then(repo => repo.repoId)],
|
|
39
|
+
* });
|
|
40
|
+
* const exampleSecretIndex_dependabotOrganizationSecretDependabotOrganizationSecret = new github.DependabotOrganizationSecret("exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret", {
|
|
41
|
+
* secretName: "example_secret_name",
|
|
42
|
+
* visibility: "selected",
|
|
43
|
+
* encryptedValue: _var.some_encrypted_secret_string,
|
|
44
|
+
* selectedRepositoryIds: [repo.then(repo => repo.repoId)],
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* ## Import
|
|
49
|
+
*
|
|
50
|
+
* This resource can be imported using an ID made up of the secret name:
|
|
51
|
+
*
|
|
52
|
+
* ```sh
|
|
53
|
+
* $ pulumi import github:index/dependabotOrganizationSecret:DependabotOrganizationSecret test_secret test_secret_name
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* NOTE: the implementation is limited in that it won't fetch the value of the
|
|
57
|
+
*
|
|
58
|
+
* `plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.
|
|
59
|
+
*/
|
|
8
60
|
class DependabotOrganizationSecret extends pulumi.CustomResource {
|
|
9
61
|
/**
|
|
10
62
|
* Get an existing DependabotOrganizationSecret resource's state with the given name, ID, and optional extra
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dependabotOrganizationSecret.js","sourceRoot":"","sources":["../dependabotOrganizationSecret.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,4BAA6B,SAAQ,MAAM,CAAC,cAAc;IACnE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyC,EAAE,IAAmC;QACvI,OAAO,IAAI,4BAA4B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnF,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,4BAA4B,CAAC,YAAY,CAAC;IAC7E,CAAC;IAwCD,YAAY,IAA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AAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACzG,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;YACxF,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,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,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,4BAA4B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjF,CAAC;;AAlGL,oEAmGC;AArFG,gBAAgB;AACO,yCAAY,GAAG,wEAAwE,CAAC"}
|
|
@@ -1,4 +1,38 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource allows you to manage the repository allow list for existing GitHub Dependabot secrets 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 repo = github.getRepository({
|
|
15
|
+
* fullName: "my-org/repo",
|
|
16
|
+
* });
|
|
17
|
+
* const exampleSecret = new github.DependabotOrganizationSecret("exampleSecret", {
|
|
18
|
+
* secretName: "example_secret_name",
|
|
19
|
+
* visibility: "private",
|
|
20
|
+
* plaintextValue: _var.some_secret_string,
|
|
21
|
+
* });
|
|
22
|
+
* const orgSecretRepos = new github.DependabotOrganizationSecretRepositories("orgSecretRepos", {
|
|
23
|
+
* secretName: exampleSecret.secretName,
|
|
24
|
+
* selectedRepositoryIds: [repo.then(repo => repo.repoId)],
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* ## Import
|
|
29
|
+
*
|
|
30
|
+
* This resource can be imported using an ID made up of the secret name:
|
|
31
|
+
*
|
|
32
|
+
* ```sh
|
|
33
|
+
* $ pulumi import github:index/dependabotOrganizationSecretRepositories:DependabotOrganizationSecretRepositories test_secret_repos test_secret_name
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
2
36
|
export declare class DependabotOrganizationSecretRepositories extends pulumi.CustomResource {
|
|
3
37
|
/**
|
|
4
38
|
* Get an existing DependabotOrganizationSecretRepositories resource's state with the given name, ID, and optional extra
|
|
@@ -16,7 +50,7 @@ export declare class DependabotOrganizationSecretRepositories extends pulumi.Cus
|
|
|
16
50
|
*/
|
|
17
51
|
static isInstance(obj: any): obj is DependabotOrganizationSecretRepositories;
|
|
18
52
|
/**
|
|
19
|
-
* Name of the existing secret
|
|
53
|
+
* Name of the existing secret
|
|
20
54
|
*/
|
|
21
55
|
readonly secretName: pulumi.Output<string>;
|
|
22
56
|
/**
|
|
@@ -37,7 +71,7 @@ export declare class DependabotOrganizationSecretRepositories extends pulumi.Cus
|
|
|
37
71
|
*/
|
|
38
72
|
export interface DependabotOrganizationSecretRepositoriesState {
|
|
39
73
|
/**
|
|
40
|
-
* Name of the existing secret
|
|
74
|
+
* Name of the existing secret
|
|
41
75
|
*/
|
|
42
76
|
secretName?: pulumi.Input<string>;
|
|
43
77
|
/**
|
|
@@ -50,7 +84,7 @@ export interface DependabotOrganizationSecretRepositoriesState {
|
|
|
50
84
|
*/
|
|
51
85
|
export interface DependabotOrganizationSecretRepositoriesArgs {
|
|
52
86
|
/**
|
|
53
|
-
* Name of the existing secret
|
|
87
|
+
* Name of the existing secret
|
|
54
88
|
*/
|
|
55
89
|
secretName: pulumi.Input<string>;
|
|
56
90
|
/**
|
|
@@ -5,6 +5,40 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.DependabotOrganizationSecretRepositories = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource allows you to manage the repository allow list for existing GitHub Dependabot secrets 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 repo = github.getRepository({
|
|
21
|
+
* fullName: "my-org/repo",
|
|
22
|
+
* });
|
|
23
|
+
* const exampleSecret = new github.DependabotOrganizationSecret("exampleSecret", {
|
|
24
|
+
* secretName: "example_secret_name",
|
|
25
|
+
* visibility: "private",
|
|
26
|
+
* plaintextValue: _var.some_secret_string,
|
|
27
|
+
* });
|
|
28
|
+
* const orgSecretRepos = new github.DependabotOrganizationSecretRepositories("orgSecretRepos", {
|
|
29
|
+
* secretName: exampleSecret.secretName,
|
|
30
|
+
* selectedRepositoryIds: [repo.then(repo => repo.repoId)],
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* ## Import
|
|
35
|
+
*
|
|
36
|
+
* This resource can be imported using an ID made up of the secret name:
|
|
37
|
+
*
|
|
38
|
+
* ```sh
|
|
39
|
+
* $ pulumi import github:index/dependabotOrganizationSecretRepositories:DependabotOrganizationSecretRepositories test_secret_repos test_secret_name
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
8
42
|
class DependabotOrganizationSecretRepositories extends pulumi.CustomResource {
|
|
9
43
|
/**
|
|
10
44
|
* Get an existing DependabotOrganizationSecretRepositories resource's state with the given name, ID, and optional extra
|