@pulumi/github 4.17.0 → 5.0.0-alpha.1663887713

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 (197) hide show
  1. package/README.md +1 -1
  2. package/actionsEnvironmentSecret.d.ts +0 -105
  3. package/actionsEnvironmentSecret.js +0 -48
  4. package/actionsEnvironmentSecret.js.map +1 -1
  5. package/actionsOrganizationPermissions.d.ts +0 -72
  6. package/actionsOrganizationPermissions.js +0 -36
  7. package/actionsOrganizationPermissions.js.map +1 -1
  8. package/actionsOrganizationSecret.d.ts +0 -110
  9. package/actionsOrganizationSecret.js +0 -50
  10. package/actionsOrganizationSecret.js.map +1 -1
  11. package/actionsOrganizationSecretRepositories.d.ts +0 -47
  12. package/actionsOrganizationSecretRepositories.js +0 -29
  13. package/actionsOrganizationSecretRepositories.js.map +1 -1
  14. package/actionsRunnerGroup.d.ts +0 -88
  15. package/actionsRunnerGroup.js +0 -25
  16. package/actionsRunnerGroup.js.map +1 -1
  17. package/actionsSecret.d.ts +0 -70
  18. package/actionsSecret.js +0 -22
  19. package/actionsSecret.js.map +1 -1
  20. package/appInstallationRepository.d.ts +0 -54
  21. package/appInstallationRepository.js +0 -36
  22. package/appInstallationRepository.js.map +1 -1
  23. package/branch.d.ts +0 -92
  24. package/branch.js +0 -38
  25. package/branch.js.map +1 -1
  26. package/branchDefault.d.ts +0 -53
  27. package/branchDefault.js +0 -35
  28. package/branchDefault.js.map +1 -1
  29. package/branchProtection.d.ts +3 -155
  30. package/branchProtection.js +0 -53
  31. package/branchProtection.js.map +1 -1
  32. package/branchProtectionV3.d.ts +0 -138
  33. package/branchProtectionV3.js +0 -66
  34. package/branchProtectionV3.js.map +1 -1
  35. package/emuGroupMapping.d.ts +0 -41
  36. package/emuGroupMapping.js +0 -23
  37. package/emuGroupMapping.js.map +1 -1
  38. package/getActionsOrganizationSecrets.d.ts +13 -0
  39. package/getActionsOrganizationSecrets.js +16 -0
  40. package/getActionsOrganizationSecrets.js.map +1 -0
  41. package/getActionsPublicKey.d.ts +0 -27
  42. package/getActionsPublicKey.js +0 -15
  43. package/getActionsPublicKey.js.map +1 -1
  44. package/getActionsSecrets.d.ts +30 -0
  45. package/getActionsSecrets.js +24 -0
  46. package/getActionsSecrets.js.map +1 -0
  47. package/getBranch.d.ts +0 -36
  48. package/getBranch.js +0 -15
  49. package/getBranch.js.map +1 -1
  50. package/getCollaborators.d.ts +0 -36
  51. package/getCollaborators.js +0 -15
  52. package/getCollaborators.js.map +1 -1
  53. package/getExternalGroups.d.ts +0 -17
  54. package/getExternalGroups.js +0 -14
  55. package/getExternalGroups.js.map +1 -1
  56. package/getIpRanges.d.ts +0 -84
  57. package/getIpRanges.js +0 -12
  58. package/getIpRanges.js.map +1 -1
  59. package/getMembership.d.ts +0 -38
  60. package/getMembership.js +0 -17
  61. package/getMembership.js.map +1 -1
  62. package/getOrganization.d.ts +0 -38
  63. package/getOrganization.js +0 -14
  64. package/getOrganization.js.map +1 -1
  65. package/getOrganizationTeamSyncGroups.d.ts +0 -15
  66. package/getOrganizationTeamSyncGroups.js +0 -12
  67. package/getOrganizationTeamSyncGroups.js.map +1 -1
  68. package/getOrganizationTeams.d.ts +0 -38
  69. package/getOrganizationTeams.js +0 -25
  70. package/getOrganizationTeams.js.map +1 -1
  71. package/getRef.d.ts +0 -33
  72. package/getRef.js +0 -15
  73. package/getRef.js.map +1 -1
  74. package/getRelease.d.ts +0 -121
  75. package/getRelease.js +0 -46
  76. package/getRelease.js.map +1 -1
  77. package/getRepositories.d.ts +0 -29
  78. package/getRepositories.js +0 -17
  79. package/getRepositories.js.map +1 -1
  80. package/getRepository.d.ts +0 -132
  81. package/getRepository.js +0 -14
  82. package/getRepository.js.map +1 -1
  83. package/getRepositoryFile.d.ts +0 -55
  84. package/getRepositoryFile.js +0 -17
  85. package/getRepositoryFile.js.map +1 -1
  86. package/getRepositoryMilestone.d.ts +0 -46
  87. package/getRepositoryMilestone.js +0 -16
  88. package/getRepositoryMilestone.js.map +1 -1
  89. package/getRepositoryPullRequest.d.ts +0 -75
  90. package/getRepositoryPullRequest.js +0 -15
  91. package/getRepositoryPullRequest.js.map +1 -1
  92. package/getRepositoryPullRequests.d.ts +0 -72
  93. package/getRepositoryPullRequests.js +0 -18
  94. package/getRepositoryPullRequests.js.map +1 -1
  95. package/getRepositoryTeams.d.ts +30 -0
  96. package/getRepositoryTeams.js +24 -0
  97. package/getRepositoryTeams.js.map +1 -0
  98. package/getTeam.d.ts +0 -47
  99. package/getTeam.js +0 -14
  100. package/getTeam.js.map +1 -1
  101. package/getTree.d.ts +0 -45
  102. package/getTree.js +0 -24
  103. package/getTree.js.map +1 -1
  104. package/getUser.d.ts +0 -87
  105. package/getUser.js +0 -21
  106. package/getUser.js.map +1 -1
  107. package/getUsers.d.ts +0 -37
  108. package/getUsers.js +0 -22
  109. package/getUsers.js.map +1 -1
  110. package/index.d.ts +4 -0
  111. package/index.js +8 -0
  112. package/index.js.map +1 -1
  113. package/issue.d.ts +6 -117
  114. package/issue.js +0 -63
  115. package/issue.js.map +1 -1
  116. package/issueLabel.d.ts +0 -64
  117. package/issueLabel.js +0 -22
  118. package/issueLabel.js.map +1 -1
  119. package/membership.d.ts +0 -49
  120. package/membership.js +0 -28
  121. package/membership.js.map +1 -1
  122. package/organizationBlock.d.ts +0 -23
  123. package/organizationBlock.js +0 -14
  124. package/organizationBlock.js.map +1 -1
  125. package/organizationProject.d.ts +0 -38
  126. package/organizationProject.js +0 -14
  127. package/organizationProject.js.map +1 -1
  128. package/organizationWebhook.d.ts +0 -63
  129. package/organizationWebhook.js +0 -30
  130. package/organizationWebhook.js.map +1 -1
  131. package/package.json +2 -2
  132. package/package.json.dev +2 -2
  133. package/projectCard.d.ts +0 -87
  134. package/projectCard.js +0 -51
  135. package/projectCard.js.map +1 -1
  136. package/projectColumn.d.ts +0 -31
  137. package/projectColumn.js +0 -13
  138. package/projectColumn.js.map +1 -1
  139. package/repository.d.ts +3 -377
  140. package/repository.js +0 -47
  141. package/repository.js.map +1 -1
  142. package/repositoryAutolinkReference.d.ts +6 -40
  143. package/repositoryAutolinkReference.js +0 -28
  144. package/repositoryAutolinkReference.js.map +1 -1
  145. package/repositoryCollaborator.d.ts +0 -90
  146. package/repositoryCollaborator.js +0 -42
  147. package/repositoryCollaborator.js.map +1 -1
  148. package/repositoryDeployKey.d.ts +0 -71
  149. package/repositoryDeployKey.js +0 -35
  150. package/repositoryDeployKey.js.map +1 -1
  151. package/repositoryEnvironment.d.ts +0 -61
  152. package/repositoryEnvironment.js +0 -34
  153. package/repositoryEnvironment.js.map +1 -1
  154. package/repositoryFile.d.ts +28 -68
  155. package/repositoryFile.js +0 -37
  156. package/repositoryFile.js.map +1 -1
  157. package/repositoryMilestone.d.ts +3 -81
  158. package/repositoryMilestone.js +0 -27
  159. package/repositoryMilestone.js.map +1 -1
  160. package/repositoryProject.d.ts +0 -52
  161. package/repositoryProject.js +0 -19
  162. package/repositoryProject.js.map +1 -1
  163. package/repositoryPullRequest.d.ts +4 -127
  164. package/repositoryPullRequest.js +0 -18
  165. package/repositoryPullRequest.js.map +1 -1
  166. package/repositoryTagProtection.d.ts +44 -0
  167. package/repositoryTagProtection.js +59 -0
  168. package/repositoryTagProtection.js.map +1 -0
  169. package/repositoryWebhook.d.ts +0 -79
  170. package/repositoryWebhook.js +0 -37
  171. package/repositoryWebhook.js.map +1 -1
  172. package/team.d.ts +0 -100
  173. package/team.js +0 -27
  174. package/team.js.map +1 -1
  175. package/teamMembers.d.ts +0 -58
  176. package/teamMembers.js +0 -40
  177. package/teamMembers.js.map +1 -1
  178. package/teamMembership.d.ts +0 -67
  179. package/teamMembership.js +0 -37
  180. package/teamMembership.js.map +1 -1
  181. package/teamRepository.d.ts +3 -59
  182. package/teamRepository.js +0 -35
  183. package/teamRepository.js.map +1 -1
  184. package/teamSyncGroupMapping.d.ts +0 -36
  185. package/teamSyncGroupMapping.js +0 -15
  186. package/teamSyncGroupMapping.js.map +1 -1
  187. package/types/input.d.ts +0 -86
  188. package/types/output.d.ts +16 -237
  189. package/userGpgKey.d.ts +0 -40
  190. package/userGpgKey.js +0 -22
  191. package/userGpgKey.js.map +1 -1
  192. package/userInvitationAccepter.d.ts +0 -30
  193. package/userInvitationAccepter.js +0 -21
  194. package/userInvitationAccepter.js.map +1 -1
  195. package/userSshKey.d.ts +0 -50
  196. package/userSshKey.js +0 -26
  197. package/userSshKey.js.map +1 -1
package/README.md CHANGED
@@ -29,7 +29,7 @@ To use from Python, install using `pip`:
29
29
 
30
30
  To use from Go, use `go get` to grab the latest version of the library
31
31
 
32
- $ go get github.com/pulumi/pulumi-github/sdk/v4
32
+ $ go get github.com/pulumi/pulumi-github/sdk/v5
33
33
 
34
34
  ### .NET
35
35
 
@@ -1,52 +1,4 @@
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 exampleSecretActionsEnvironmentSecret = new github.ActionsEnvironmentSecret("exampleSecretActionsEnvironmentSecret", {
10
- * environment: "example_environment",
11
- * secretName: "example_secret_name",
12
- * plaintextValue: _var.some_secret_string,
13
- * });
14
- * const exampleSecretIndex_actionsEnvironmentSecretActionsEnvironmentSecret = new github.ActionsEnvironmentSecret("exampleSecretIndex/actionsEnvironmentSecretActionsEnvironmentSecret", {
15
- * environment: "example_environment",
16
- * secretName: "example_secret_name",
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 repoEnvironment = new github.RepositoryEnvironment("repoEnvironment", {
29
- * repository: repo.then(repo => repo.name),
30
- * environment: "example_environment",
31
- * });
32
- * const testSecret = new github.ActionsEnvironmentSecret("testSecret", {
33
- * repository: repo.then(repo => repo.name),
34
- * environment: repoEnvironment.environment,
35
- * secretName: "test_secret_name",
36
- * plaintextValue: `%s`,
37
- * });
38
- * ```
39
- *
40
- * ## Import
41
- *
42
- * This resource can be imported using an ID made up of the secret name
43
- *
44
- * ```sh
45
- * $ pulumi import github:index/actionsEnvironmentSecret:ActionsEnvironmentSecret test_secret test_secret_name
46
- * ```
47
- *
48
- * NOTEthe implementation is limited in that it won't fetch the value of the `plaintext_value` field when importing. You may need to ignore changes for the `plaintext_value` as a workaround.
49
- */
50
2
  export declare class ActionsEnvironmentSecret extends pulumi.CustomResource {
51
3
  /**
52
4
  * Get an existing ActionsEnvironmentSecret resource's state with the given name, ID, and optional extra
@@ -63,33 +15,12 @@ export declare class ActionsEnvironmentSecret extends pulumi.CustomResource {
63
15
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
64
16
  */
65
17
  static isInstance(obj: any): obj is ActionsEnvironmentSecret;
66
- /**
67
- * Date of actionsEnvironmentSecret creation.
68
- */
69
18
  readonly createdAt: pulumi.Output<string>;
70
- /**
71
- * Encrypted value of the secret using the Github public key in Base64 format.
72
- */
73
19
  readonly encryptedValue: pulumi.Output<string | undefined>;
74
- /**
75
- * Name of the environment.
76
- */
77
20
  readonly environment: pulumi.Output<string>;
78
- /**
79
- * Plaintext value of the secret to be encrypted.
80
- */
81
21
  readonly plaintextValue: pulumi.Output<string | undefined>;
82
- /**
83
- * Name of the repository.
84
- */
85
22
  readonly repository: pulumi.Output<string>;
86
- /**
87
- * Name of the secret.
88
- */
89
23
  readonly secretName: pulumi.Output<string>;
90
- /**
91
- * Date of actionsEnvironmentSecret update.
92
- */
93
24
  readonly updatedAt: pulumi.Output<string>;
94
25
  /**
95
26
  * Create a ActionsEnvironmentSecret resource with the given unique name, arguments, and options.
@@ -104,57 +35,21 @@ export declare class ActionsEnvironmentSecret extends pulumi.CustomResource {
104
35
  * Input properties used for looking up and filtering ActionsEnvironmentSecret resources.
105
36
  */
106
37
  export interface ActionsEnvironmentSecretState {
107
- /**
108
- * Date of actionsEnvironmentSecret creation.
109
- */
110
38
  createdAt?: pulumi.Input<string>;
111
- /**
112
- * Encrypted value of the secret using the Github public key in Base64 format.
113
- */
114
39
  encryptedValue?: pulumi.Input<string>;
115
- /**
116
- * Name of the environment.
117
- */
118
40
  environment?: pulumi.Input<string>;
119
- /**
120
- * Plaintext value of the secret to be encrypted.
121
- */
122
41
  plaintextValue?: pulumi.Input<string>;
123
- /**
124
- * Name of the repository.
125
- */
126
42
  repository?: pulumi.Input<string>;
127
- /**
128
- * Name of the secret.
129
- */
130
43
  secretName?: pulumi.Input<string>;
131
- /**
132
- * Date of actionsEnvironmentSecret update.
133
- */
134
44
  updatedAt?: pulumi.Input<string>;
135
45
  }
136
46
  /**
137
47
  * The set of arguments for constructing a ActionsEnvironmentSecret resource.
138
48
  */
139
49
  export interface ActionsEnvironmentSecretArgs {
140
- /**
141
- * Encrypted value of the secret using the Github public key in Base64 format.
142
- */
143
50
  encryptedValue?: pulumi.Input<string>;
144
- /**
145
- * Name of the environment.
146
- */
147
51
  environment: pulumi.Input<string>;
148
- /**
149
- * Plaintext value of the secret to be encrypted.
150
- */
151
52
  plaintextValue?: pulumi.Input<string>;
152
- /**
153
- * Name of the repository.
154
- */
155
53
  repository: pulumi.Input<string>;
156
- /**
157
- * Name of the secret.
158
- */
159
54
  secretName: pulumi.Input<string>;
160
55
  }
@@ -5,54 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.ActionsEnvironmentSecret = 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 exampleSecretActionsEnvironmentSecret = new github.ActionsEnvironmentSecret("exampleSecretActionsEnvironmentSecret", {
16
- * environment: "example_environment",
17
- * secretName: "example_secret_name",
18
- * plaintextValue: _var.some_secret_string,
19
- * });
20
- * const exampleSecretIndex_actionsEnvironmentSecretActionsEnvironmentSecret = new github.ActionsEnvironmentSecret("exampleSecretIndex/actionsEnvironmentSecretActionsEnvironmentSecret", {
21
- * environment: "example_environment",
22
- * secretName: "example_secret_name",
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 repoEnvironment = new github.RepositoryEnvironment("repoEnvironment", {
35
- * repository: repo.then(repo => repo.name),
36
- * environment: "example_environment",
37
- * });
38
- * const testSecret = new github.ActionsEnvironmentSecret("testSecret", {
39
- * repository: repo.then(repo => repo.name),
40
- * environment: repoEnvironment.environment,
41
- * secretName: "test_secret_name",
42
- * plaintextValue: `%s`,
43
- * });
44
- * ```
45
- *
46
- * ## Import
47
- *
48
- * This resource can be imported using an ID made up of the secret name
49
- *
50
- * ```sh
51
- * $ pulumi import github:index/actionsEnvironmentSecret:ActionsEnvironmentSecret test_secret test_secret_name
52
- * ```
53
- *
54
- * NOTEthe implementation is limited in that it won't fetch the value of the `plaintext_value` field when importing. You may need to ignore changes for the `plaintext_value` as a workaround.
55
- */
56
8
  class ActionsEnvironmentSecret extends pulumi.CustomResource {
57
9
  constructor(name, argsOrState, opts) {
58
10
  let resourceInputs = {};
@@ -1 +1 @@
1
- {"version":3,"file":"actionsEnvironmentSecret.js","sourceRoot":"","sources":["../actionsEnvironmentSecret.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAa,wBAAyB,SAAQ,MAAM,CAAC,cAAc;IAiE/D,YAAY,IAAY,EAAE,WAA0E,EAAE,IAAmC;QACrI,IAAI,cAAc,GAAkB,EAA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,SAAS,CAAC;YAClE,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,KAAK,CAAC,wBAAwB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7E,CAAC;IA5ED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqC,EAAE,IAAmC;QACnI,OAAO,IAAI,wBAAwB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/E,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,wBAAwB,CAAC,YAAY,CAAC;IACzE,CAAC;;AA1BL,4DA8EC;AAhEG,gBAAgB;AACO,qCAAY,GAAG,gEAAgE,CAAC"}
@@ -1,41 +1,5 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import { input as inputs, output as outputs } from "./types";
3
- /**
4
- * This resource allows you to create and manage GitHub Actions permissions within your GitHub enterprise organizations.
5
- * You must have admin access to an organization to use this resource.
6
- *
7
- * ## Example Usage
8
- *
9
- * ```typescript
10
- * import * as pulumi from "@pulumi/pulumi";
11
- * import * as github from "@pulumi/github";
12
- *
13
- * const example = new github.Repository("example", {});
14
- * const test = new github.ActionsOrganizationPermissions("test", {
15
- * allowedActions: "selected",
16
- * enabledRepositories: "selected",
17
- * allowedActionsConfig: {
18
- * githubOwnedAllowed: true,
19
- * patternsAlloweds: [
20
- * "actions/cache@*",
21
- * "actions/checkout@*",
22
- * ],
23
- * verifiedAllowed: true,
24
- * },
25
- * enabledRepositoriesConfig: {
26
- * repositoryIds: [example.repoId],
27
- * },
28
- * });
29
- * ```
30
- *
31
- * ## Import
32
- *
33
- * This resource can be imported using the ID of the GitHub organization
34
- *
35
- * ```sh
36
- * $ pulumi import github:index/actionsOrganizationPermissions:ActionsOrganizationPermissions test <github_organization_name>
37
- * ```
38
- */
39
3
  export declare class ActionsOrganizationPermissions extends pulumi.CustomResource {
40
4
  /**
41
5
  * Get an existing ActionsOrganizationPermissions resource's state with the given name, ID, and optional extra
@@ -52,21 +16,9 @@ export declare class ActionsOrganizationPermissions extends pulumi.CustomResourc
52
16
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
53
17
  */
54
18
  static isInstance(obj: any): obj is ActionsOrganizationPermissions;
55
- /**
56
- * The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `localOnly`, or `selected`.
57
- */
58
19
  readonly allowedActions: pulumi.Output<string | undefined>;
59
- /**
60
- * Sets the actions that are allowed in an organization. Only available when `allowedActions` = `selected`. See Allowed Actions Config below for details.
61
- */
62
20
  readonly allowedActionsConfig: pulumi.Output<outputs.ActionsOrganizationPermissionsAllowedActionsConfig | undefined>;
63
- /**
64
- * The policy that controls the repositories in the organization that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`.
65
- */
66
21
  readonly enabledRepositories: pulumi.Output<string>;
67
- /**
68
- * Sets the list of selected repositories that are enabled for GitHub Actions in an organization. Only available when `enabledRepositories` = `selected`. See Enabled Repositories Config below for details.
69
- */
70
22
  readonly enabledRepositoriesConfig: pulumi.Output<outputs.ActionsOrganizationPermissionsEnabledRepositoriesConfig | undefined>;
71
23
  /**
72
24
  * Create a ActionsOrganizationPermissions resource with the given unique name, arguments, and options.
@@ -81,41 +33,17 @@ export declare class ActionsOrganizationPermissions extends pulumi.CustomResourc
81
33
  * Input properties used for looking up and filtering ActionsOrganizationPermissions resources.
82
34
  */
83
35
  export interface ActionsOrganizationPermissionsState {
84
- /**
85
- * The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `localOnly`, or `selected`.
86
- */
87
36
  allowedActions?: pulumi.Input<string>;
88
- /**
89
- * Sets the actions that are allowed in an organization. Only available when `allowedActions` = `selected`. See Allowed Actions Config below for details.
90
- */
91
37
  allowedActionsConfig?: pulumi.Input<inputs.ActionsOrganizationPermissionsAllowedActionsConfig>;
92
- /**
93
- * The policy that controls the repositories in the organization that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`.
94
- */
95
38
  enabledRepositories?: pulumi.Input<string>;
96
- /**
97
- * Sets the list of selected repositories that are enabled for GitHub Actions in an organization. Only available when `enabledRepositories` = `selected`. See Enabled Repositories Config below for details.
98
- */
99
39
  enabledRepositoriesConfig?: pulumi.Input<inputs.ActionsOrganizationPermissionsEnabledRepositoriesConfig>;
100
40
  }
101
41
  /**
102
42
  * The set of arguments for constructing a ActionsOrganizationPermissions resource.
103
43
  */
104
44
  export interface ActionsOrganizationPermissionsArgs {
105
- /**
106
- * The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `localOnly`, or `selected`.
107
- */
108
45
  allowedActions?: pulumi.Input<string>;
109
- /**
110
- * Sets the actions that are allowed in an organization. Only available when `allowedActions` = `selected`. See Allowed Actions Config below for details.
111
- */
112
46
  allowedActionsConfig?: pulumi.Input<inputs.ActionsOrganizationPermissionsAllowedActionsConfig>;
113
- /**
114
- * The policy that controls the repositories in the organization that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`.
115
- */
116
47
  enabledRepositories: pulumi.Input<string>;
117
- /**
118
- * Sets the list of selected repositories that are enabled for GitHub Actions in an organization. Only available when `enabledRepositories` = `selected`. See Enabled Repositories Config below for details.
119
- */
120
48
  enabledRepositoriesConfig?: pulumi.Input<inputs.ActionsOrganizationPermissionsEnabledRepositoriesConfig>;
121
49
  }
@@ -5,42 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.ActionsOrganizationPermissions = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
- /**
9
- * This resource allows you to create and manage GitHub Actions permissions within your GitHub enterprise organizations.
10
- * You must have admin access to an organization to use this resource.
11
- *
12
- * ## Example Usage
13
- *
14
- * ```typescript
15
- * import * as pulumi from "@pulumi/pulumi";
16
- * import * as github from "@pulumi/github";
17
- *
18
- * const example = new github.Repository("example", {});
19
- * const test = new github.ActionsOrganizationPermissions("test", {
20
- * allowedActions: "selected",
21
- * enabledRepositories: "selected",
22
- * allowedActionsConfig: {
23
- * githubOwnedAllowed: true,
24
- * patternsAlloweds: [
25
- * "actions/cache@*",
26
- * "actions/checkout@*",
27
- * ],
28
- * verifiedAllowed: true,
29
- * },
30
- * enabledRepositoriesConfig: {
31
- * repositoryIds: [example.repoId],
32
- * },
33
- * });
34
- * ```
35
- *
36
- * ## Import
37
- *
38
- * This resource can be imported using the ID of the GitHub organization
39
- *
40
- * ```sh
41
- * $ pulumi import github:index/actionsOrganizationPermissions:ActionsOrganizationPermissions test <github_organization_name>
42
- * ```
43
- */
44
8
  class ActionsOrganizationPermissions extends pulumi.CustomResource {
45
9
  constructor(name, argsOrState, opts) {
46
10
  let resourceInputs = {};
@@ -1 +1 @@
1
- {"version":3,"file":"actionsOrganizationPermissions.js","sourceRoot":"","sources":["../actionsOrganizationPermissions.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAa,8BAA+B,SAAQ,MAAM,CAAC,cAAc;IAqDrE,YAAY,IAAY,EAAE,WAAsF,EAAE,IAAmC;QACjJ,IAAI,cAAc,G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AAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2C,EAAE,IAAmC;QACzI,OAAO,IAAI,8BAA8B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrF,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,8BAA8B,CAAC,YAAY,CAAC;IAC/E,CAAC;;AA1BL,wEA+DC;AAjDG,gBAAgB;AACO,2CAAY,GAAG,4EAA4E,CAAC"}
@@ -1,54 +1,4 @@
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 exampleSecretActionsOrganizationSecret = new github.ActionsOrganizationSecret("exampleSecretActionsOrganizationSecret", {
10
- * secretName: "example_secret_name",
11
- * visibility: "private",
12
- * plaintextValue: _var.some_secret_string,
13
- * });
14
- * const exampleSecretIndex_actionsOrganizationSecretActionsOrganizationSecret = new github.ActionsOrganizationSecret("exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret", {
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 exampleSecretActionsOrganizationSecret = new github.ActionsOrganizationSecret("exampleSecretActionsOrganizationSecret", {
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_actionsOrganizationSecretActionsOrganizationSecret = new github.ActionsOrganizationSecret("exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret", {
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/actionsOrganizationSecret:ActionsOrganizationSecret test_secret test_secret_name
48
- * ```
49
- *
50
- * NOTEthe implementation is limited in that it won't fetch the value of the `plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.
51
- */
52
2
  export declare class ActionsOrganizationSecret extends pulumi.CustomResource {
53
3
  /**
54
4
  * Get an existing ActionsOrganizationSecret resource's state with the given name, ID, and optional extra
@@ -65,34 +15,12 @@ export declare class ActionsOrganizationSecret extends pulumi.CustomResource {
65
15
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
66
16
  */
67
17
  static isInstance(obj: any): obj is ActionsOrganizationSecret;
68
- /**
69
- * Date of actionsSecret creation.
70
- */
71
18
  readonly createdAt: pulumi.Output<string>;
72
- /**
73
- * Encrypted value of the secret using the Github public key in Base64 format.
74
- */
75
19
  readonly encryptedValue: pulumi.Output<string | undefined>;
76
- /**
77
- * Plaintext value of the secret to be encrypted
78
- */
79
20
  readonly plaintextValue: pulumi.Output<string | undefined>;
80
- /**
81
- * Name of the secret
82
- */
83
21
  readonly secretName: pulumi.Output<string>;
84
- /**
85
- * An array of repository ids that can access the organization secret.
86
- */
87
22
  readonly selectedRepositoryIds: pulumi.Output<number[] | undefined>;
88
- /**
89
- * Date of actionsSecret update.
90
- */
91
23
  readonly updatedAt: pulumi.Output<string>;
92
- /**
93
- * Configures the access that repositories have to the organization secret.
94
- * Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
95
- */
96
24
  readonly visibility: pulumi.Output<string>;
97
25
  /**
98
26
  * Create a ActionsOrganizationSecret resource with the given unique name, arguments, and options.
@@ -107,59 +35,21 @@ export declare class ActionsOrganizationSecret extends pulumi.CustomResource {
107
35
  * Input properties used for looking up and filtering ActionsOrganizationSecret resources.
108
36
  */
109
37
  export interface ActionsOrganizationSecretState {
110
- /**
111
- * Date of actionsSecret creation.
112
- */
113
38
  createdAt?: pulumi.Input<string>;
114
- /**
115
- * Encrypted value of the secret using the Github public key in Base64 format.
116
- */
117
39
  encryptedValue?: pulumi.Input<string>;
118
- /**
119
- * Plaintext value of the secret to be encrypted
120
- */
121
40
  plaintextValue?: pulumi.Input<string>;
122
- /**
123
- * Name of the secret
124
- */
125
41
  secretName?: pulumi.Input<string>;
126
- /**
127
- * An array of repository ids that can access the organization secret.
128
- */
129
42
  selectedRepositoryIds?: pulumi.Input<pulumi.Input<number>[]>;
130
- /**
131
- * Date of actionsSecret update.
132
- */
133
43
  updatedAt?: pulumi.Input<string>;
134
- /**
135
- * Configures the access that repositories have to the organization secret.
136
- * Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
137
- */
138
44
  visibility?: pulumi.Input<string>;
139
45
  }
140
46
  /**
141
47
  * The set of arguments for constructing a ActionsOrganizationSecret resource.
142
48
  */
143
49
  export interface ActionsOrganizationSecretArgs {
144
- /**
145
- * Encrypted value of the secret using the Github public key in Base64 format.
146
- */
147
50
  encryptedValue?: pulumi.Input<string>;
148
- /**
149
- * Plaintext value of the secret to be encrypted
150
- */
151
51
  plaintextValue?: pulumi.Input<string>;
152
- /**
153
- * Name of the secret
154
- */
155
52
  secretName: pulumi.Input<string>;
156
- /**
157
- * An array of repository ids that can access the organization secret.
158
- */
159
53
  selectedRepositoryIds?: pulumi.Input<pulumi.Input<number>[]>;
160
- /**
161
- * Configures the access that repositories have to the organization secret.
162
- * Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
163
- */
164
54
  visibility: pulumi.Input<string>;
165
55
  }
@@ -5,56 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.ActionsOrganizationSecret = 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 exampleSecretActionsOrganizationSecret = new github.ActionsOrganizationSecret("exampleSecretActionsOrganizationSecret", {
16
- * secretName: "example_secret_name",
17
- * visibility: "private",
18
- * plaintextValue: _var.some_secret_string,
19
- * });
20
- * const exampleSecretIndex_actionsOrganizationSecretActionsOrganizationSecret = new github.ActionsOrganizationSecret("exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret", {
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 exampleSecretActionsOrganizationSecret = new github.ActionsOrganizationSecret("exampleSecretActionsOrganizationSecret", {
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_actionsOrganizationSecretActionsOrganizationSecret = new github.ActionsOrganizationSecret("exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret", {
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/actionsOrganizationSecret:ActionsOrganizationSecret test_secret test_secret_name
54
- * ```
55
- *
56
- * NOTEthe implementation is limited in that it won't fetch the value of the `plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.
57
- */
58
8
  class ActionsOrganizationSecret extends pulumi.CustomResource {
59
9
  constructor(name, argsOrState, opts) {
60
10
  let resourceInputs = {};
@@ -1 +1 @@
1
- {"version":3,"file":"actionsOrganizationSecret.js","sourceRoot":"","sources":["../actionsOrganizationSecret.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,MAAa,yBAA0B,SAAQ,MAAM,CAAC,cAAc;IAkEhE,YAAY,IAAY,EAAE,WAA4E,EAAE,IAAmC;QACvI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAyD,CAAC;YACxE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,uBAAuB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;YA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