@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.
Files changed (71) hide show
  1. package/actionsEnvironmentSecret.d.ts +45 -5
  2. package/actionsEnvironmentSecret.js +15 -3
  3. package/actionsEnvironmentSecret.js.map +1 -1
  4. package/actionsEnvironmentVariable.d.ts +29 -18
  5. package/actionsEnvironmentVariable.js +16 -11
  6. package/actionsEnvironmentVariable.js.map +1 -1
  7. package/actionsOrganizationPermissions.d.ts +12 -0
  8. package/actionsOrganizationPermissions.js +2 -0
  9. package/actionsOrganizationPermissions.js.map +1 -1
  10. package/actionsOrganizationSecret.d.ts +67 -25
  11. package/actionsOrganizationSecret.js +8 -6
  12. package/actionsOrganizationSecret.js.map +1 -1
  13. package/actionsOrganizationSecretRepositories.d.ts +22 -14
  14. package/actionsOrganizationSecretRepositories.js +16 -8
  15. package/actionsOrganizationSecretRepositories.js.map +1 -1
  16. package/actionsOrganizationSecretRepository.d.ts +22 -14
  17. package/actionsOrganizationSecretRepository.js +16 -8
  18. package/actionsOrganizationSecretRepository.js.map +1 -1
  19. package/actionsOrganizationVariable.d.ts +20 -21
  20. package/actionsOrganizationVariable.js +4 -2
  21. package/actionsOrganizationVariable.js.map +1 -1
  22. package/actionsOrganizationVariableRepositories.d.ts +97 -0
  23. package/actionsOrganizationVariableRepositories.js +94 -0
  24. package/actionsOrganizationVariableRepositories.js.map +1 -0
  25. package/actionsOrganizationVariableRepository.d.ts +97 -0
  26. package/actionsOrganizationVariableRepository.js +94 -0
  27. package/actionsOrganizationVariableRepository.js.map +1 -0
  28. package/actionsRepositoryPermissions.d.ts +12 -0
  29. package/actionsRepositoryPermissions.js +2 -0
  30. package/actionsRepositoryPermissions.js.map +1 -1
  31. package/actionsSecret.d.ts +66 -19
  32. package/actionsSecret.js +10 -6
  33. package/actionsSecret.js.map +1 -1
  34. package/actionsVariable.d.ts +25 -15
  35. package/actionsVariable.js +6 -2
  36. package/actionsVariable.js.map +1 -1
  37. package/appInstallationRepositories.d.ts +3 -3
  38. package/appInstallationRepositories.js +3 -3
  39. package/appInstallationRepository.d.ts +3 -3
  40. package/appInstallationRepository.js +3 -3
  41. package/dependabotOrganizationSecret.d.ts +46 -27
  42. package/dependabotOrganizationSecret.js +8 -8
  43. package/dependabotOrganizationSecret.js.map +1 -1
  44. package/dependabotOrganizationSecretRepositories.d.ts +21 -18
  45. package/dependabotOrganizationSecretRepositories.js +15 -12
  46. package/dependabotOrganizationSecretRepositories.js.map +1 -1
  47. package/dependabotOrganizationSecretRepository.d.ts +97 -0
  48. package/dependabotOrganizationSecretRepository.js +94 -0
  49. package/dependabotOrganizationSecretRepository.js.map +1 -0
  50. package/dependabotSecret.d.ts +51 -19
  51. package/dependabotSecret.js +10 -6
  52. package/dependabotSecret.js.map +1 -1
  53. package/emuGroupMapping.d.ts +20 -2
  54. package/emuGroupMapping.js +8 -2
  55. package/emuGroupMapping.js.map +1 -1
  56. package/getReleaseAsset.d.ts +212 -0
  57. package/getReleaseAsset.js +142 -0
  58. package/getReleaseAsset.js.map +1 -0
  59. package/index.d.ts +12 -0
  60. package/index.js +23 -5
  61. package/index.js.map +1 -1
  62. package/organizationRuleset.d.ts +4 -7
  63. package/organizationRuleset.js +1 -4
  64. package/organizationRuleset.js.map +1 -1
  65. package/package.json +2 -2
  66. package/repository.d.ts +16 -12
  67. package/repository.js +1 -3
  68. package/repository.js.map +1 -1
  69. package/repositoryRuleset.d.ts +3 -3
  70. package/types/input.d.ts +67 -5
  71. package/types/output.d.ts +69 -7
@@ -18,10 +18,12 @@ import * as pulumi from "@pulumi/pulumi";
18
18
  *
19
19
  * ## Import
20
20
  *
21
- * GitHub Actions variables can be imported using an ID made up of `repository:variable_name`, e.g.
21
+ * ### Import Command
22
+ *
23
+ * The following command imports a GitHub actions variable named `myvariable` for the repo `myrepo` to a `github_actions_variable` resource named `example`.
22
24
  *
23
25
  * ```sh
24
- * $ pulumi import github:index/actionsVariable:ActionsVariable myvariable myrepo:myvariable
26
+ * $ pulumi import github:index/actionsVariable:ActionsVariable example myrepo:myvariable
25
27
  * ```
26
28
  */
27
29
  export declare class ActionsVariable extends pulumi.CustomResource {
@@ -41,23 +43,27 @@ export declare class ActionsVariable extends pulumi.CustomResource {
41
43
  */
42
44
  static isInstance(obj: any): obj is ActionsVariable;
43
45
  /**
44
- * Date of actionsVariable creation.
46
+ * Date the variable was created.
45
47
  */
46
48
  readonly createdAt: pulumi.Output<string>;
47
49
  /**
48
- * Name of the repository
50
+ * Name of the repository.
49
51
  */
50
52
  readonly repository: pulumi.Output<string>;
51
53
  /**
52
- * Date of actionsVariable update.
54
+ * ID of the repository.
55
+ */
56
+ readonly repositoryId: pulumi.Output<number>;
57
+ /**
58
+ * Date the variable was last updated.
53
59
  */
54
60
  readonly updatedAt: pulumi.Output<string>;
55
61
  /**
56
- * Value of the variable
62
+ * Value of the variable.
57
63
  */
58
64
  readonly value: pulumi.Output<string>;
59
65
  /**
60
- * Name of the variable
66
+ * Name of the variable.
61
67
  */
62
68
  readonly variableName: pulumi.Output<string>;
63
69
  /**
@@ -74,23 +80,27 @@ export declare class ActionsVariable extends pulumi.CustomResource {
74
80
  */
75
81
  export interface ActionsVariableState {
76
82
  /**
77
- * Date of actionsVariable creation.
83
+ * Date the variable was created.
78
84
  */
79
85
  createdAt?: pulumi.Input<string>;
80
86
  /**
81
- * Name of the repository
87
+ * Name of the repository.
82
88
  */
83
89
  repository?: pulumi.Input<string>;
84
90
  /**
85
- * Date of actionsVariable update.
91
+ * ID of the repository.
92
+ */
93
+ repositoryId?: pulumi.Input<number>;
94
+ /**
95
+ * Date the variable was last updated.
86
96
  */
87
97
  updatedAt?: pulumi.Input<string>;
88
98
  /**
89
- * Value of the variable
99
+ * Value of the variable.
90
100
  */
91
101
  value?: pulumi.Input<string>;
92
102
  /**
93
- * Name of the variable
103
+ * Name of the variable.
94
104
  */
95
105
  variableName?: pulumi.Input<string>;
96
106
  }
@@ -99,15 +109,15 @@ export interface ActionsVariableState {
99
109
  */
100
110
  export interface ActionsVariableArgs {
101
111
  /**
102
- * Name of the repository
112
+ * Name of the repository.
103
113
  */
104
114
  repository: pulumi.Input<string>;
105
115
  /**
106
- * Value of the variable
116
+ * Value of the variable.
107
117
  */
108
118
  value: pulumi.Input<string>;
109
119
  /**
110
- * Name of the variable
120
+ * Name of the variable.
111
121
  */
112
122
  variableName: pulumi.Input<string>;
113
123
  }
@@ -24,10 +24,12 @@ const utilities = require("./utilities");
24
24
  *
25
25
  * ## Import
26
26
  *
27
- * GitHub Actions variables can be imported using an ID made up of `repository:variable_name`, e.g.
27
+ * ### Import Command
28
+ *
29
+ * The following command imports a GitHub actions variable named `myvariable` for the repo `myrepo` to a `github_actions_variable` resource named `example`.
28
30
  *
29
31
  * ```sh
30
- * $ pulumi import github:index/actionsVariable:ActionsVariable myvariable myrepo:myvariable
32
+ * $ pulumi import github:index/actionsVariable:ActionsVariable example myrepo:myvariable
31
33
  * ```
32
34
  */
33
35
  class ActionsVariable extends pulumi.CustomResource {
@@ -60,6 +62,7 @@ class ActionsVariable extends pulumi.CustomResource {
60
62
  const state = argsOrState;
61
63
  resourceInputs["createdAt"] = state?.createdAt;
62
64
  resourceInputs["repository"] = state?.repository;
65
+ resourceInputs["repositoryId"] = state?.repositoryId;
63
66
  resourceInputs["updatedAt"] = state?.updatedAt;
64
67
  resourceInputs["value"] = state?.value;
65
68
  resourceInputs["variableName"] = state?.variableName;
@@ -79,6 +82,7 @@ class ActionsVariable extends pulumi.CustomResource {
79
82
  resourceInputs["value"] = args?.value;
80
83
  resourceInputs["variableName"] = args?.variableName;
81
84
  resourceInputs["createdAt"] = undefined /*out*/;
85
+ resourceInputs["repositoryId"] = undefined /*out*/;
82
86
  resourceInputs["updatedAt"] = undefined /*out*/;
83
87
  }
84
88
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
@@ -1 +1 @@
1
- {"version":3,"file":"actionsVariable.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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,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,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AA5FL,0CA6FC;AA/EG,gBAAgB;AACO,4BAAY,GAAG,8CAA8C,CAAC"}
@@ -3,14 +3,14 @@ import * as pulumi from "@pulumi/pulumi";
3
3
  * > **Note**: This resource is not compatible with the GitHub App Installation authentication method.
4
4
  *
5
5
  * This resource manages relationships between app installations and repositories
6
- * in your GitHub organization.
6
+ * in your GitHub organization or your user account.
7
7
  *
8
8
  * Creating this resource installs a particular app on multiple repositories.
9
9
  *
10
10
  * The app installation and the repositories must all belong to the same
11
- * organization on GitHub. Note: you can review your organization's installations
11
+ * organization or user account on GitHub. Note: you can review your organization's installations
12
12
  * by the following the instructions at this
13
- * [link](https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/reviewing-your-organizations-installed-integrations).
13
+ * [link](https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/reviewing-your-organizations-installed-integrations) or for your user account at this [link](https://docs.github.com/en/apps/using-github-apps/reviewing-and-modifying-installed-github-apps).
14
14
  *
15
15
  * ## Import
16
16
  *
@@ -9,14 +9,14 @@ const utilities = require("./utilities");
9
9
  * > **Note**: This resource is not compatible with the GitHub App Installation authentication method.
10
10
  *
11
11
  * This resource manages relationships between app installations and repositories
12
- * in your GitHub organization.
12
+ * in your GitHub organization or your user account.
13
13
  *
14
14
  * Creating this resource installs a particular app on multiple repositories.
15
15
  *
16
16
  * The app installation and the repositories must all belong to the same
17
- * organization on GitHub. Note: you can review your organization's installations
17
+ * organization or user account on GitHub. Note: you can review your organization's installations
18
18
  * by the following the instructions at this
19
- * [link](https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/reviewing-your-organizations-installed-integrations).
19
+ * [link](https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/reviewing-your-organizations-installed-integrations) or for your user account at this [link](https://docs.github.com/en/apps/using-github-apps/reviewing-and-modifying-installed-github-apps).
20
20
  *
21
21
  * ## Import
22
22
  *
@@ -3,14 +3,14 @@ import * as pulumi from "@pulumi/pulumi";
3
3
  * > **Note**: This resource is not compatible with the GitHub App Installation authentication method.
4
4
  *
5
5
  * This resource manages relationships between app installations and repositories
6
- * in your GitHub organization.
6
+ * in your GitHub organization or your user account.
7
7
  *
8
8
  * Creating this resource installs a particular app on a particular repository.
9
9
  *
10
10
  * The app installation and the repository must both belong to the same
11
- * organization on GitHub. Note: you can review your organization's installations
11
+ * organization or user account on GitHub. Note: you can review your organization's installations
12
12
  * by the following the instructions at this
13
- * [link](https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/reviewing-your-organizations-installed-integrations).
13
+ * [link](https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/reviewing-your-organizations-installed-integrations) or for your user account at this [link](https://docs.github.com/en/apps/using-github-apps/reviewing-and-modifying-installed-github-apps).
14
14
  *
15
15
  * ## Example Usage
16
16
  *
@@ -9,14 +9,14 @@ const utilities = require("./utilities");
9
9
  * > **Note**: This resource is not compatible with the GitHub App Installation authentication method.
10
10
  *
11
11
  * This resource manages relationships between app installations and repositories
12
- * in your GitHub organization.
12
+ * in your GitHub organization or your user account.
13
13
  *
14
14
  * Creating this resource installs a particular app on a particular repository.
15
15
  *
16
16
  * The app installation and the repository must both belong to the same
17
- * organization on GitHub. Note: you can review your organization's installations
17
+ * organization or user account on GitHub. Note: you can review your organization's installations
18
18
  * by the following the instructions at this
19
- * [link](https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/reviewing-your-organizations-installed-integrations).
19
+ * [link](https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/reviewing-your-organizations-installed-integrations) or for your user account at this [link](https://docs.github.com/en/apps/using-github-apps/reviewing-and-modifying-installed-github-apps).
20
20
  *
21
21
  * ## Example Usage
22
22
  *
@@ -1,18 +1,14 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * ## Example Usage
4
- *
5
3
  * ## Import
6
4
  *
7
- * This resource can be imported using an ID made up of the secret name:
5
+ * ### Import Command
6
+ *
7
+ * The following command imports a GitHub Dependabot organization secret named `mysecret` to a `github_dependabot_organization_secret` resource named `example`.
8
8
  *
9
9
  * ```sh
10
- * $ pulumi import github:index/dependabotOrganizationSecret:DependabotOrganizationSecret test_secret test_secret_name
10
+ * $ pulumi import github:index/dependabotOrganizationSecret:DependabotOrganizationSecret example mysecret
11
11
  * ```
12
- *
13
- * NOTE: the implementation is limited in that it won't fetch the value of the
14
- *
15
- * `plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.
16
12
  */
17
13
  export declare class DependabotOrganizationSecret extends pulumi.CustomResource {
18
14
  /**
@@ -31,7 +27,7 @@ export declare class DependabotOrganizationSecret extends pulumi.CustomResource
31
27
  */
32
28
  static isInstance(obj: any): obj is DependabotOrganizationSecret;
33
29
  /**
34
- * Date of dependabotSecret creation.
30
+ * Date the secret was created.
35
31
  */
36
32
  readonly createdAt: pulumi.Output<string>;
37
33
  /**
@@ -39,24 +35,33 @@ export declare class DependabotOrganizationSecret extends pulumi.CustomResource
39
35
  */
40
36
  readonly encryptedValue: pulumi.Output<string | undefined>;
41
37
  /**
42
- * Plaintext value of the secret to be encrypted
38
+ * ID of the public key used to encrypt the secret. This should be provided when setting `encryptedValue`; if it isn't then the current public key will be looked up, which could cause a missmatch. This conflicts with `plaintextValue`.
39
+ */
40
+ readonly keyId: pulumi.Output<string>;
41
+ /**
42
+ * Plaintext value of the secret to be encrypted.
43
43
  */
44
44
  readonly plaintextValue: pulumi.Output<string | undefined>;
45
45
  /**
46
- * Name of the secret
46
+ * Date the secret was last updated in GitHub.
47
+ */
48
+ readonly remoteUpdatedAt: pulumi.Output<string>;
49
+ /**
50
+ * Name of the secret.
47
51
  */
48
52
  readonly secretName: pulumi.Output<string>;
49
53
  /**
50
- * An array of repository ids that can access the organization secret.
54
+ * An array of repository IDs that can access the organization variable; this requires `visibility` to be set to `selected`.
55
+ *
56
+ * @deprecated This field is deprecated and will be removed in a future release. Please use the `github.DependabotOrganizationSecretRepositories` or `github.DependabotOrganizationSecretRepository` resources to manage repository access to organization secrets.
51
57
  */
52
58
  readonly selectedRepositoryIds: pulumi.Output<number[] | undefined>;
53
59
  /**
54
- * Date of dependabotSecret update.
60
+ * Date the secret was last updated by the provider.
55
61
  */
56
62
  readonly updatedAt: pulumi.Output<string>;
57
63
  /**
58
- * Configures the access that repositories have to the organization secret.
59
- * Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
64
+ * Configures the access that repositories have to the organization secret; must be one of `all`, `private`, or `selected`.
60
65
  */
61
66
  readonly visibility: pulumi.Output<string>;
62
67
  /**
@@ -73,7 +78,7 @@ export declare class DependabotOrganizationSecret extends pulumi.CustomResource
73
78
  */
74
79
  export interface DependabotOrganizationSecretState {
75
80
  /**
76
- * Date of dependabotSecret creation.
81
+ * Date the secret was created.
77
82
  */
78
83
  createdAt?: pulumi.Input<string>;
79
84
  /**
@@ -81,24 +86,33 @@ export interface DependabotOrganizationSecretState {
81
86
  */
82
87
  encryptedValue?: pulumi.Input<string>;
83
88
  /**
84
- * Plaintext value of the secret to be encrypted
89
+ * ID of the public key used to encrypt the secret. This should be provided when setting `encryptedValue`; if it isn't then the current public key will be looked up, which could cause a missmatch. This conflicts with `plaintextValue`.
90
+ */
91
+ keyId?: pulumi.Input<string>;
92
+ /**
93
+ * Plaintext value of the secret to be encrypted.
85
94
  */
86
95
  plaintextValue?: pulumi.Input<string>;
87
96
  /**
88
- * Name of the secret
97
+ * Date the secret was last updated in GitHub.
98
+ */
99
+ remoteUpdatedAt?: pulumi.Input<string>;
100
+ /**
101
+ * Name of the secret.
89
102
  */
90
103
  secretName?: pulumi.Input<string>;
91
104
  /**
92
- * An array of repository ids that can access the organization secret.
105
+ * An array of repository IDs that can access the organization variable; this requires `visibility` to be set to `selected`.
106
+ *
107
+ * @deprecated This field is deprecated and will be removed in a future release. Please use the `github.DependabotOrganizationSecretRepositories` or `github.DependabotOrganizationSecretRepository` resources to manage repository access to organization secrets.
93
108
  */
94
109
  selectedRepositoryIds?: pulumi.Input<pulumi.Input<number>[]>;
95
110
  /**
96
- * Date of dependabotSecret update.
111
+ * Date the secret was last updated by the provider.
97
112
  */
98
113
  updatedAt?: pulumi.Input<string>;
99
114
  /**
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`.
115
+ * Configures the access that repositories have to the organization secret; must be one of `all`, `private`, or `selected`.
102
116
  */
103
117
  visibility?: pulumi.Input<string>;
104
118
  }
@@ -111,20 +125,25 @@ export interface DependabotOrganizationSecretArgs {
111
125
  */
112
126
  encryptedValue?: pulumi.Input<string>;
113
127
  /**
114
- * Plaintext value of the secret to be encrypted
128
+ * ID of the public key used to encrypt the secret. This should be provided when setting `encryptedValue`; if it isn't then the current public key will be looked up, which could cause a missmatch. This conflicts with `plaintextValue`.
129
+ */
130
+ keyId?: pulumi.Input<string>;
131
+ /**
132
+ * Plaintext value of the secret to be encrypted.
115
133
  */
116
134
  plaintextValue?: pulumi.Input<string>;
117
135
  /**
118
- * Name of the secret
136
+ * Name of the secret.
119
137
  */
120
138
  secretName: pulumi.Input<string>;
121
139
  /**
122
- * An array of repository ids that can access the organization secret.
140
+ * An array of repository IDs that can access the organization variable; this requires `visibility` to be set to `selected`.
141
+ *
142
+ * @deprecated This field is deprecated and will be removed in a future release. Please use the `github.DependabotOrganizationSecretRepositories` or `github.DependabotOrganizationSecretRepository` resources to manage repository access to organization secrets.
123
143
  */
124
144
  selectedRepositoryIds?: pulumi.Input<pulumi.Input<number>[]>;
125
145
  /**
126
- * Configures the access that repositories have to the organization secret.
127
- * Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
146
+ * Configures the access that repositories have to the organization secret; must be one of `all`, `private`, or `selected`.
128
147
  */
129
148
  visibility: pulumi.Input<string>;
130
149
  }
@@ -6,19 +6,15 @@ exports.DependabotOrganizationSecret = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * ## Example Usage
10
- *
11
9
  * ## Import
12
10
  *
13
- * This resource can be imported using an ID made up of the secret name:
11
+ * ### Import Command
12
+ *
13
+ * The following command imports a GitHub Dependabot organization secret named `mysecret` to a `github_dependabot_organization_secret` resource named `example`.
14
14
  *
15
15
  * ```sh
16
- * $ pulumi import github:index/dependabotOrganizationSecret:DependabotOrganizationSecret test_secret test_secret_name
16
+ * $ pulumi import github:index/dependabotOrganizationSecret:DependabotOrganizationSecret example mysecret
17
17
  * ```
18
- *
19
- * NOTE: the implementation is limited in that it won't fetch the value of the
20
- *
21
- * `plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.
22
18
  */
23
19
  class DependabotOrganizationSecret extends pulumi.CustomResource {
24
20
  /**
@@ -50,7 +46,9 @@ class DependabotOrganizationSecret extends pulumi.CustomResource {
50
46
  const state = argsOrState;
51
47
  resourceInputs["createdAt"] = state?.createdAt;
52
48
  resourceInputs["encryptedValue"] = state?.encryptedValue;
49
+ resourceInputs["keyId"] = state?.keyId;
53
50
  resourceInputs["plaintextValue"] = state?.plaintextValue;
51
+ resourceInputs["remoteUpdatedAt"] = state?.remoteUpdatedAt;
54
52
  resourceInputs["secretName"] = state?.secretName;
55
53
  resourceInputs["selectedRepositoryIds"] = state?.selectedRepositoryIds;
56
54
  resourceInputs["updatedAt"] = state?.updatedAt;
@@ -65,11 +63,13 @@ class DependabotOrganizationSecret extends pulumi.CustomResource {
65
63
  throw new Error("Missing required property 'visibility'");
66
64
  }
67
65
  resourceInputs["encryptedValue"] = args?.encryptedValue ? pulumi.secret(args.encryptedValue) : undefined;
66
+ resourceInputs["keyId"] = args?.keyId;
68
67
  resourceInputs["plaintextValue"] = args?.plaintextValue ? pulumi.secret(args.plaintextValue) : undefined;
69
68
  resourceInputs["secretName"] = args?.secretName;
70
69
  resourceInputs["selectedRepositoryIds"] = args?.selectedRepositoryIds;
71
70
  resourceInputs["visibility"] = args?.visibility;
72
71
  resourceInputs["createdAt"] = undefined /*out*/;
72
+ resourceInputs["remoteUpdatedAt"] = undefined /*out*/;
73
73
  resourceInputs["updatedAt"] = undefined /*out*/;
74
74
  }
75
75
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
@@ -1 +1 @@
1
- {"version":3,"file":"dependabotOrganizationSecret.js","sourceRoot":"","sources":["../dependabotOrganizationSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,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,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAA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I,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;;AA/GL,oEAgHC;AAlGG,gBAAgB;AACO,yCAAY,GAAG,wEAAwE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * This resource allows you to manage the repository allow list for existing GitHub Dependabot secrets within your GitHub organization.
3
+ * This resource allows you to manage the repositories allowed to access a Dependabot secret within your GitHub organization.
4
4
  * You must have write access to an organization secret to use this resource.
5
5
  *
6
6
  * This resource is only applicable when `visibility` of the existing organization secret has been set to `selected`.
@@ -11,26 +11,29 @@ import * as pulumi from "@pulumi/pulumi";
11
11
  * import * as pulumi from "@pulumi/pulumi";
12
12
  * import * as github from "@pulumi/github";
13
13
  *
14
- * const repo = github.getRepository({
15
- * fullName: "my-org/repo",
14
+ * const example = new github.DependabotOrganizationSecret("example", {
15
+ * secretName: "mysecret",
16
+ * plaintextValue: "foo",
17
+ * visibility: "selected",
16
18
  * });
17
- * const exampleSecret = new github.DependabotOrganizationSecret("example_secret", {
18
- * secretName: "example_secret_name",
19
- * visibility: "private",
20
- * plaintextValue: someSecretString,
19
+ * const exampleRepository = new github.Repository("example", {
20
+ * name: "myrepo",
21
+ * visibility: "public",
21
22
  * });
22
- * const orgSecretRepos = new github.DependabotOrganizationSecretRepositories("org_secret_repos", {
23
- * secretName: exampleSecret.secretName,
24
- * selectedRepositoryIds: [repo.then(repo => repo.repoId)],
23
+ * const exampleDependabotOrganizationSecretRepositories = new github.DependabotOrganizationSecretRepositories("example", {
24
+ * secretName: example.name,
25
+ * selectedRepositoryIds: [exampleRepository.repoId],
25
26
  * });
26
27
  * ```
27
28
  *
28
29
  * ## Import
29
30
  *
30
- * This resource can be imported using an ID made up of the secret name:
31
+ * ### Import Command
32
+ *
33
+ * The following command imports the repositories able to access the Dependabot organization secret named `mysecret` to a `github_dependabot_organization_secret_repositories` resource named `example`.
31
34
  *
32
35
  * ```sh
33
- * $ pulumi import github:index/dependabotOrganizationSecretRepositories:DependabotOrganizationSecretRepositories test_secret_repos test_secret_name
36
+ * $ pulumi import github:index/dependabotOrganizationSecretRepositories:DependabotOrganizationSecretRepositories example mysecret
34
37
  * ```
35
38
  */
36
39
  export declare class DependabotOrganizationSecretRepositories extends pulumi.CustomResource {
@@ -50,11 +53,11 @@ export declare class DependabotOrganizationSecretRepositories extends pulumi.Cus
50
53
  */
51
54
  static isInstance(obj: any): obj is DependabotOrganizationSecretRepositories;
52
55
  /**
53
- * Name of the existing secret
56
+ * Name of the Dependabot organization secret.
54
57
  */
55
58
  readonly secretName: pulumi.Output<string>;
56
59
  /**
57
- * An array of repository ids that can access the organization secret.
60
+ * List of IDs for the repositories that should be able to access the secret.
58
61
  */
59
62
  readonly selectedRepositoryIds: pulumi.Output<number[]>;
60
63
  /**
@@ -71,11 +74,11 @@ export declare class DependabotOrganizationSecretRepositories extends pulumi.Cus
71
74
  */
72
75
  export interface DependabotOrganizationSecretRepositoriesState {
73
76
  /**
74
- * Name of the existing secret
77
+ * Name of the Dependabot organization secret.
75
78
  */
76
79
  secretName?: pulumi.Input<string>;
77
80
  /**
78
- * An array of repository ids that can access the organization secret.
81
+ * List of IDs for the repositories that should be able to access the secret.
79
82
  */
80
83
  selectedRepositoryIds?: pulumi.Input<pulumi.Input<number>[]>;
81
84
  }
@@ -84,11 +87,11 @@ export interface DependabotOrganizationSecretRepositoriesState {
84
87
  */
85
88
  export interface DependabotOrganizationSecretRepositoriesArgs {
86
89
  /**
87
- * Name of the existing secret
90
+ * Name of the Dependabot organization secret.
88
91
  */
89
92
  secretName: pulumi.Input<string>;
90
93
  /**
91
- * An array of repository ids that can access the organization secret.
94
+ * List of IDs for the repositories that should be able to access the secret.
92
95
  */
93
96
  selectedRepositoryIds: pulumi.Input<pulumi.Input<number>[]>;
94
97
  }
@@ -6,7 +6,7 @@ exports.DependabotOrganizationSecretRepositories = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * This resource allows you to manage the repository allow list for existing GitHub Dependabot secrets within your GitHub organization.
9
+ * This resource allows you to manage the repositories allowed to access a Dependabot secret within your GitHub organization.
10
10
  * You must have write access to an organization secret to use this resource.
11
11
  *
12
12
  * This resource is only applicable when `visibility` of the existing organization secret has been set to `selected`.
@@ -17,26 +17,29 @@ const utilities = require("./utilities");
17
17
  * import * as pulumi from "@pulumi/pulumi";
18
18
  * import * as github from "@pulumi/github";
19
19
  *
20
- * const repo = github.getRepository({
21
- * fullName: "my-org/repo",
20
+ * const example = new github.DependabotOrganizationSecret("example", {
21
+ * secretName: "mysecret",
22
+ * plaintextValue: "foo",
23
+ * visibility: "selected",
22
24
  * });
23
- * const exampleSecret = new github.DependabotOrganizationSecret("example_secret", {
24
- * secretName: "example_secret_name",
25
- * visibility: "private",
26
- * plaintextValue: someSecretString,
25
+ * const exampleRepository = new github.Repository("example", {
26
+ * name: "myrepo",
27
+ * visibility: "public",
27
28
  * });
28
- * const orgSecretRepos = new github.DependabotOrganizationSecretRepositories("org_secret_repos", {
29
- * secretName: exampleSecret.secretName,
30
- * selectedRepositoryIds: [repo.then(repo => repo.repoId)],
29
+ * const exampleDependabotOrganizationSecretRepositories = new github.DependabotOrganizationSecretRepositories("example", {
30
+ * secretName: example.name,
31
+ * selectedRepositoryIds: [exampleRepository.repoId],
31
32
  * });
32
33
  * ```
33
34
  *
34
35
  * ## Import
35
36
  *
36
- * This resource can be imported using an ID made up of the secret name:
37
+ * ### Import Command
38
+ *
39
+ * The following command imports the repositories able to access the Dependabot organization secret named `mysecret` to a `github_dependabot_organization_secret_repositories` resource named `example`.
37
40
  *
38
41
  * ```sh
39
- * $ pulumi import github:index/dependabotOrganizationSecretRepositories:DependabotOrganizationSecretRepositories test_secret_repos test_secret_name
42
+ * $ pulumi import github:index/dependabotOrganizationSecretRepositories:DependabotOrganizationSecretRepositories example mysecret
40
43
  * ```
41
44
  */
42
45
  class DependabotOrganizationSecretRepositories extends pulumi.CustomResource {
@@ -1 +1 @@
1
- {"version":3,"file":"dependabotOrganizationSecretRepositories.js","sourceRoot":"","sources":["../dependabotOrganizationSecretRepositories.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAa,wCAAyC,SAAQ,MAAM,CAAC,cAAc;IAC/E;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqD,EAAE,IAAmC;QACnJ,OAAO,IAAI,wCAAwC,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/F,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,wCAAwC,CAAC,YAAY,CAAC;IACzF,CAAC;IAmBD,YAAY,IAAY,EAAE,WAA0G,EAAE,IAAmC;QACrK,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwE,CAAC;YACvF,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,EAAE,UAAU,CAAC;YACjD,cAAc,CAAC,uBAAuB,CAAC,GAAG,KAAK,EAAE,qBAAqB,CAAC;SAC1E;aAAM;YACH,MAAM,IAAI,GAAG,WAAuE,CAAC;YACrF,IAAI,IAAI,EAAE,UAAU,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC7C,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,IAAI,IAAI,EAAE,qBAAqB,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACxD,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;aACxE;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,EAAE,qBAAqB,CAAC;SACzE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,wCAAwC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7F,CAAC;;AAjEL,4FAkEC;AApDG,gBAAgB;AACO,qDAAY,GAAG,gGAAgG,CAAC"}
1
+ {"version":3,"file":"dependabotOrganizationSecretRepositories.js","sourceRoot":"","sources":["../dependabotOrganizationSecretRepositories.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAa,wCAAyC,SAAQ,MAAM,CAAC,cAAc;IAC/E;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqD,EAAE,IAAmC;QACnJ,OAAO,IAAI,wCAAwC,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/F,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,O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