@pulumi/github 5.0.0 → 5.2.0-alpha.1673638210
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actionsEnvironmentSecret.d.ts +99 -0
- package/actionsEnvironmentSecret.js +68 -24
- package/actionsEnvironmentSecret.js.map +1 -1
- package/actionsOrganizationPermissions.d.ts +74 -1
- package/actionsOrganizationPermissions.js +58 -22
- package/actionsOrganizationPermissions.js.map +1 -1
- package/actionsOrganizationSecret.d.ts +110 -0
- package/actionsOrganizationSecret.js +76 -24
- package/actionsOrganizationSecret.js.map +1 -1
- package/actionsOrganizationSecretRepositories.d.ts +47 -0
- package/actionsOrganizationSecretRepositories.js +51 -22
- package/actionsOrganizationSecretRepositories.js.map +1 -1
- package/actionsRepositoryPermissions.d.ts +119 -0
- package/actionsRepositoryPermissions.js +91 -0
- package/actionsRepositoryPermissions.js.map +1 -0
- package/actionsRunnerGroup.d.ts +88 -0
- package/actionsRunnerGroup.js +47 -22
- package/actionsRunnerGroup.js.map +1 -1
- package/actionsSecret.d.ts +70 -0
- package/actionsSecret.js +48 -24
- package/actionsSecret.js.map +1 -1
- package/appInstallationRepositories.d.ts +81 -0
- package/appInstallationRepositories.js +78 -0
- package/appInstallationRepositories.js.map +1 -0
- package/appInstallationRepository.d.ts +53 -0
- package/appInstallationRepository.js +57 -22
- package/appInstallationRepository.js.map +1 -1
- package/branch.d.ts +92 -0
- package/branch.js +60 -22
- package/branch.js.map +1 -1
- package/branchDefault.d.ts +53 -0
- package/branchDefault.js +57 -22
- package/branchDefault.js.map +1 -1
- package/branchProtection.d.ts +175 -4
- package/branchProtection.js +83 -22
- package/branchProtection.js.map +1 -1
- package/branchProtectionV3.d.ts +140 -1
- package/branchProtectionV3.js +88 -22
- package/branchProtectionV3.js.map +1 -1
- package/config/vars.d.ts +1 -1
- package/config/vars.js.map +1 -1
- package/dependabotOrganizationSecret.js +26 -24
- package/dependabotOrganizationSecret.js.map +1 -1
- package/dependabotOrganizationSecretRepositories.js +22 -22
- package/dependabotOrganizationSecretRepositories.js.map +1 -1
- package/dependabotSecret.js +26 -24
- package/dependabotSecret.js.map +1 -1
- package/emuGroupMapping.d.ts +42 -0
- package/emuGroupMapping.js +46 -22
- package/emuGroupMapping.js.map +1 -1
- package/getActionsOrganizationRegistrationToken.d.ts +31 -0
- package/getActionsOrganizationRegistrationToken.js +25 -0
- package/getActionsOrganizationRegistrationToken.js.map +1 -0
- package/getActionsOrganizationSecrets.d.ts +16 -1
- package/getActionsOrganizationSecrets.js +13 -4
- package/getActionsOrganizationSecrets.js.map +1 -1
- package/getActionsPublicKey.d.ts +42 -0
- package/getActionsPublicKey.js +32 -5
- package/getActionsPublicKey.js.map +1 -1
- package/getActionsRegistrationToken.d.ts +67 -0
- package/getActionsRegistrationToken.js +47 -0
- package/getActionsRegistrationToken.js.map +1 -0
- package/getActionsSecrets.d.ts +47 -1
- package/getActionsSecrets.js +30 -5
- package/getActionsSecrets.js.map +1 -1
- package/getBranch.d.ts +51 -0
- package/getBranch.js +32 -5
- package/getBranch.js.map +1 -1
- package/getCollaborators.d.ts +52 -1
- package/getCollaborators.js +32 -5
- package/getCollaborators.js.map +1 -1
- package/getDependabotOrganizationSecrets.d.ts +28 -0
- package/getDependabotOrganizationSecrets.js +25 -0
- package/getDependabotOrganizationSecrets.js.map +1 -0
- package/getDependabotPublicKey.js +2 -5
- package/getDependabotPublicKey.js.map +1 -1
- package/getDependabotSecrets.d.ts +76 -0
- package/getDependabotSecrets.js +49 -0
- package/getDependabotSecrets.js.map +1 -0
- package/getExternalGroups.d.ts +18 -1
- package/getExternalGroups.js +15 -4
- package/getExternalGroups.js.map +1 -1
- package/getGithubApp.d.ts +71 -0
- package/getGithubApp.js +47 -0
- package/getGithubApp.js.map +1 -0
- package/getIpRanges.d.ts +84 -0
- package/getIpRanges.js +13 -4
- package/getIpRanges.js.map +1 -1
- package/getMembership.d.ts +59 -0
- package/getMembership.js +36 -5
- package/getMembership.js.map +1 -1
- package/getOrganization.d.ts +58 -0
- package/getOrganization.js +30 -5
- package/getOrganization.js.map +1 -1
- package/getOrganizationIpAllowList.d.ts +31 -0
- package/getOrganizationIpAllowList.js +27 -0
- package/getOrganizationIpAllowList.js.map +1 -0
- package/getOrganizationTeamSyncGroups.d.ts +16 -1
- package/getOrganizationTeamSyncGroups.js +13 -4
- package/getOrganizationTeamSyncGroups.js.map +1 -1
- package/getOrganizationTeams.d.ts +87 -1
- package/getOrganizationTeams.js +54 -5
- package/getOrganizationTeams.js.map +1 -1
- package/getOrganizationWebhooks.d.ts +31 -0
- package/getOrganizationWebhooks.js +27 -0
- package/getOrganizationWebhooks.js.map +1 -0
- package/getRef.d.ts +48 -0
- package/getRef.js +32 -5
- package/getRef.js.map +1 -1
- package/getRelease.d.ts +92 -0
- package/getRelease.js +8 -5
- package/getRelease.js.map +1 -1
- package/getRepositories.d.ts +70 -0
- package/getRepositories.js +40 -5
- package/getRepositories.js.map +1 -1
- package/getRepository.d.ts +142 -4
- package/getRepository.js +30 -6
- package/getRepository.js.map +1 -1
- package/getRepositoryBranches.d.ts +82 -0
- package/getRepositoryBranches.js +49 -0
- package/getRepositoryBranches.js.map +1 -0
- package/getRepositoryDeployKeys.d.ts +64 -0
- package/getRepositoryDeployKeys.js +47 -0
- package/getRepositoryDeployKeys.js.map +1 -0
- package/getRepositoryFile.d.ts +72 -0
- package/getRepositoryFile.js +36 -5
- package/getRepositoryFile.js.map +1 -1
- package/getRepositoryMilestone.d.ts +62 -0
- package/getRepositoryMilestone.js +34 -5
- package/getRepositoryMilestone.js.map +1 -1
- package/getRepositoryPullRequest.d.ts +90 -0
- package/getRepositoryPullRequest.js +32 -5
- package/getRepositoryPullRequest.js.map +1 -1
- package/getRepositoryPullRequests.d.ts +91 -1
- package/getRepositoryPullRequests.js +38 -5
- package/getRepositoryPullRequests.js.map +1 -1
- package/getRepositoryTeams.d.ts +47 -1
- package/getRepositoryTeams.js +30 -5
- package/getRepositoryTeams.js.map +1 -1
- package/getRepositoryWebhooks.d.ts +63 -0
- package/getRepositoryWebhooks.js +51 -0
- package/getRepositoryWebhooks.js.map +1 -0
- package/getTeam.d.ts +79 -0
- package/getTeam.js +32 -5
- package/getTeam.js.map +1 -1
- package/getTree.d.ts +70 -1
- package/getTree.js +50 -5
- package/getTree.js.map +1 -1
- package/getUser.d.ts +102 -0
- package/getUser.js +38 -5
- package/getUser.js.map +1 -1
- package/getUsers.d.ts +55 -0
- package/getUsers.js +42 -5
- package/getUsers.js.map +1 -1
- package/index.d.ts +244 -68
- package/index.js +259 -171
- package/index.js.map +1 -1
- package/issue.d.ts +117 -6
- package/issue.js +85 -22
- package/issue.js.map +1 -1
- package/issueLabel.d.ts +64 -0
- package/issueLabel.js +44 -22
- package/issueLabel.js.map +1 -1
- package/membership.d.ts +49 -0
- package/membership.js +49 -21
- package/membership.js.map +1 -1
- package/organizationBlock.d.ts +21 -0
- package/organizationBlock.js +31 -19
- package/organizationBlock.js.map +1 -1
- package/organizationProject.d.ts +36 -0
- package/organizationProject.js +32 -20
- package/organizationProject.js.map +1 -1
- package/organizationSecurityManager.d.ts +67 -0
- package/organizationSecurityManager.js +71 -0
- package/organizationSecurityManager.js.map +1 -0
- package/organizationSettings.d.ts +394 -0
- package/organizationSettings.js +148 -0
- package/organizationSettings.js.map +1 -0
- package/organizationWebhook.d.ts +65 -1
- package/organizationWebhook.js +52 -22
- package/organizationWebhook.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/projectCard.d.ts +87 -0
- package/projectCard.js +73 -22
- package/projectCard.js.map +1 -1
- package/projectColumn.d.ts +31 -0
- package/projectColumn.js +35 -22
- package/projectColumn.js.map +1 -1
- package/provider.d.ts +1 -1
- package/provider.js +10 -10
- package/provider.js.map +1 -1
- package/release.d.ts +194 -0
- package/release.js +121 -0
- package/release.js.map +1 -0
- package/repository.d.ts +396 -4
- package/repository.js +72 -22
- package/repository.js.map +1 -1
- package/repositoryAutolinkReference.d.ts +54 -6
- package/repositoryAutolinkReference.js +54 -22
- package/repositoryAutolinkReference.js.map +1 -1
- package/repositoryCollaborator.d.ts +90 -0
- package/repositoryCollaborator.js +64 -22
- package/repositoryCollaborator.js.map +1 -1
- package/repositoryDeployKey.d.ts +71 -0
- package/repositoryDeployKey.js +57 -22
- package/repositoryDeployKey.js.map +1 -1
- package/repositoryEnvironment.d.ts +63 -1
- package/repositoryEnvironment.js +56 -22
- package/repositoryEnvironment.js.map +1 -1
- package/repositoryFile.d.ts +70 -30
- package/repositoryFile.js +59 -22
- package/repositoryFile.js.map +1 -1
- package/repositoryMilestone.d.ts +81 -3
- package/repositoryMilestone.js +49 -22
- package/repositoryMilestone.js.map +1 -1
- package/repositoryProject.d.ts +52 -0
- package/repositoryProject.js +41 -22
- package/repositoryProject.js.map +1 -1
- package/repositoryPullRequest.d.ts +127 -4
- package/repositoryPullRequest.js +40 -22
- package/repositoryPullRequest.js.map +1 -1
- package/repositoryTagProtection.d.ts +41 -0
- package/repositoryTagProtection.js +45 -22
- package/repositoryTagProtection.js.map +1 -1
- package/repositoryWebhook.d.ts +81 -1
- package/repositoryWebhook.js +59 -22
- package/repositoryWebhook.js.map +1 -1
- package/team.d.ts +100 -0
- package/team.js +49 -22
- package/team.js.map +1 -1
- package/teamMembers.d.ts +60 -1
- package/teamMembers.js +62 -22
- package/teamMembers.js.map +1 -1
- package/teamMembership.d.ts +67 -0
- package/teamMembership.js +59 -22
- package/teamMembership.js.map +1 -1
- package/teamRepository.d.ts +59 -3
- package/teamRepository.js +57 -22
- package/teamRepository.js.map +1 -1
- package/teamSettings.d.ts +119 -0
- package/teamSettings.js +99 -0
- package/teamSettings.js.map +1 -0
- package/teamSyncGroupMapping.d.ts +38 -1
- package/teamSyncGroupMapping.js +36 -21
- package/teamSyncGroupMapping.js.map +1 -1
- package/types/index.js.map +1 -1
- package/types/input.d.ts +208 -1
- package/types/output.d.ts +555 -1
- package/userGpgKey.d.ts +39 -0
- package/userGpgKey.js +42 -21
- package/userGpgKey.js.map +1 -1
- package/userInvitationAccepter.d.ts +30 -0
- package/userInvitationAccepter.js +38 -17
- package/userInvitationAccepter.js.map +1 -1
- package/userSshKey.d.ts +50 -0
- package/userSshKey.js +48 -22
- package/userSshKey.js.map +1 -1
- package/utilities.js +13 -1
- package/utilities.js.map +1 -1
|
@@ -1,4 +1,46 @@
|
|
|
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 does not support importing. If you'd like to help contribute it, please visit our [GitHub page](https://github.com/integrations/terraform-provider-github)!
|
|
43
|
+
*/
|
|
2
44
|
export declare class ActionsEnvironmentSecret extends pulumi.CustomResource {
|
|
3
45
|
/**
|
|
4
46
|
* Get an existing ActionsEnvironmentSecret resource's state with the given name, ID, and optional extra
|
|
@@ -15,12 +57,33 @@ export declare class ActionsEnvironmentSecret extends pulumi.CustomResource {
|
|
|
15
57
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
16
58
|
*/
|
|
17
59
|
static isInstance(obj: any): obj is ActionsEnvironmentSecret;
|
|
60
|
+
/**
|
|
61
|
+
* Date of actionsEnvironmentSecret creation.
|
|
62
|
+
*/
|
|
18
63
|
readonly createdAt: pulumi.Output<string>;
|
|
64
|
+
/**
|
|
65
|
+
* Encrypted value of the secret using the Github public key in Base64 format.
|
|
66
|
+
*/
|
|
19
67
|
readonly encryptedValue: pulumi.Output<string | undefined>;
|
|
68
|
+
/**
|
|
69
|
+
* Name of the environment.
|
|
70
|
+
*/
|
|
20
71
|
readonly environment: pulumi.Output<string>;
|
|
72
|
+
/**
|
|
73
|
+
* Plaintext value of the secret to be encrypted.
|
|
74
|
+
*/
|
|
21
75
|
readonly plaintextValue: pulumi.Output<string | undefined>;
|
|
76
|
+
/**
|
|
77
|
+
* Name of the repository.
|
|
78
|
+
*/
|
|
22
79
|
readonly repository: pulumi.Output<string>;
|
|
80
|
+
/**
|
|
81
|
+
* Name of the secret.
|
|
82
|
+
*/
|
|
23
83
|
readonly secretName: pulumi.Output<string>;
|
|
84
|
+
/**
|
|
85
|
+
* Date of actionsEnvironmentSecret update.
|
|
86
|
+
*/
|
|
24
87
|
readonly updatedAt: pulumi.Output<string>;
|
|
25
88
|
/**
|
|
26
89
|
* Create a ActionsEnvironmentSecret resource with the given unique name, arguments, and options.
|
|
@@ -35,21 +98,57 @@ export declare class ActionsEnvironmentSecret extends pulumi.CustomResource {
|
|
|
35
98
|
* Input properties used for looking up and filtering ActionsEnvironmentSecret resources.
|
|
36
99
|
*/
|
|
37
100
|
export interface ActionsEnvironmentSecretState {
|
|
101
|
+
/**
|
|
102
|
+
* Date of actionsEnvironmentSecret creation.
|
|
103
|
+
*/
|
|
38
104
|
createdAt?: pulumi.Input<string>;
|
|
105
|
+
/**
|
|
106
|
+
* Encrypted value of the secret using the Github public key in Base64 format.
|
|
107
|
+
*/
|
|
39
108
|
encryptedValue?: pulumi.Input<string>;
|
|
109
|
+
/**
|
|
110
|
+
* Name of the environment.
|
|
111
|
+
*/
|
|
40
112
|
environment?: pulumi.Input<string>;
|
|
113
|
+
/**
|
|
114
|
+
* Plaintext value of the secret to be encrypted.
|
|
115
|
+
*/
|
|
41
116
|
plaintextValue?: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* Name of the repository.
|
|
119
|
+
*/
|
|
42
120
|
repository?: pulumi.Input<string>;
|
|
121
|
+
/**
|
|
122
|
+
* Name of the secret.
|
|
123
|
+
*/
|
|
43
124
|
secretName?: pulumi.Input<string>;
|
|
125
|
+
/**
|
|
126
|
+
* Date of actionsEnvironmentSecret update.
|
|
127
|
+
*/
|
|
44
128
|
updatedAt?: pulumi.Input<string>;
|
|
45
129
|
}
|
|
46
130
|
/**
|
|
47
131
|
* The set of arguments for constructing a ActionsEnvironmentSecret resource.
|
|
48
132
|
*/
|
|
49
133
|
export interface ActionsEnvironmentSecretArgs {
|
|
134
|
+
/**
|
|
135
|
+
* Encrypted value of the secret using the Github public key in Base64 format.
|
|
136
|
+
*/
|
|
50
137
|
encryptedValue?: pulumi.Input<string>;
|
|
138
|
+
/**
|
|
139
|
+
* Name of the environment.
|
|
140
|
+
*/
|
|
51
141
|
environment: pulumi.Input<string>;
|
|
142
|
+
/**
|
|
143
|
+
* Plaintext value of the secret to be encrypted.
|
|
144
|
+
*/
|
|
52
145
|
plaintextValue?: pulumi.Input<string>;
|
|
146
|
+
/**
|
|
147
|
+
* Name of the repository.
|
|
148
|
+
*/
|
|
53
149
|
repository: pulumi.Input<string>;
|
|
150
|
+
/**
|
|
151
|
+
* Name of the secret.
|
|
152
|
+
*/
|
|
54
153
|
secretName: pulumi.Input<string>;
|
|
55
154
|
}
|
|
@@ -5,7 +5,71 @@ 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 does not support importing. If you'd like to help contribute it, please visit our [GitHub page](https://github.com/integrations/terraform-provider-github)!
|
|
49
|
+
*/
|
|
8
50
|
class ActionsEnvironmentSecret extends pulumi.CustomResource {
|
|
51
|
+
/**
|
|
52
|
+
* Get an existing ActionsEnvironmentSecret resource's state with the given name, ID, and optional extra
|
|
53
|
+
* properties used to qualify the lookup.
|
|
54
|
+
*
|
|
55
|
+
* @param name The _unique_ name of the resulting resource.
|
|
56
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
57
|
+
* @param state Any extra arguments used during the lookup.
|
|
58
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
59
|
+
*/
|
|
60
|
+
static get(name, id, state, opts) {
|
|
61
|
+
return new ActionsEnvironmentSecret(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Returns true if the given object is an instance of ActionsEnvironmentSecret. This is designed to work even
|
|
65
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
66
|
+
*/
|
|
67
|
+
static isInstance(obj) {
|
|
68
|
+
if (obj === undefined || obj === null) {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
return obj['__pulumiType'] === ActionsEnvironmentSecret.__pulumiType;
|
|
72
|
+
}
|
|
9
73
|
constructor(name, argsOrState, opts) {
|
|
10
74
|
let resourceInputs = {};
|
|
11
75
|
opts = opts || {};
|
|
@@ -30,39 +94,19 @@ class ActionsEnvironmentSecret extends pulumi.CustomResource {
|
|
|
30
94
|
if ((!args || args.secretName === undefined) && !opts.urn) {
|
|
31
95
|
throw new Error("Missing required property 'secretName'");
|
|
32
96
|
}
|
|
33
|
-
resourceInputs["encryptedValue"] = args ? args.encryptedValue : undefined;
|
|
97
|
+
resourceInputs["encryptedValue"] = (args === null || args === void 0 ? void 0 : args.encryptedValue) ? pulumi.secret(args.encryptedValue) : undefined;
|
|
34
98
|
resourceInputs["environment"] = args ? args.environment : undefined;
|
|
35
|
-
resourceInputs["plaintextValue"] = args ? args.plaintextValue : undefined;
|
|
99
|
+
resourceInputs["plaintextValue"] = (args === null || args === void 0 ? void 0 : args.plaintextValue) ? pulumi.secret(args.plaintextValue) : undefined;
|
|
36
100
|
resourceInputs["repository"] = args ? args.repository : undefined;
|
|
37
101
|
resourceInputs["secretName"] = args ? args.secretName : undefined;
|
|
38
102
|
resourceInputs["createdAt"] = undefined /*out*/;
|
|
39
103
|
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
40
104
|
}
|
|
41
105
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
106
|
+
const secretOpts = { additionalSecretOutputs: ["encryptedValue", "plaintextValue"] };
|
|
107
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
42
108
|
super(ActionsEnvironmentSecret.__pulumiType, name, resourceInputs, opts);
|
|
43
109
|
}
|
|
44
|
-
/**
|
|
45
|
-
* Get an existing ActionsEnvironmentSecret resource's state with the given name, ID, and optional extra
|
|
46
|
-
* properties used to qualify the lookup.
|
|
47
|
-
*
|
|
48
|
-
* @param name The _unique_ name of the resulting resource.
|
|
49
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
50
|
-
* @param state Any extra arguments used during the lookup.
|
|
51
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
52
|
-
*/
|
|
53
|
-
static get(name, id, state, opts) {
|
|
54
|
-
return new ActionsEnvironmentSecret(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Returns true if the given object is an instance of ActionsEnvironmentSecret. This is designed to work even
|
|
58
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
59
|
-
*/
|
|
60
|
-
static isInstance(obj) {
|
|
61
|
-
if (obj === undefined || obj === null) {
|
|
62
|
-
return false;
|
|
63
|
-
}
|
|
64
|
-
return obj['__pulumiType'] === ActionsEnvironmentSecret.__pulumiType;
|
|
65
|
-
}
|
|
66
110
|
}
|
|
67
111
|
exports.ActionsEnvironmentSecret = ActionsEnvironmentSecret;
|
|
68
112
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionsEnvironmentSecret.js","sourceRoot":"","sources":["../actionsEnvironmentSecret.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,wBAAyB,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"actionsEnvironmentSecret.js","sourceRoot":"","sources":["../actionsEnvironmentSecret.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,MAAa,wBAAyB,SAAQ,MAAM,CAAC,cAAc;IAC/D;;;;;;;;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,MAA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;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAE,CAAC;QACrF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,wBAAwB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7E,CAAC;;AApGL,4DAqGC;AAvFG,gBAAgB;AACO,qCAAY,GAAG,gEAAgE,CAAC"}
|
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* This resource allows you to create and manage GitHub Actions permissions within your GitHub enterprise organizations.
|
|
6
|
+
* You must have admin access to an organization to use this resource.
|
|
7
|
+
*
|
|
8
|
+
* ## Example Usage
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as github from "@pulumi/github";
|
|
13
|
+
*
|
|
14
|
+
* const example = new github.Repository("example", {});
|
|
15
|
+
* const test = new github.ActionsOrganizationPermissions("test", {
|
|
16
|
+
* allowedActions: "selected",
|
|
17
|
+
* enabledRepositories: "selected",
|
|
18
|
+
* allowedActionsConfig: {
|
|
19
|
+
* githubOwnedAllowed: true,
|
|
20
|
+
* patternsAlloweds: [
|
|
21
|
+
* "actions/cache@*",
|
|
22
|
+
* "actions/checkout@*",
|
|
23
|
+
* ],
|
|
24
|
+
* verifiedAllowed: true,
|
|
25
|
+
* },
|
|
26
|
+
* enabledRepositoriesConfig: {
|
|
27
|
+
* repositoryIds: [example.repoId],
|
|
28
|
+
* },
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* ## Import
|
|
33
|
+
*
|
|
34
|
+
* This resource can be imported using the ID of the GitHub organization
|
|
35
|
+
*
|
|
36
|
+
* ```sh
|
|
37
|
+
* $ pulumi import github:index/actionsOrganizationPermissions:ActionsOrganizationPermissions test <github_organization_name>
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
3
40
|
export declare class ActionsOrganizationPermissions extends pulumi.CustomResource {
|
|
4
41
|
/**
|
|
5
42
|
* Get an existing ActionsOrganizationPermissions resource's state with the given name, ID, and optional extra
|
|
@@ -16,9 +53,21 @@ export declare class ActionsOrganizationPermissions extends pulumi.CustomResourc
|
|
|
16
53
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
17
54
|
*/
|
|
18
55
|
static isInstance(obj: any): obj is ActionsOrganizationPermissions;
|
|
56
|
+
/**
|
|
57
|
+
* The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `localOnly`, or `selected`.
|
|
58
|
+
*/
|
|
19
59
|
readonly allowedActions: pulumi.Output<string | undefined>;
|
|
60
|
+
/**
|
|
61
|
+
* Sets the actions that are allowed in an organization. Only available when `allowedActions` = `selected`. See Allowed Actions Config below for details.
|
|
62
|
+
*/
|
|
20
63
|
readonly allowedActionsConfig: pulumi.Output<outputs.ActionsOrganizationPermissionsAllowedActionsConfig | undefined>;
|
|
64
|
+
/**
|
|
65
|
+
* The policy that controls the repositories in the organization that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`.
|
|
66
|
+
*/
|
|
21
67
|
readonly enabledRepositories: pulumi.Output<string>;
|
|
68
|
+
/**
|
|
69
|
+
* Sets the list of selected repositories that are enabled for GitHub Actions in an organization. Only available when `enabledRepositories` = `selected`. See Enabled Repositories Config below for details.
|
|
70
|
+
*/
|
|
22
71
|
readonly enabledRepositoriesConfig: pulumi.Output<outputs.ActionsOrganizationPermissionsEnabledRepositoriesConfig | undefined>;
|
|
23
72
|
/**
|
|
24
73
|
* Create a ActionsOrganizationPermissions resource with the given unique name, arguments, and options.
|
|
@@ -33,17 +82,41 @@ export declare class ActionsOrganizationPermissions extends pulumi.CustomResourc
|
|
|
33
82
|
* Input properties used for looking up and filtering ActionsOrganizationPermissions resources.
|
|
34
83
|
*/
|
|
35
84
|
export interface ActionsOrganizationPermissionsState {
|
|
85
|
+
/**
|
|
86
|
+
* The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `localOnly`, or `selected`.
|
|
87
|
+
*/
|
|
36
88
|
allowedActions?: pulumi.Input<string>;
|
|
89
|
+
/**
|
|
90
|
+
* Sets the actions that are allowed in an organization. Only available when `allowedActions` = `selected`. See Allowed Actions Config below for details.
|
|
91
|
+
*/
|
|
37
92
|
allowedActionsConfig?: pulumi.Input<inputs.ActionsOrganizationPermissionsAllowedActionsConfig>;
|
|
93
|
+
/**
|
|
94
|
+
* The policy that controls the repositories in the organization that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`.
|
|
95
|
+
*/
|
|
38
96
|
enabledRepositories?: pulumi.Input<string>;
|
|
97
|
+
/**
|
|
98
|
+
* Sets the list of selected repositories that are enabled for GitHub Actions in an organization. Only available when `enabledRepositories` = `selected`. See Enabled Repositories Config below for details.
|
|
99
|
+
*/
|
|
39
100
|
enabledRepositoriesConfig?: pulumi.Input<inputs.ActionsOrganizationPermissionsEnabledRepositoriesConfig>;
|
|
40
101
|
}
|
|
41
102
|
/**
|
|
42
103
|
* The set of arguments for constructing a ActionsOrganizationPermissions resource.
|
|
43
104
|
*/
|
|
44
105
|
export interface ActionsOrganizationPermissionsArgs {
|
|
106
|
+
/**
|
|
107
|
+
* The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `localOnly`, or `selected`.
|
|
108
|
+
*/
|
|
45
109
|
allowedActions?: pulumi.Input<string>;
|
|
110
|
+
/**
|
|
111
|
+
* Sets the actions that are allowed in an organization. Only available when `allowedActions` = `selected`. See Allowed Actions Config below for details.
|
|
112
|
+
*/
|
|
46
113
|
allowedActionsConfig?: pulumi.Input<inputs.ActionsOrganizationPermissionsAllowedActionsConfig>;
|
|
114
|
+
/**
|
|
115
|
+
* The policy that controls the repositories in the organization that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`.
|
|
116
|
+
*/
|
|
47
117
|
enabledRepositories: pulumi.Input<string>;
|
|
118
|
+
/**
|
|
119
|
+
* Sets the list of selected repositories that are enabled for GitHub Actions in an organization. Only available when `enabledRepositories` = `selected`. See Enabled Repositories Config below for details.
|
|
120
|
+
*/
|
|
48
121
|
enabledRepositoriesConfig?: pulumi.Input<inputs.ActionsOrganizationPermissionsEnabledRepositoriesConfig>;
|
|
49
122
|
}
|
|
@@ -5,7 +5,65 @@ 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
|
+
*/
|
|
8
44
|
class ActionsOrganizationPermissions extends pulumi.CustomResource {
|
|
45
|
+
/**
|
|
46
|
+
* Get an existing ActionsOrganizationPermissions resource's state with the given name, ID, and optional extra
|
|
47
|
+
* properties used to qualify the lookup.
|
|
48
|
+
*
|
|
49
|
+
* @param name The _unique_ name of the resulting resource.
|
|
50
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
51
|
+
* @param state Any extra arguments used during the lookup.
|
|
52
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
53
|
+
*/
|
|
54
|
+
static get(name, id, state, opts) {
|
|
55
|
+
return new ActionsOrganizationPermissions(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Returns true if the given object is an instance of ActionsOrganizationPermissions. This is designed to work even
|
|
59
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
60
|
+
*/
|
|
61
|
+
static isInstance(obj) {
|
|
62
|
+
if (obj === undefined || obj === null) {
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
return obj['__pulumiType'] === ActionsOrganizationPermissions.__pulumiType;
|
|
66
|
+
}
|
|
9
67
|
constructor(name, argsOrState, opts) {
|
|
10
68
|
let resourceInputs = {};
|
|
11
69
|
opts = opts || {};
|
|
@@ -29,28 +87,6 @@ class ActionsOrganizationPermissions extends pulumi.CustomResource {
|
|
|
29
87
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
30
88
|
super(ActionsOrganizationPermissions.__pulumiType, name, resourceInputs, opts);
|
|
31
89
|
}
|
|
32
|
-
/**
|
|
33
|
-
* Get an existing ActionsOrganizationPermissions resource's state with the given name, ID, and optional extra
|
|
34
|
-
* properties used to qualify the lookup.
|
|
35
|
-
*
|
|
36
|
-
* @param name The _unique_ name of the resulting resource.
|
|
37
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
38
|
-
* @param state Any extra arguments used during the lookup.
|
|
39
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
40
|
-
*/
|
|
41
|
-
static get(name, id, state, opts) {
|
|
42
|
-
return new ActionsOrganizationPermissions(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Returns true if the given object is an instance of ActionsOrganizationPermissions. This is designed to work even
|
|
46
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
47
|
-
*/
|
|
48
|
-
static isInstance(obj) {
|
|
49
|
-
if (obj === undefined || obj === null) {
|
|
50
|
-
return false;
|
|
51
|
-
}
|
|
52
|
-
return obj['__pulumiType'] === ActionsOrganizationPermissions.__pulumiType;
|
|
53
|
-
}
|
|
54
90
|
}
|
|
55
91
|
exports.ActionsOrganizationPermissions = ActionsOrganizationPermissions;
|
|
56
92
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionsOrganizationPermissions.js","sourceRoot":"","sources":["../actionsOrganizationPermissions.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"actionsOrganizationPermissions.js","sourceRoot":"","sources":["../actionsOrganizationPermissions.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAmB,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAChE,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;aACtE;YACD,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC;YACtF,cAAc,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;YACpF,cAAc,CAAC,2BAA2B,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC,CAAC,SAAS,CAAC;SACnG;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,8BAA8B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnF,CAAC;;AA1EL,wEA2EC;AA7DG,gBAAgB;AACO,2CAAY,GAAG,4EAA4E,CAAC"}
|
|
@@ -1,4 +1,54 @@
|
|
|
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
|
+
*/
|
|
2
52
|
export declare class ActionsOrganizationSecret extends pulumi.CustomResource {
|
|
3
53
|
/**
|
|
4
54
|
* Get an existing ActionsOrganizationSecret resource's state with the given name, ID, and optional extra
|
|
@@ -15,12 +65,34 @@ export declare class ActionsOrganizationSecret extends pulumi.CustomResource {
|
|
|
15
65
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
16
66
|
*/
|
|
17
67
|
static isInstance(obj: any): obj is ActionsOrganizationSecret;
|
|
68
|
+
/**
|
|
69
|
+
* Date of actionsSecret creation.
|
|
70
|
+
*/
|
|
18
71
|
readonly createdAt: pulumi.Output<string>;
|
|
72
|
+
/**
|
|
73
|
+
* Encrypted value of the secret using the Github public key in Base64 format.
|
|
74
|
+
*/
|
|
19
75
|
readonly encryptedValue: pulumi.Output<string | undefined>;
|
|
76
|
+
/**
|
|
77
|
+
* Plaintext value of the secret to be encrypted
|
|
78
|
+
*/
|
|
20
79
|
readonly plaintextValue: pulumi.Output<string | undefined>;
|
|
80
|
+
/**
|
|
81
|
+
* Name of the secret
|
|
82
|
+
*/
|
|
21
83
|
readonly secretName: pulumi.Output<string>;
|
|
84
|
+
/**
|
|
85
|
+
* An array of repository ids that can access the organization secret.
|
|
86
|
+
*/
|
|
22
87
|
readonly selectedRepositoryIds: pulumi.Output<number[] | undefined>;
|
|
88
|
+
/**
|
|
89
|
+
* Date of actionsSecret update.
|
|
90
|
+
*/
|
|
23
91
|
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
|
+
*/
|
|
24
96
|
readonly visibility: pulumi.Output<string>;
|
|
25
97
|
/**
|
|
26
98
|
* Create a ActionsOrganizationSecret resource with the given unique name, arguments, and options.
|
|
@@ -35,21 +107,59 @@ export declare class ActionsOrganizationSecret extends pulumi.CustomResource {
|
|
|
35
107
|
* Input properties used for looking up and filtering ActionsOrganizationSecret resources.
|
|
36
108
|
*/
|
|
37
109
|
export interface ActionsOrganizationSecretState {
|
|
110
|
+
/**
|
|
111
|
+
* Date of actionsSecret creation.
|
|
112
|
+
*/
|
|
38
113
|
createdAt?: pulumi.Input<string>;
|
|
114
|
+
/**
|
|
115
|
+
* Encrypted value of the secret using the Github public key in Base64 format.
|
|
116
|
+
*/
|
|
39
117
|
encryptedValue?: pulumi.Input<string>;
|
|
118
|
+
/**
|
|
119
|
+
* Plaintext value of the secret to be encrypted
|
|
120
|
+
*/
|
|
40
121
|
plaintextValue?: pulumi.Input<string>;
|
|
122
|
+
/**
|
|
123
|
+
* Name of the secret
|
|
124
|
+
*/
|
|
41
125
|
secretName?: pulumi.Input<string>;
|
|
126
|
+
/**
|
|
127
|
+
* An array of repository ids that can access the organization secret.
|
|
128
|
+
*/
|
|
42
129
|
selectedRepositoryIds?: pulumi.Input<pulumi.Input<number>[]>;
|
|
130
|
+
/**
|
|
131
|
+
* Date of actionsSecret update.
|
|
132
|
+
*/
|
|
43
133
|
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
|
+
*/
|
|
44
138
|
visibility?: pulumi.Input<string>;
|
|
45
139
|
}
|
|
46
140
|
/**
|
|
47
141
|
* The set of arguments for constructing a ActionsOrganizationSecret resource.
|
|
48
142
|
*/
|
|
49
143
|
export interface ActionsOrganizationSecretArgs {
|
|
144
|
+
/**
|
|
145
|
+
* Encrypted value of the secret using the Github public key in Base64 format.
|
|
146
|
+
*/
|
|
50
147
|
encryptedValue?: pulumi.Input<string>;
|
|
148
|
+
/**
|
|
149
|
+
* Plaintext value of the secret to be encrypted
|
|
150
|
+
*/
|
|
51
151
|
plaintextValue?: pulumi.Input<string>;
|
|
152
|
+
/**
|
|
153
|
+
* Name of the secret
|
|
154
|
+
*/
|
|
52
155
|
secretName: pulumi.Input<string>;
|
|
156
|
+
/**
|
|
157
|
+
* An array of repository ids that can access the organization secret.
|
|
158
|
+
*/
|
|
53
159
|
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
|
+
*/
|
|
54
164
|
visibility: pulumi.Input<string>;
|
|
55
165
|
}
|