pulumi-github 6.11.0a1768966924__py3-none-any.whl → 6.12.0__py3-none-any.whl
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.
- pulumi_github/__init__.py +28 -0
- pulumi_github/_inputs.py +324 -19
- pulumi_github/actions_environment_secret.py +141 -12
- pulumi_github/actions_environment_variable.py +71 -37
- pulumi_github/actions_organization_permissions.py +50 -3
- pulumi_github/actions_organization_secret.py +164 -55
- pulumi_github/actions_organization_secret_repositories.py +44 -28
- pulumi_github/actions_organization_secret_repository.py +44 -28
- pulumi_github/actions_organization_variable.py +44 -47
- pulumi_github/actions_organization_variable_repositories.py +262 -0
- pulumi_github/actions_organization_variable_repository.py +262 -0
- pulumi_github/actions_repository_permissions.py +50 -3
- pulumi_github/actions_secret.py +176 -41
- pulumi_github/actions_variable.py +65 -33
- pulumi_github/app_installation_repositories.py +6 -6
- pulumi_github/app_installation_repository.py +6 -6
- pulumi_github/dependabot_organization_secret.py +128 -59
- pulumi_github/dependabot_organization_secret_repositories.py +44 -36
- pulumi_github/dependabot_organization_secret_repository.py +262 -0
- pulumi_github/dependabot_secret.py +154 -41
- pulumi_github/emu_group_mapping.py +64 -4
- pulumi_github/get_release_asset.py +370 -0
- pulumi_github/organization_ruleset.py +11 -17
- pulumi_github/outputs.py +234 -13
- pulumi_github/pulumi-plugin.json +1 -1
- pulumi_github/repository.py +32 -27
- pulumi_github/repository_ruleset.py +7 -7
- {pulumi_github-6.11.0a1768966924.dist-info → pulumi_github-6.12.0.dist-info}/METADATA +1 -1
- {pulumi_github-6.11.0a1768966924.dist-info → pulumi_github-6.12.0.dist-info}/RECORD +31 -27
- {pulumi_github-6.11.0a1768966924.dist-info → pulumi_github-6.12.0.dist-info}/WHEEL +1 -1
- {pulumi_github-6.11.0a1768966924.dist-info → pulumi_github-6.12.0.dist-info}/top_level.txt +0 -0
|
@@ -23,6 +23,7 @@ class ActionsEnvironmentSecretArgs:
|
|
|
23
23
|
repository: pulumi.Input[_builtins.str],
|
|
24
24
|
secret_name: pulumi.Input[_builtins.str],
|
|
25
25
|
encrypted_value: Optional[pulumi.Input[_builtins.str]] = None,
|
|
26
|
+
key_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
26
27
|
plaintext_value: Optional[pulumi.Input[_builtins.str]] = None):
|
|
27
28
|
"""
|
|
28
29
|
The set of arguments for constructing a ActionsEnvironmentSecret resource.
|
|
@@ -30,13 +31,18 @@ class ActionsEnvironmentSecretArgs:
|
|
|
30
31
|
:param pulumi.Input[_builtins.str] repository: Name of the repository.
|
|
31
32
|
:param pulumi.Input[_builtins.str] secret_name: Name of the secret.
|
|
32
33
|
:param pulumi.Input[_builtins.str] encrypted_value: Encrypted value of the secret using the GitHub public key in Base64 format.
|
|
34
|
+
:param pulumi.Input[_builtins.str] key_id: ID of the public key used to encrypt the secret. This should be provided when setting `encrypted_value`; if it isn't then the current public key will be looked up, which could cause a missmatch. This conflicts with `plaintext_value`.
|
|
33
35
|
:param pulumi.Input[_builtins.str] plaintext_value: Plaintext value of the secret to be encrypted.
|
|
36
|
+
|
|
37
|
+
> **Note**: One of either `encrypted_value` or `plaintext_value` must be specified.
|
|
34
38
|
"""
|
|
35
39
|
pulumi.set(__self__, "environment", environment)
|
|
36
40
|
pulumi.set(__self__, "repository", repository)
|
|
37
41
|
pulumi.set(__self__, "secret_name", secret_name)
|
|
38
42
|
if encrypted_value is not None:
|
|
39
43
|
pulumi.set(__self__, "encrypted_value", encrypted_value)
|
|
44
|
+
if key_id is not None:
|
|
45
|
+
pulumi.set(__self__, "key_id", key_id)
|
|
40
46
|
if plaintext_value is not None:
|
|
41
47
|
pulumi.set(__self__, "plaintext_value", plaintext_value)
|
|
42
48
|
|
|
@@ -88,11 +94,25 @@ class ActionsEnvironmentSecretArgs:
|
|
|
88
94
|
def encrypted_value(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
89
95
|
pulumi.set(self, "encrypted_value", value)
|
|
90
96
|
|
|
97
|
+
@_builtins.property
|
|
98
|
+
@pulumi.getter(name="keyId")
|
|
99
|
+
def key_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
100
|
+
"""
|
|
101
|
+
ID of the public key used to encrypt the secret. This should be provided when setting `encrypted_value`; if it isn't then the current public key will be looked up, which could cause a missmatch. This conflicts with `plaintext_value`.
|
|
102
|
+
"""
|
|
103
|
+
return pulumi.get(self, "key_id")
|
|
104
|
+
|
|
105
|
+
@key_id.setter
|
|
106
|
+
def key_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
107
|
+
pulumi.set(self, "key_id", value)
|
|
108
|
+
|
|
91
109
|
@_builtins.property
|
|
92
110
|
@pulumi.getter(name="plaintextValue")
|
|
93
111
|
def plaintext_value(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
94
112
|
"""
|
|
95
113
|
Plaintext value of the secret to be encrypted.
|
|
114
|
+
|
|
115
|
+
> **Note**: One of either `encrypted_value` or `plaintext_value` must be specified.
|
|
96
116
|
"""
|
|
97
117
|
return pulumi.get(self, "plaintext_value")
|
|
98
118
|
|
|
@@ -107,19 +127,27 @@ class _ActionsEnvironmentSecretState:
|
|
|
107
127
|
created_at: Optional[pulumi.Input[_builtins.str]] = None,
|
|
108
128
|
encrypted_value: Optional[pulumi.Input[_builtins.str]] = None,
|
|
109
129
|
environment: Optional[pulumi.Input[_builtins.str]] = None,
|
|
130
|
+
key_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
110
131
|
plaintext_value: Optional[pulumi.Input[_builtins.str]] = None,
|
|
132
|
+
remote_updated_at: Optional[pulumi.Input[_builtins.str]] = None,
|
|
111
133
|
repository: Optional[pulumi.Input[_builtins.str]] = None,
|
|
134
|
+
repository_id: Optional[pulumi.Input[_builtins.int]] = None,
|
|
112
135
|
secret_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
113
136
|
updated_at: Optional[pulumi.Input[_builtins.str]] = None):
|
|
114
137
|
"""
|
|
115
138
|
Input properties used for looking up and filtering ActionsEnvironmentSecret resources.
|
|
116
|
-
:param pulumi.Input[_builtins.str] created_at: Date
|
|
139
|
+
:param pulumi.Input[_builtins.str] created_at: Date the secret was created.
|
|
117
140
|
:param pulumi.Input[_builtins.str] encrypted_value: Encrypted value of the secret using the GitHub public key in Base64 format.
|
|
118
141
|
:param pulumi.Input[_builtins.str] environment: Name of the environment.
|
|
142
|
+
:param pulumi.Input[_builtins.str] key_id: ID of the public key used to encrypt the secret. This should be provided when setting `encrypted_value`; if it isn't then the current public key will be looked up, which could cause a missmatch. This conflicts with `plaintext_value`.
|
|
119
143
|
:param pulumi.Input[_builtins.str] plaintext_value: Plaintext value of the secret to be encrypted.
|
|
144
|
+
|
|
145
|
+
> **Note**: One of either `encrypted_value` or `plaintext_value` must be specified.
|
|
146
|
+
:param pulumi.Input[_builtins.str] remote_updated_at: Date the secret was last updated in GitHub.
|
|
120
147
|
:param pulumi.Input[_builtins.str] repository: Name of the repository.
|
|
148
|
+
:param pulumi.Input[_builtins.int] repository_id: ID of the repository.
|
|
121
149
|
:param pulumi.Input[_builtins.str] secret_name: Name of the secret.
|
|
122
|
-
:param pulumi.Input[_builtins.str] updated_at: Date
|
|
150
|
+
:param pulumi.Input[_builtins.str] updated_at: Date the secret was last updated by the provider.
|
|
123
151
|
"""
|
|
124
152
|
if created_at is not None:
|
|
125
153
|
pulumi.set(__self__, "created_at", created_at)
|
|
@@ -127,10 +155,16 @@ class _ActionsEnvironmentSecretState:
|
|
|
127
155
|
pulumi.set(__self__, "encrypted_value", encrypted_value)
|
|
128
156
|
if environment is not None:
|
|
129
157
|
pulumi.set(__self__, "environment", environment)
|
|
158
|
+
if key_id is not None:
|
|
159
|
+
pulumi.set(__self__, "key_id", key_id)
|
|
130
160
|
if plaintext_value is not None:
|
|
131
161
|
pulumi.set(__self__, "plaintext_value", plaintext_value)
|
|
162
|
+
if remote_updated_at is not None:
|
|
163
|
+
pulumi.set(__self__, "remote_updated_at", remote_updated_at)
|
|
132
164
|
if repository is not None:
|
|
133
165
|
pulumi.set(__self__, "repository", repository)
|
|
166
|
+
if repository_id is not None:
|
|
167
|
+
pulumi.set(__self__, "repository_id", repository_id)
|
|
134
168
|
if secret_name is not None:
|
|
135
169
|
pulumi.set(__self__, "secret_name", secret_name)
|
|
136
170
|
if updated_at is not None:
|
|
@@ -140,7 +174,7 @@ class _ActionsEnvironmentSecretState:
|
|
|
140
174
|
@pulumi.getter(name="createdAt")
|
|
141
175
|
def created_at(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
142
176
|
"""
|
|
143
|
-
Date
|
|
177
|
+
Date the secret was created.
|
|
144
178
|
"""
|
|
145
179
|
return pulumi.get(self, "created_at")
|
|
146
180
|
|
|
@@ -172,11 +206,25 @@ class _ActionsEnvironmentSecretState:
|
|
|
172
206
|
def environment(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
173
207
|
pulumi.set(self, "environment", value)
|
|
174
208
|
|
|
209
|
+
@_builtins.property
|
|
210
|
+
@pulumi.getter(name="keyId")
|
|
211
|
+
def key_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
212
|
+
"""
|
|
213
|
+
ID of the public key used to encrypt the secret. This should be provided when setting `encrypted_value`; if it isn't then the current public key will be looked up, which could cause a missmatch. This conflicts with `plaintext_value`.
|
|
214
|
+
"""
|
|
215
|
+
return pulumi.get(self, "key_id")
|
|
216
|
+
|
|
217
|
+
@key_id.setter
|
|
218
|
+
def key_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
219
|
+
pulumi.set(self, "key_id", value)
|
|
220
|
+
|
|
175
221
|
@_builtins.property
|
|
176
222
|
@pulumi.getter(name="plaintextValue")
|
|
177
223
|
def plaintext_value(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
178
224
|
"""
|
|
179
225
|
Plaintext value of the secret to be encrypted.
|
|
226
|
+
|
|
227
|
+
> **Note**: One of either `encrypted_value` or `plaintext_value` must be specified.
|
|
180
228
|
"""
|
|
181
229
|
return pulumi.get(self, "plaintext_value")
|
|
182
230
|
|
|
@@ -184,6 +232,18 @@ class _ActionsEnvironmentSecretState:
|
|
|
184
232
|
def plaintext_value(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
185
233
|
pulumi.set(self, "plaintext_value", value)
|
|
186
234
|
|
|
235
|
+
@_builtins.property
|
|
236
|
+
@pulumi.getter(name="remoteUpdatedAt")
|
|
237
|
+
def remote_updated_at(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
238
|
+
"""
|
|
239
|
+
Date the secret was last updated in GitHub.
|
|
240
|
+
"""
|
|
241
|
+
return pulumi.get(self, "remote_updated_at")
|
|
242
|
+
|
|
243
|
+
@remote_updated_at.setter
|
|
244
|
+
def remote_updated_at(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
245
|
+
pulumi.set(self, "remote_updated_at", value)
|
|
246
|
+
|
|
187
247
|
@_builtins.property
|
|
188
248
|
@pulumi.getter
|
|
189
249
|
def repository(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
@@ -196,6 +256,18 @@ class _ActionsEnvironmentSecretState:
|
|
|
196
256
|
def repository(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
197
257
|
pulumi.set(self, "repository", value)
|
|
198
258
|
|
|
259
|
+
@_builtins.property
|
|
260
|
+
@pulumi.getter(name="repositoryId")
|
|
261
|
+
def repository_id(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
262
|
+
"""
|
|
263
|
+
ID of the repository.
|
|
264
|
+
"""
|
|
265
|
+
return pulumi.get(self, "repository_id")
|
|
266
|
+
|
|
267
|
+
@repository_id.setter
|
|
268
|
+
def repository_id(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
269
|
+
pulumi.set(self, "repository_id", value)
|
|
270
|
+
|
|
199
271
|
@_builtins.property
|
|
200
272
|
@pulumi.getter(name="secretName")
|
|
201
273
|
def secret_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
@@ -212,7 +284,7 @@ class _ActionsEnvironmentSecretState:
|
|
|
212
284
|
@pulumi.getter(name="updatedAt")
|
|
213
285
|
def updated_at(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
214
286
|
"""
|
|
215
|
-
Date
|
|
287
|
+
Date the secret was last updated by the provider.
|
|
216
288
|
"""
|
|
217
289
|
return pulumi.get(self, "updated_at")
|
|
218
290
|
|
|
@@ -229,6 +301,7 @@ class ActionsEnvironmentSecret(pulumi.CustomResource):
|
|
|
229
301
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
230
302
|
encrypted_value: Optional[pulumi.Input[_builtins.str]] = None,
|
|
231
303
|
environment: Optional[pulumi.Input[_builtins.str]] = None,
|
|
304
|
+
key_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
232
305
|
plaintext_value: Optional[pulumi.Input[_builtins.str]] = None,
|
|
233
306
|
repository: Optional[pulumi.Input[_builtins.str]] = None,
|
|
234
307
|
secret_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -236,13 +309,22 @@ class ActionsEnvironmentSecret(pulumi.CustomResource):
|
|
|
236
309
|
"""
|
|
237
310
|
## Import
|
|
238
311
|
|
|
239
|
-
|
|
312
|
+
### Import Command
|
|
313
|
+
|
|
314
|
+
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`.
|
|
315
|
+
|
|
316
|
+
```sh
|
|
317
|
+
$ pulumi import github:index/actionsEnvironmentSecret:ActionsEnvironmentSecret example myrepo:myenv:mysecret
|
|
318
|
+
```
|
|
240
319
|
|
|
241
320
|
:param str resource_name: The name of the resource.
|
|
242
321
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
243
322
|
:param pulumi.Input[_builtins.str] encrypted_value: Encrypted value of the secret using the GitHub public key in Base64 format.
|
|
244
323
|
:param pulumi.Input[_builtins.str] environment: Name of the environment.
|
|
324
|
+
:param pulumi.Input[_builtins.str] key_id: ID of the public key used to encrypt the secret. This should be provided when setting `encrypted_value`; if it isn't then the current public key will be looked up, which could cause a missmatch. This conflicts with `plaintext_value`.
|
|
245
325
|
:param pulumi.Input[_builtins.str] plaintext_value: Plaintext value of the secret to be encrypted.
|
|
326
|
+
|
|
327
|
+
> **Note**: One of either `encrypted_value` or `plaintext_value` must be specified.
|
|
246
328
|
:param pulumi.Input[_builtins.str] repository: Name of the repository.
|
|
247
329
|
:param pulumi.Input[_builtins.str] secret_name: Name of the secret.
|
|
248
330
|
"""
|
|
@@ -255,7 +337,13 @@ class ActionsEnvironmentSecret(pulumi.CustomResource):
|
|
|
255
337
|
"""
|
|
256
338
|
## Import
|
|
257
339
|
|
|
258
|
-
|
|
340
|
+
### Import Command
|
|
341
|
+
|
|
342
|
+
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`.
|
|
343
|
+
|
|
344
|
+
```sh
|
|
345
|
+
$ pulumi import github:index/actionsEnvironmentSecret:ActionsEnvironmentSecret example myrepo:myenv:mysecret
|
|
346
|
+
```
|
|
259
347
|
|
|
260
348
|
:param str resource_name: The name of the resource.
|
|
261
349
|
:param ActionsEnvironmentSecretArgs args: The arguments to use to populate this resource's properties.
|
|
@@ -274,6 +362,7 @@ class ActionsEnvironmentSecret(pulumi.CustomResource):
|
|
|
274
362
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
275
363
|
encrypted_value: Optional[pulumi.Input[_builtins.str]] = None,
|
|
276
364
|
environment: Optional[pulumi.Input[_builtins.str]] = None,
|
|
365
|
+
key_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
277
366
|
plaintext_value: Optional[pulumi.Input[_builtins.str]] = None,
|
|
278
367
|
repository: Optional[pulumi.Input[_builtins.str]] = None,
|
|
279
368
|
secret_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -286,10 +375,11 @@ class ActionsEnvironmentSecret(pulumi.CustomResource):
|
|
|
286
375
|
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
287
376
|
__props__ = ActionsEnvironmentSecretArgs.__new__(ActionsEnvironmentSecretArgs)
|
|
288
377
|
|
|
289
|
-
__props__.__dict__["encrypted_value"] =
|
|
378
|
+
__props__.__dict__["encrypted_value"] = encrypted_value
|
|
290
379
|
if environment is None and not opts.urn:
|
|
291
380
|
raise TypeError("Missing required property 'environment'")
|
|
292
381
|
__props__.__dict__["environment"] = environment
|
|
382
|
+
__props__.__dict__["key_id"] = key_id
|
|
293
383
|
__props__.__dict__["plaintext_value"] = None if plaintext_value is None else pulumi.Output.secret(plaintext_value)
|
|
294
384
|
if repository is None and not opts.urn:
|
|
295
385
|
raise TypeError("Missing required property 'repository'")
|
|
@@ -298,8 +388,10 @@ class ActionsEnvironmentSecret(pulumi.CustomResource):
|
|
|
298
388
|
raise TypeError("Missing required property 'secret_name'")
|
|
299
389
|
__props__.__dict__["secret_name"] = secret_name
|
|
300
390
|
__props__.__dict__["created_at"] = None
|
|
391
|
+
__props__.__dict__["remote_updated_at"] = None
|
|
392
|
+
__props__.__dict__["repository_id"] = None
|
|
301
393
|
__props__.__dict__["updated_at"] = None
|
|
302
|
-
secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["
|
|
394
|
+
secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["plaintextValue"])
|
|
303
395
|
opts = pulumi.ResourceOptions.merge(opts, secret_opts)
|
|
304
396
|
super(ActionsEnvironmentSecret, __self__).__init__(
|
|
305
397
|
'github:index/actionsEnvironmentSecret:ActionsEnvironmentSecret',
|
|
@@ -314,8 +406,11 @@ class ActionsEnvironmentSecret(pulumi.CustomResource):
|
|
|
314
406
|
created_at: Optional[pulumi.Input[_builtins.str]] = None,
|
|
315
407
|
encrypted_value: Optional[pulumi.Input[_builtins.str]] = None,
|
|
316
408
|
environment: Optional[pulumi.Input[_builtins.str]] = None,
|
|
409
|
+
key_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
317
410
|
plaintext_value: Optional[pulumi.Input[_builtins.str]] = None,
|
|
411
|
+
remote_updated_at: Optional[pulumi.Input[_builtins.str]] = None,
|
|
318
412
|
repository: Optional[pulumi.Input[_builtins.str]] = None,
|
|
413
|
+
repository_id: Optional[pulumi.Input[_builtins.int]] = None,
|
|
319
414
|
secret_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
320
415
|
updated_at: Optional[pulumi.Input[_builtins.str]] = None) -> 'ActionsEnvironmentSecret':
|
|
321
416
|
"""
|
|
@@ -325,13 +420,18 @@ class ActionsEnvironmentSecret(pulumi.CustomResource):
|
|
|
325
420
|
:param str resource_name: The unique name of the resulting resource.
|
|
326
421
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
327
422
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
328
|
-
:param pulumi.Input[_builtins.str] created_at: Date
|
|
423
|
+
:param pulumi.Input[_builtins.str] created_at: Date the secret was created.
|
|
329
424
|
:param pulumi.Input[_builtins.str] encrypted_value: Encrypted value of the secret using the GitHub public key in Base64 format.
|
|
330
425
|
:param pulumi.Input[_builtins.str] environment: Name of the environment.
|
|
426
|
+
:param pulumi.Input[_builtins.str] key_id: ID of the public key used to encrypt the secret. This should be provided when setting `encrypted_value`; if it isn't then the current public key will be looked up, which could cause a missmatch. This conflicts with `plaintext_value`.
|
|
331
427
|
:param pulumi.Input[_builtins.str] plaintext_value: Plaintext value of the secret to be encrypted.
|
|
428
|
+
|
|
429
|
+
> **Note**: One of either `encrypted_value` or `plaintext_value` must be specified.
|
|
430
|
+
:param pulumi.Input[_builtins.str] remote_updated_at: Date the secret was last updated in GitHub.
|
|
332
431
|
:param pulumi.Input[_builtins.str] repository: Name of the repository.
|
|
432
|
+
:param pulumi.Input[_builtins.int] repository_id: ID of the repository.
|
|
333
433
|
:param pulumi.Input[_builtins.str] secret_name: Name of the secret.
|
|
334
|
-
:param pulumi.Input[_builtins.str] updated_at: Date
|
|
434
|
+
:param pulumi.Input[_builtins.str] updated_at: Date the secret was last updated by the provider.
|
|
335
435
|
"""
|
|
336
436
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
337
437
|
|
|
@@ -340,8 +440,11 @@ class ActionsEnvironmentSecret(pulumi.CustomResource):
|
|
|
340
440
|
__props__.__dict__["created_at"] = created_at
|
|
341
441
|
__props__.__dict__["encrypted_value"] = encrypted_value
|
|
342
442
|
__props__.__dict__["environment"] = environment
|
|
443
|
+
__props__.__dict__["key_id"] = key_id
|
|
343
444
|
__props__.__dict__["plaintext_value"] = plaintext_value
|
|
445
|
+
__props__.__dict__["remote_updated_at"] = remote_updated_at
|
|
344
446
|
__props__.__dict__["repository"] = repository
|
|
447
|
+
__props__.__dict__["repository_id"] = repository_id
|
|
345
448
|
__props__.__dict__["secret_name"] = secret_name
|
|
346
449
|
__props__.__dict__["updated_at"] = updated_at
|
|
347
450
|
return ActionsEnvironmentSecret(resource_name, opts=opts, __props__=__props__)
|
|
@@ -350,7 +453,7 @@ class ActionsEnvironmentSecret(pulumi.CustomResource):
|
|
|
350
453
|
@pulumi.getter(name="createdAt")
|
|
351
454
|
def created_at(self) -> pulumi.Output[_builtins.str]:
|
|
352
455
|
"""
|
|
353
|
-
Date
|
|
456
|
+
Date the secret was created.
|
|
354
457
|
"""
|
|
355
458
|
return pulumi.get(self, "created_at")
|
|
356
459
|
|
|
@@ -370,14 +473,32 @@ class ActionsEnvironmentSecret(pulumi.CustomResource):
|
|
|
370
473
|
"""
|
|
371
474
|
return pulumi.get(self, "environment")
|
|
372
475
|
|
|
476
|
+
@_builtins.property
|
|
477
|
+
@pulumi.getter(name="keyId")
|
|
478
|
+
def key_id(self) -> pulumi.Output[_builtins.str]:
|
|
479
|
+
"""
|
|
480
|
+
ID of the public key used to encrypt the secret. This should be provided when setting `encrypted_value`; if it isn't then the current public key will be looked up, which could cause a missmatch. This conflicts with `plaintext_value`.
|
|
481
|
+
"""
|
|
482
|
+
return pulumi.get(self, "key_id")
|
|
483
|
+
|
|
373
484
|
@_builtins.property
|
|
374
485
|
@pulumi.getter(name="plaintextValue")
|
|
375
486
|
def plaintext_value(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
376
487
|
"""
|
|
377
488
|
Plaintext value of the secret to be encrypted.
|
|
489
|
+
|
|
490
|
+
> **Note**: One of either `encrypted_value` or `plaintext_value` must be specified.
|
|
378
491
|
"""
|
|
379
492
|
return pulumi.get(self, "plaintext_value")
|
|
380
493
|
|
|
494
|
+
@_builtins.property
|
|
495
|
+
@pulumi.getter(name="remoteUpdatedAt")
|
|
496
|
+
def remote_updated_at(self) -> pulumi.Output[_builtins.str]:
|
|
497
|
+
"""
|
|
498
|
+
Date the secret was last updated in GitHub.
|
|
499
|
+
"""
|
|
500
|
+
return pulumi.get(self, "remote_updated_at")
|
|
501
|
+
|
|
381
502
|
@_builtins.property
|
|
382
503
|
@pulumi.getter
|
|
383
504
|
def repository(self) -> pulumi.Output[_builtins.str]:
|
|
@@ -386,6 +507,14 @@ class ActionsEnvironmentSecret(pulumi.CustomResource):
|
|
|
386
507
|
"""
|
|
387
508
|
return pulumi.get(self, "repository")
|
|
388
509
|
|
|
510
|
+
@_builtins.property
|
|
511
|
+
@pulumi.getter(name="repositoryId")
|
|
512
|
+
def repository_id(self) -> pulumi.Output[_builtins.int]:
|
|
513
|
+
"""
|
|
514
|
+
ID of the repository.
|
|
515
|
+
"""
|
|
516
|
+
return pulumi.get(self, "repository_id")
|
|
517
|
+
|
|
389
518
|
@_builtins.property
|
|
390
519
|
@pulumi.getter(name="secretName")
|
|
391
520
|
def secret_name(self) -> pulumi.Output[_builtins.str]:
|
|
@@ -398,7 +527,7 @@ class ActionsEnvironmentSecret(pulumi.CustomResource):
|
|
|
398
527
|
@pulumi.getter(name="updatedAt")
|
|
399
528
|
def updated_at(self) -> pulumi.Output[_builtins.str]:
|
|
400
529
|
"""
|
|
401
|
-
Date
|
|
530
|
+
Date the secret was last updated by the provider.
|
|
402
531
|
"""
|
|
403
532
|
return pulumi.get(self, "updated_at")
|
|
404
533
|
|
|
@@ -27,7 +27,7 @@ class ActionsEnvironmentVariableArgs:
|
|
|
27
27
|
The set of arguments for constructing a ActionsEnvironmentVariable resource.
|
|
28
28
|
:param pulumi.Input[_builtins.str] environment: Name of the environment.
|
|
29
29
|
:param pulumi.Input[_builtins.str] repository: Name of the repository.
|
|
30
|
-
:param pulumi.Input[_builtins.str] value: Value of the variable
|
|
30
|
+
:param pulumi.Input[_builtins.str] value: Value of the variable.
|
|
31
31
|
:param pulumi.Input[_builtins.str] variable_name: Name of the variable.
|
|
32
32
|
"""
|
|
33
33
|
pulumi.set(__self__, "environment", environment)
|
|
@@ -63,7 +63,7 @@ class ActionsEnvironmentVariableArgs:
|
|
|
63
63
|
@pulumi.getter
|
|
64
64
|
def value(self) -> pulumi.Input[_builtins.str]:
|
|
65
65
|
"""
|
|
66
|
-
Value of the variable
|
|
66
|
+
Value of the variable.
|
|
67
67
|
"""
|
|
68
68
|
return pulumi.get(self, "value")
|
|
69
69
|
|
|
@@ -90,16 +90,18 @@ class _ActionsEnvironmentVariableState:
|
|
|
90
90
|
created_at: Optional[pulumi.Input[_builtins.str]] = None,
|
|
91
91
|
environment: Optional[pulumi.Input[_builtins.str]] = None,
|
|
92
92
|
repository: Optional[pulumi.Input[_builtins.str]] = None,
|
|
93
|
+
repository_id: Optional[pulumi.Input[_builtins.int]] = None,
|
|
93
94
|
updated_at: Optional[pulumi.Input[_builtins.str]] = None,
|
|
94
95
|
value: Optional[pulumi.Input[_builtins.str]] = None,
|
|
95
96
|
variable_name: Optional[pulumi.Input[_builtins.str]] = None):
|
|
96
97
|
"""
|
|
97
98
|
Input properties used for looking up and filtering ActionsEnvironmentVariable resources.
|
|
98
|
-
:param pulumi.Input[_builtins.str] created_at: Date
|
|
99
|
+
:param pulumi.Input[_builtins.str] created_at: Date the variable was created.
|
|
99
100
|
:param pulumi.Input[_builtins.str] environment: Name of the environment.
|
|
100
101
|
:param pulumi.Input[_builtins.str] repository: Name of the repository.
|
|
101
|
-
:param pulumi.Input[_builtins.
|
|
102
|
-
:param pulumi.Input[_builtins.str]
|
|
102
|
+
:param pulumi.Input[_builtins.int] repository_id: ID of the repository.
|
|
103
|
+
:param pulumi.Input[_builtins.str] updated_at: Date the variable was last updated.
|
|
104
|
+
:param pulumi.Input[_builtins.str] value: Value of the variable.
|
|
103
105
|
:param pulumi.Input[_builtins.str] variable_name: Name of the variable.
|
|
104
106
|
"""
|
|
105
107
|
if created_at is not None:
|
|
@@ -108,6 +110,8 @@ class _ActionsEnvironmentVariableState:
|
|
|
108
110
|
pulumi.set(__self__, "environment", environment)
|
|
109
111
|
if repository is not None:
|
|
110
112
|
pulumi.set(__self__, "repository", repository)
|
|
113
|
+
if repository_id is not None:
|
|
114
|
+
pulumi.set(__self__, "repository_id", repository_id)
|
|
111
115
|
if updated_at is not None:
|
|
112
116
|
pulumi.set(__self__, "updated_at", updated_at)
|
|
113
117
|
if value is not None:
|
|
@@ -119,7 +123,7 @@ class _ActionsEnvironmentVariableState:
|
|
|
119
123
|
@pulumi.getter(name="createdAt")
|
|
120
124
|
def created_at(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
121
125
|
"""
|
|
122
|
-
Date
|
|
126
|
+
Date the variable was created.
|
|
123
127
|
"""
|
|
124
128
|
return pulumi.get(self, "created_at")
|
|
125
129
|
|
|
@@ -151,11 +155,23 @@ class _ActionsEnvironmentVariableState:
|
|
|
151
155
|
def repository(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
152
156
|
pulumi.set(self, "repository", value)
|
|
153
157
|
|
|
158
|
+
@_builtins.property
|
|
159
|
+
@pulumi.getter(name="repositoryId")
|
|
160
|
+
def repository_id(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
161
|
+
"""
|
|
162
|
+
ID of the repository.
|
|
163
|
+
"""
|
|
164
|
+
return pulumi.get(self, "repository_id")
|
|
165
|
+
|
|
166
|
+
@repository_id.setter
|
|
167
|
+
def repository_id(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
168
|
+
pulumi.set(self, "repository_id", value)
|
|
169
|
+
|
|
154
170
|
@_builtins.property
|
|
155
171
|
@pulumi.getter(name="updatedAt")
|
|
156
172
|
def updated_at(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
157
173
|
"""
|
|
158
|
-
Date
|
|
174
|
+
Date the variable was last updated.
|
|
159
175
|
"""
|
|
160
176
|
return pulumi.get(self, "updated_at")
|
|
161
177
|
|
|
@@ -167,7 +183,7 @@ class _ActionsEnvironmentVariableState:
|
|
|
167
183
|
@pulumi.getter
|
|
168
184
|
def value(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
169
185
|
"""
|
|
170
|
-
Value of the variable
|
|
186
|
+
Value of the variable.
|
|
171
187
|
"""
|
|
172
188
|
return pulumi.get(self, "value")
|
|
173
189
|
|
|
@@ -209,30 +225,33 @@ class ActionsEnvironmentVariable(pulumi.CustomResource):
|
|
|
209
225
|
import pulumi
|
|
210
226
|
import pulumi_github as github
|
|
211
227
|
|
|
212
|
-
|
|
213
|
-
|
|
228
|
+
example = github.ActionsEnvironmentVariable("example",
|
|
229
|
+
repository="example-repo",
|
|
230
|
+
environment="example-environment",
|
|
214
231
|
variable_name="example_variable_name",
|
|
215
|
-
value="
|
|
232
|
+
value="example-value")
|
|
216
233
|
```
|
|
217
234
|
|
|
218
235
|
```python
|
|
219
236
|
import pulumi
|
|
220
237
|
import pulumi_github as github
|
|
221
238
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
repository=
|
|
239
|
+
example = github.get_repository(full_name="my-org/repo")
|
|
240
|
+
example_repository_environment = github.RepositoryEnvironment("example",
|
|
241
|
+
repository=example.name,
|
|
225
242
|
environment="example_environment")
|
|
226
|
-
|
|
227
|
-
repository=
|
|
228
|
-
environment=
|
|
243
|
+
example_actions_environment_variable = github.ActionsEnvironmentVariable("example",
|
|
244
|
+
repository=example.name,
|
|
245
|
+
environment=example_repository_environment.environment,
|
|
229
246
|
variable_name="example_variable_name",
|
|
230
|
-
value="
|
|
247
|
+
value="example-value")
|
|
231
248
|
```
|
|
232
249
|
|
|
233
250
|
## Import
|
|
234
251
|
|
|
235
|
-
|
|
252
|
+
### Import Command
|
|
253
|
+
|
|
254
|
+
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`.
|
|
236
255
|
|
|
237
256
|
```sh
|
|
238
257
|
$ pulumi import github:index/actionsEnvironmentVariable:ActionsEnvironmentVariable example myrepo:myenv:myvariable
|
|
@@ -242,7 +261,7 @@ class ActionsEnvironmentVariable(pulumi.CustomResource):
|
|
|
242
261
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
243
262
|
:param pulumi.Input[_builtins.str] environment: Name of the environment.
|
|
244
263
|
:param pulumi.Input[_builtins.str] repository: Name of the repository.
|
|
245
|
-
:param pulumi.Input[_builtins.str] value: Value of the variable
|
|
264
|
+
:param pulumi.Input[_builtins.str] value: Value of the variable.
|
|
246
265
|
:param pulumi.Input[_builtins.str] variable_name: Name of the variable.
|
|
247
266
|
"""
|
|
248
267
|
...
|
|
@@ -261,30 +280,33 @@ class ActionsEnvironmentVariable(pulumi.CustomResource):
|
|
|
261
280
|
import pulumi
|
|
262
281
|
import pulumi_github as github
|
|
263
282
|
|
|
264
|
-
|
|
265
|
-
|
|
283
|
+
example = github.ActionsEnvironmentVariable("example",
|
|
284
|
+
repository="example-repo",
|
|
285
|
+
environment="example-environment",
|
|
266
286
|
variable_name="example_variable_name",
|
|
267
|
-
value="
|
|
287
|
+
value="example-value")
|
|
268
288
|
```
|
|
269
289
|
|
|
270
290
|
```python
|
|
271
291
|
import pulumi
|
|
272
292
|
import pulumi_github as github
|
|
273
293
|
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
repository=
|
|
294
|
+
example = github.get_repository(full_name="my-org/repo")
|
|
295
|
+
example_repository_environment = github.RepositoryEnvironment("example",
|
|
296
|
+
repository=example.name,
|
|
277
297
|
environment="example_environment")
|
|
278
|
-
|
|
279
|
-
repository=
|
|
280
|
-
environment=
|
|
298
|
+
example_actions_environment_variable = github.ActionsEnvironmentVariable("example",
|
|
299
|
+
repository=example.name,
|
|
300
|
+
environment=example_repository_environment.environment,
|
|
281
301
|
variable_name="example_variable_name",
|
|
282
|
-
value="
|
|
302
|
+
value="example-value")
|
|
283
303
|
```
|
|
284
304
|
|
|
285
305
|
## Import
|
|
286
306
|
|
|
287
|
-
|
|
307
|
+
### Import Command
|
|
308
|
+
|
|
309
|
+
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`.
|
|
288
310
|
|
|
289
311
|
```sh
|
|
290
312
|
$ pulumi import github:index/actionsEnvironmentVariable:ActionsEnvironmentVariable example myrepo:myenv:myvariable
|
|
@@ -331,6 +353,7 @@ class ActionsEnvironmentVariable(pulumi.CustomResource):
|
|
|
331
353
|
raise TypeError("Missing required property 'variable_name'")
|
|
332
354
|
__props__.__dict__["variable_name"] = variable_name
|
|
333
355
|
__props__.__dict__["created_at"] = None
|
|
356
|
+
__props__.__dict__["repository_id"] = None
|
|
334
357
|
__props__.__dict__["updated_at"] = None
|
|
335
358
|
super(ActionsEnvironmentVariable, __self__).__init__(
|
|
336
359
|
'github:index/actionsEnvironmentVariable:ActionsEnvironmentVariable',
|
|
@@ -345,6 +368,7 @@ class ActionsEnvironmentVariable(pulumi.CustomResource):
|
|
|
345
368
|
created_at: Optional[pulumi.Input[_builtins.str]] = None,
|
|
346
369
|
environment: Optional[pulumi.Input[_builtins.str]] = None,
|
|
347
370
|
repository: Optional[pulumi.Input[_builtins.str]] = None,
|
|
371
|
+
repository_id: Optional[pulumi.Input[_builtins.int]] = None,
|
|
348
372
|
updated_at: Optional[pulumi.Input[_builtins.str]] = None,
|
|
349
373
|
value: Optional[pulumi.Input[_builtins.str]] = None,
|
|
350
374
|
variable_name: Optional[pulumi.Input[_builtins.str]] = None) -> 'ActionsEnvironmentVariable':
|
|
@@ -355,11 +379,12 @@ class ActionsEnvironmentVariable(pulumi.CustomResource):
|
|
|
355
379
|
:param str resource_name: The unique name of the resulting resource.
|
|
356
380
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
357
381
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
358
|
-
:param pulumi.Input[_builtins.str] created_at: Date
|
|
382
|
+
:param pulumi.Input[_builtins.str] created_at: Date the variable was created.
|
|
359
383
|
:param pulumi.Input[_builtins.str] environment: Name of the environment.
|
|
360
384
|
:param pulumi.Input[_builtins.str] repository: Name of the repository.
|
|
361
|
-
:param pulumi.Input[_builtins.
|
|
362
|
-
:param pulumi.Input[_builtins.str]
|
|
385
|
+
:param pulumi.Input[_builtins.int] repository_id: ID of the repository.
|
|
386
|
+
:param pulumi.Input[_builtins.str] updated_at: Date the variable was last updated.
|
|
387
|
+
:param pulumi.Input[_builtins.str] value: Value of the variable.
|
|
363
388
|
:param pulumi.Input[_builtins.str] variable_name: Name of the variable.
|
|
364
389
|
"""
|
|
365
390
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -369,6 +394,7 @@ class ActionsEnvironmentVariable(pulumi.CustomResource):
|
|
|
369
394
|
__props__.__dict__["created_at"] = created_at
|
|
370
395
|
__props__.__dict__["environment"] = environment
|
|
371
396
|
__props__.__dict__["repository"] = repository
|
|
397
|
+
__props__.__dict__["repository_id"] = repository_id
|
|
372
398
|
__props__.__dict__["updated_at"] = updated_at
|
|
373
399
|
__props__.__dict__["value"] = value
|
|
374
400
|
__props__.__dict__["variable_name"] = variable_name
|
|
@@ -378,7 +404,7 @@ class ActionsEnvironmentVariable(pulumi.CustomResource):
|
|
|
378
404
|
@pulumi.getter(name="createdAt")
|
|
379
405
|
def created_at(self) -> pulumi.Output[_builtins.str]:
|
|
380
406
|
"""
|
|
381
|
-
Date
|
|
407
|
+
Date the variable was created.
|
|
382
408
|
"""
|
|
383
409
|
return pulumi.get(self, "created_at")
|
|
384
410
|
|
|
@@ -398,11 +424,19 @@ class ActionsEnvironmentVariable(pulumi.CustomResource):
|
|
|
398
424
|
"""
|
|
399
425
|
return pulumi.get(self, "repository")
|
|
400
426
|
|
|
427
|
+
@_builtins.property
|
|
428
|
+
@pulumi.getter(name="repositoryId")
|
|
429
|
+
def repository_id(self) -> pulumi.Output[_builtins.int]:
|
|
430
|
+
"""
|
|
431
|
+
ID of the repository.
|
|
432
|
+
"""
|
|
433
|
+
return pulumi.get(self, "repository_id")
|
|
434
|
+
|
|
401
435
|
@_builtins.property
|
|
402
436
|
@pulumi.getter(name="updatedAt")
|
|
403
437
|
def updated_at(self) -> pulumi.Output[_builtins.str]:
|
|
404
438
|
"""
|
|
405
|
-
Date
|
|
439
|
+
Date the variable was last updated.
|
|
406
440
|
"""
|
|
407
441
|
return pulumi.get(self, "updated_at")
|
|
408
442
|
|
|
@@ -410,7 +444,7 @@ class ActionsEnvironmentVariable(pulumi.CustomResource):
|
|
|
410
444
|
@pulumi.getter
|
|
411
445
|
def value(self) -> pulumi.Output[_builtins.str]:
|
|
412
446
|
"""
|
|
413
|
-
Value of the variable
|
|
447
|
+
Value of the variable.
|
|
414
448
|
"""
|
|
415
449
|
return pulumi.get(self, "value")
|
|
416
450
|
|