@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
|
@@ -5,7 +5,79 @@ 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
|
+
*/
|
|
8
58
|
class ActionsOrganizationSecret extends pulumi.CustomResource {
|
|
59
|
+
/**
|
|
60
|
+
* Get an existing ActionsOrganizationSecret resource's state with the given name, ID, and optional extra
|
|
61
|
+
* properties used to qualify the lookup.
|
|
62
|
+
*
|
|
63
|
+
* @param name The _unique_ name of the resulting resource.
|
|
64
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
65
|
+
* @param state Any extra arguments used during the lookup.
|
|
66
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
67
|
+
*/
|
|
68
|
+
static get(name, id, state, opts) {
|
|
69
|
+
return new ActionsOrganizationSecret(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Returns true if the given object is an instance of ActionsOrganizationSecret. This is designed to work even
|
|
73
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
74
|
+
*/
|
|
75
|
+
static isInstance(obj) {
|
|
76
|
+
if (obj === undefined || obj === null) {
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
return obj['__pulumiType'] === ActionsOrganizationSecret.__pulumiType;
|
|
80
|
+
}
|
|
9
81
|
constructor(name, argsOrState, opts) {
|
|
10
82
|
let resourceInputs = {};
|
|
11
83
|
opts = opts || {};
|
|
@@ -27,8 +99,8 @@ class ActionsOrganizationSecret extends pulumi.CustomResource {
|
|
|
27
99
|
if ((!args || args.visibility === undefined) && !opts.urn) {
|
|
28
100
|
throw new Error("Missing required property 'visibility'");
|
|
29
101
|
}
|
|
30
|
-
resourceInputs["encryptedValue"] = args ? args.encryptedValue : undefined;
|
|
31
|
-
resourceInputs["plaintextValue"] = args ? args.plaintextValue : undefined;
|
|
102
|
+
resourceInputs["encryptedValue"] = (args === null || args === void 0 ? void 0 : args.encryptedValue) ? pulumi.secret(args.encryptedValue) : undefined;
|
|
103
|
+
resourceInputs["plaintextValue"] = (args === null || args === void 0 ? void 0 : args.plaintextValue) ? pulumi.secret(args.plaintextValue) : undefined;
|
|
32
104
|
resourceInputs["secretName"] = args ? args.secretName : undefined;
|
|
33
105
|
resourceInputs["selectedRepositoryIds"] = args ? args.selectedRepositoryIds : undefined;
|
|
34
106
|
resourceInputs["visibility"] = args ? args.visibility : undefined;
|
|
@@ -36,30 +108,10 @@ class ActionsOrganizationSecret extends pulumi.CustomResource {
|
|
|
36
108
|
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
37
109
|
}
|
|
38
110
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
111
|
+
const secretOpts = { additionalSecretOutputs: ["encryptedValue", "plaintextValue"] };
|
|
112
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
39
113
|
super(ActionsOrganizationSecret.__pulumiType, name, resourceInputs, opts);
|
|
40
114
|
}
|
|
41
|
-
/**
|
|
42
|
-
* Get an existing ActionsOrganizationSecret resource's state with the given name, ID, and optional extra
|
|
43
|
-
* properties used to qualify the lookup.
|
|
44
|
-
*
|
|
45
|
-
* @param name The _unique_ name of the resulting resource.
|
|
46
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
47
|
-
* @param state Any extra arguments used during the lookup.
|
|
48
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
49
|
-
*/
|
|
50
|
-
static get(name, id, state, opts) {
|
|
51
|
-
return new ActionsOrganizationSecret(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Returns true if the given object is an instance of ActionsOrganizationSecret. This is designed to work even
|
|
55
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
56
|
-
*/
|
|
57
|
-
static isInstance(obj) {
|
|
58
|
-
if (obj === undefined || obj === null) {
|
|
59
|
-
return false;
|
|
60
|
-
}
|
|
61
|
-
return obj['__pulumiType'] === ActionsOrganizationSecret.__pulumiType;
|
|
62
|
-
}
|
|
63
115
|
}
|
|
64
116
|
exports.ActionsOrganizationSecret = ActionsOrganizationSecret;
|
|
65
117
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionsOrganizationSecret.js","sourceRoot":"","sources":["../actionsOrganizationSecret.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,yBAA0B,SAAQ,MAAM,CAAC,cAAc;
|
|
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,SA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AC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAE,CAAC;QACrF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,yBAAyB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9E,CAAC;;AAlGL,8DAmGC;AArFG,gBAAgB;AACO,sCAAY,GAAG,kEAAkE,CAAC"}
|
|
@@ -1,4 +1,33 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource allows you to manage repository allow list for existing GitHub Actions secrets within your GitHub organization.
|
|
4
|
+
* You must have write access to an organization secret to use this resource.
|
|
5
|
+
*
|
|
6
|
+
* This resource is only applicable when `visibility` of the existing organization secret has been set to `selected`.
|
|
7
|
+
*
|
|
8
|
+
* ## Example Usage
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as github from "@pulumi/github";
|
|
13
|
+
*
|
|
14
|
+
* const repo = github.getRepository({
|
|
15
|
+
* fullName: "my-org/repo",
|
|
16
|
+
* });
|
|
17
|
+
* const orgSecretRepos = new github.ActionsOrganizationSecretRepositories("orgSecretRepos", {
|
|
18
|
+
* secretName: "existing_secret_name",
|
|
19
|
+
* selectedRepositoryIds: [repo.then(repo => repo.repoId)],
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* ## Import
|
|
24
|
+
*
|
|
25
|
+
* This resource can be imported using an ID made up of the secret name
|
|
26
|
+
*
|
|
27
|
+
* ```sh
|
|
28
|
+
* $ pulumi import github:index/actionsOrganizationSecretRepositories:ActionsOrganizationSecretRepositories test_secret_repos test_secret_name
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
2
31
|
export declare class ActionsOrganizationSecretRepositories extends pulumi.CustomResource {
|
|
3
32
|
/**
|
|
4
33
|
* Get an existing ActionsOrganizationSecretRepositories resource's state with the given name, ID, and optional extra
|
|
@@ -15,7 +44,13 @@ export declare class ActionsOrganizationSecretRepositories extends pulumi.Custom
|
|
|
15
44
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
16
45
|
*/
|
|
17
46
|
static isInstance(obj: any): obj is ActionsOrganizationSecretRepositories;
|
|
47
|
+
/**
|
|
48
|
+
* Name of the existing secret
|
|
49
|
+
*/
|
|
18
50
|
readonly secretName: pulumi.Output<string>;
|
|
51
|
+
/**
|
|
52
|
+
* An array of repository ids that can access the organization secret.
|
|
53
|
+
*/
|
|
19
54
|
readonly selectedRepositoryIds: pulumi.Output<number[]>;
|
|
20
55
|
/**
|
|
21
56
|
* Create a ActionsOrganizationSecretRepositories resource with the given unique name, arguments, and options.
|
|
@@ -30,13 +65,25 @@ export declare class ActionsOrganizationSecretRepositories extends pulumi.Custom
|
|
|
30
65
|
* Input properties used for looking up and filtering ActionsOrganizationSecretRepositories resources.
|
|
31
66
|
*/
|
|
32
67
|
export interface ActionsOrganizationSecretRepositoriesState {
|
|
68
|
+
/**
|
|
69
|
+
* Name of the existing secret
|
|
70
|
+
*/
|
|
33
71
|
secretName?: pulumi.Input<string>;
|
|
72
|
+
/**
|
|
73
|
+
* An array of repository ids that can access the organization secret.
|
|
74
|
+
*/
|
|
34
75
|
selectedRepositoryIds?: pulumi.Input<pulumi.Input<number>[]>;
|
|
35
76
|
}
|
|
36
77
|
/**
|
|
37
78
|
* The set of arguments for constructing a ActionsOrganizationSecretRepositories resource.
|
|
38
79
|
*/
|
|
39
80
|
export interface ActionsOrganizationSecretRepositoriesArgs {
|
|
81
|
+
/**
|
|
82
|
+
* Name of the existing secret
|
|
83
|
+
*/
|
|
40
84
|
secretName: pulumi.Input<string>;
|
|
85
|
+
/**
|
|
86
|
+
* An array of repository ids that can access the organization secret.
|
|
87
|
+
*/
|
|
41
88
|
selectedRepositoryIds: pulumi.Input<pulumi.Input<number>[]>;
|
|
42
89
|
}
|
|
@@ -5,29 +5,36 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.ActionsOrganizationSecretRepositories = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource allows you to manage repository allow list for existing GitHub Actions secrets within your GitHub organization.
|
|
10
|
+
* You must have write access to an organization secret to use this resource.
|
|
11
|
+
*
|
|
12
|
+
* This resource is only applicable when `visibility` of the existing organization secret has been set to `selected`.
|
|
13
|
+
*
|
|
14
|
+
* ## Example Usage
|
|
15
|
+
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as github from "@pulumi/github";
|
|
19
|
+
*
|
|
20
|
+
* const repo = github.getRepository({
|
|
21
|
+
* fullName: "my-org/repo",
|
|
22
|
+
* });
|
|
23
|
+
* const orgSecretRepos = new github.ActionsOrganizationSecretRepositories("orgSecretRepos", {
|
|
24
|
+
* secretName: "existing_secret_name",
|
|
25
|
+
* selectedRepositoryIds: [repo.then(repo => repo.repoId)],
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* ## Import
|
|
30
|
+
*
|
|
31
|
+
* This resource can be imported using an ID made up of the secret name
|
|
32
|
+
*
|
|
33
|
+
* ```sh
|
|
34
|
+
* $ pulumi import github:index/actionsOrganizationSecretRepositories:ActionsOrganizationSecretRepositories test_secret_repos test_secret_name
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
8
37
|
class ActionsOrganizationSecretRepositories extends pulumi.CustomResource {
|
|
9
|
-
constructor(name, argsOrState, opts) {
|
|
10
|
-
let resourceInputs = {};
|
|
11
|
-
opts = opts || {};
|
|
12
|
-
if (opts.id) {
|
|
13
|
-
const state = argsOrState;
|
|
14
|
-
resourceInputs["secretName"] = state ? state.secretName : undefined;
|
|
15
|
-
resourceInputs["selectedRepositoryIds"] = state ? state.selectedRepositoryIds : undefined;
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
const args = argsOrState;
|
|
19
|
-
if ((!args || args.secretName === undefined) && !opts.urn) {
|
|
20
|
-
throw new Error("Missing required property 'secretName'");
|
|
21
|
-
}
|
|
22
|
-
if ((!args || args.selectedRepositoryIds === undefined) && !opts.urn) {
|
|
23
|
-
throw new Error("Missing required property 'selectedRepositoryIds'");
|
|
24
|
-
}
|
|
25
|
-
resourceInputs["secretName"] = args ? args.secretName : undefined;
|
|
26
|
-
resourceInputs["selectedRepositoryIds"] = args ? args.selectedRepositoryIds : undefined;
|
|
27
|
-
}
|
|
28
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
29
|
-
super(ActionsOrganizationSecretRepositories.__pulumiType, name, resourceInputs, opts);
|
|
30
|
-
}
|
|
31
38
|
/**
|
|
32
39
|
* Get an existing ActionsOrganizationSecretRepositories resource's state with the given name, ID, and optional extra
|
|
33
40
|
* properties used to qualify the lookup.
|
|
@@ -50,6 +57,28 @@ class ActionsOrganizationSecretRepositories extends pulumi.CustomResource {
|
|
|
50
57
|
}
|
|
51
58
|
return obj['__pulumiType'] === ActionsOrganizationSecretRepositories.__pulumiType;
|
|
52
59
|
}
|
|
60
|
+
constructor(name, argsOrState, opts) {
|
|
61
|
+
let resourceInputs = {};
|
|
62
|
+
opts = opts || {};
|
|
63
|
+
if (opts.id) {
|
|
64
|
+
const state = argsOrState;
|
|
65
|
+
resourceInputs["secretName"] = state ? state.secretName : undefined;
|
|
66
|
+
resourceInputs["selectedRepositoryIds"] = state ? state.selectedRepositoryIds : undefined;
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
const args = argsOrState;
|
|
70
|
+
if ((!args || args.secretName === undefined) && !opts.urn) {
|
|
71
|
+
throw new Error("Missing required property 'secretName'");
|
|
72
|
+
}
|
|
73
|
+
if ((!args || args.selectedRepositoryIds === undefined) && !opts.urn) {
|
|
74
|
+
throw new Error("Missing required property 'selectedRepositoryIds'");
|
|
75
|
+
}
|
|
76
|
+
resourceInputs["secretName"] = args ? args.secretName : undefined;
|
|
77
|
+
resourceInputs["selectedRepositoryIds"] = args ? args.selectedRepositoryIds : undefined;
|
|
78
|
+
}
|
|
79
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
80
|
+
super(ActionsOrganizationSecretRepositories.__pulumiType, name, resourceInputs, opts);
|
|
81
|
+
}
|
|
53
82
|
}
|
|
54
83
|
exports.ActionsOrganizationSecretRepositories = ActionsOrganizationSecretRepositories;
|
|
55
84
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionsOrganizationSecretRepositories.js","sourceRoot":"","sources":["../actionsOrganizationSecretRepositories.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,qCAAsC,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"actionsOrganizationSecretRepositories.js","sourceRoot":"","sources":["../actionsOrganizationSecretRepositories.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAa,qCAAsC,SAAQ,MAAM,CAAC,cAAc;IAC5E;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,E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AAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3F;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,qCAAqC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1F,CAAC;;AAjEL,sFAkEC;AApDG,gBAAgB;AACO,kDAAY,GAAG,0FAA0F,CAAC"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* This resource allows you to enable and manage GitHub Actions permissions for a given repository.
|
|
6
|
+
* You must have admin access to an repository 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.ActionsRepositoryPermissions("test", {
|
|
16
|
+
* allowedActions: "selected",
|
|
17
|
+
* allowedActionsConfig: {
|
|
18
|
+
* githubOwnedAllowed: true,
|
|
19
|
+
* patternsAlloweds: [
|
|
20
|
+
* "actions/cache@*",
|
|
21
|
+
* "actions/checkout@*",
|
|
22
|
+
* ],
|
|
23
|
+
* verifiedAllowed: true,
|
|
24
|
+
* },
|
|
25
|
+
* repository: example.name,
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* ## Import
|
|
30
|
+
*
|
|
31
|
+
* This resource can be imported using the name of the GitHub repository
|
|
32
|
+
*
|
|
33
|
+
* ```sh
|
|
34
|
+
* $ pulumi import github:index/actionsRepositoryPermissions:ActionsRepositoryPermissions test <github_repository_name>
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare class ActionsRepositoryPermissions extends pulumi.CustomResource {
|
|
38
|
+
/**
|
|
39
|
+
* Get an existing ActionsRepositoryPermissions resource's state with the given name, ID, and optional extra
|
|
40
|
+
* properties used to qualify the lookup.
|
|
41
|
+
*
|
|
42
|
+
* @param name The _unique_ name of the resulting resource.
|
|
43
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
44
|
+
* @param state Any extra arguments used during the lookup.
|
|
45
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
46
|
+
*/
|
|
47
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ActionsRepositoryPermissionsState, opts?: pulumi.CustomResourceOptions): ActionsRepositoryPermissions;
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of ActionsRepositoryPermissions. This is designed to work even
|
|
50
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
|
+
*/
|
|
52
|
+
static isInstance(obj: any): obj is ActionsRepositoryPermissions;
|
|
53
|
+
/**
|
|
54
|
+
* The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `localOnly`, or `selected`.
|
|
55
|
+
*/
|
|
56
|
+
readonly allowedActions: pulumi.Output<string | undefined>;
|
|
57
|
+
/**
|
|
58
|
+
* Sets the actions that are allowed in an repository. Only available when `allowedActions` = `selected`. See Allowed Actions Config below for details.
|
|
59
|
+
*/
|
|
60
|
+
readonly allowedActionsConfig: pulumi.Output<outputs.ActionsRepositoryPermissionsAllowedActionsConfig | undefined>;
|
|
61
|
+
/**
|
|
62
|
+
* Should GitHub actions be enabled on this repository?
|
|
63
|
+
*/
|
|
64
|
+
readonly enabled: pulumi.Output<boolean | undefined>;
|
|
65
|
+
/**
|
|
66
|
+
* The GitHub repository
|
|
67
|
+
*/
|
|
68
|
+
readonly repository: pulumi.Output<string>;
|
|
69
|
+
/**
|
|
70
|
+
* Create a ActionsRepositoryPermissions resource with the given unique name, arguments, and options.
|
|
71
|
+
*
|
|
72
|
+
* @param name The _unique_ name of the resource.
|
|
73
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
74
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
75
|
+
*/
|
|
76
|
+
constructor(name: string, args: ActionsRepositoryPermissionsArgs, opts?: pulumi.CustomResourceOptions);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Input properties used for looking up and filtering ActionsRepositoryPermissions resources.
|
|
80
|
+
*/
|
|
81
|
+
export interface ActionsRepositoryPermissionsState {
|
|
82
|
+
/**
|
|
83
|
+
* The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `localOnly`, or `selected`.
|
|
84
|
+
*/
|
|
85
|
+
allowedActions?: pulumi.Input<string>;
|
|
86
|
+
/**
|
|
87
|
+
* Sets the actions that are allowed in an repository. Only available when `allowedActions` = `selected`. See Allowed Actions Config below for details.
|
|
88
|
+
*/
|
|
89
|
+
allowedActionsConfig?: pulumi.Input<inputs.ActionsRepositoryPermissionsAllowedActionsConfig>;
|
|
90
|
+
/**
|
|
91
|
+
* Should GitHub actions be enabled on this repository?
|
|
92
|
+
*/
|
|
93
|
+
enabled?: pulumi.Input<boolean>;
|
|
94
|
+
/**
|
|
95
|
+
* The GitHub repository
|
|
96
|
+
*/
|
|
97
|
+
repository?: pulumi.Input<string>;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* The set of arguments for constructing a ActionsRepositoryPermissions resource.
|
|
101
|
+
*/
|
|
102
|
+
export interface ActionsRepositoryPermissionsArgs {
|
|
103
|
+
/**
|
|
104
|
+
* The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `localOnly`, or `selected`.
|
|
105
|
+
*/
|
|
106
|
+
allowedActions?: pulumi.Input<string>;
|
|
107
|
+
/**
|
|
108
|
+
* Sets the actions that are allowed in an repository. Only available when `allowedActions` = `selected`. See Allowed Actions Config below for details.
|
|
109
|
+
*/
|
|
110
|
+
allowedActionsConfig?: pulumi.Input<inputs.ActionsRepositoryPermissionsAllowedActionsConfig>;
|
|
111
|
+
/**
|
|
112
|
+
* Should GitHub actions be enabled on this repository?
|
|
113
|
+
*/
|
|
114
|
+
enabled?: pulumi.Input<boolean>;
|
|
115
|
+
/**
|
|
116
|
+
* The GitHub repository
|
|
117
|
+
*/
|
|
118
|
+
repository: pulumi.Input<string>;
|
|
119
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.ActionsRepositoryPermissions = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource allows you to enable and manage GitHub Actions permissions for a given repository.
|
|
10
|
+
* You must have admin access to an repository 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.ActionsRepositoryPermissions("test", {
|
|
20
|
+
* allowedActions: "selected",
|
|
21
|
+
* allowedActionsConfig: {
|
|
22
|
+
* githubOwnedAllowed: true,
|
|
23
|
+
* patternsAlloweds: [
|
|
24
|
+
* "actions/cache@*",
|
|
25
|
+
* "actions/checkout@*",
|
|
26
|
+
* ],
|
|
27
|
+
* verifiedAllowed: true,
|
|
28
|
+
* },
|
|
29
|
+
* repository: example.name,
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* ## Import
|
|
34
|
+
*
|
|
35
|
+
* This resource can be imported using the name of the GitHub repository
|
|
36
|
+
*
|
|
37
|
+
* ```sh
|
|
38
|
+
* $ pulumi import github:index/actionsRepositoryPermissions:ActionsRepositoryPermissions test <github_repository_name>
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
class ActionsRepositoryPermissions extends pulumi.CustomResource {
|
|
42
|
+
/**
|
|
43
|
+
* Get an existing ActionsRepositoryPermissions resource's state with the given name, ID, and optional extra
|
|
44
|
+
* properties used to qualify the lookup.
|
|
45
|
+
*
|
|
46
|
+
* @param name The _unique_ name of the resulting resource.
|
|
47
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
48
|
+
* @param state Any extra arguments used during the lookup.
|
|
49
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
50
|
+
*/
|
|
51
|
+
static get(name, id, state, opts) {
|
|
52
|
+
return new ActionsRepositoryPermissions(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Returns true if the given object is an instance of ActionsRepositoryPermissions. This is designed to work even
|
|
56
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
57
|
+
*/
|
|
58
|
+
static isInstance(obj) {
|
|
59
|
+
if (obj === undefined || obj === null) {
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
return obj['__pulumiType'] === ActionsRepositoryPermissions.__pulumiType;
|
|
63
|
+
}
|
|
64
|
+
constructor(name, argsOrState, opts) {
|
|
65
|
+
let resourceInputs = {};
|
|
66
|
+
opts = opts || {};
|
|
67
|
+
if (opts.id) {
|
|
68
|
+
const state = argsOrState;
|
|
69
|
+
resourceInputs["allowedActions"] = state ? state.allowedActions : undefined;
|
|
70
|
+
resourceInputs["allowedActionsConfig"] = state ? state.allowedActionsConfig : undefined;
|
|
71
|
+
resourceInputs["enabled"] = state ? state.enabled : undefined;
|
|
72
|
+
resourceInputs["repository"] = state ? state.repository : undefined;
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
const args = argsOrState;
|
|
76
|
+
if ((!args || args.repository === undefined) && !opts.urn) {
|
|
77
|
+
throw new Error("Missing required property 'repository'");
|
|
78
|
+
}
|
|
79
|
+
resourceInputs["allowedActions"] = args ? args.allowedActions : undefined;
|
|
80
|
+
resourceInputs["allowedActionsConfig"] = args ? args.allowedActionsConfig : undefined;
|
|
81
|
+
resourceInputs["enabled"] = args ? args.enabled : undefined;
|
|
82
|
+
resourceInputs["repository"] = args ? args.repository : undefined;
|
|
83
|
+
}
|
|
84
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
85
|
+
super(ActionsRepositoryPermissions.__pulumiType, name, resourceInputs, opts);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.ActionsRepositoryPermissions = ActionsRepositoryPermissions;
|
|
89
|
+
/** @internal */
|
|
90
|
+
ActionsRepositoryPermissions.__pulumiType = 'github:index/actionsRepositoryPermissions:ActionsRepositoryPermissions';
|
|
91
|
+
//# sourceMappingURL=actionsRepositoryPermissions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actionsRepositoryPermissions.js","sourceRoot":"","sources":["../actionsRepositoryPermissions.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;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,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnF,CAA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IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC;YACtF,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;SACrE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,4BAA4B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjF,CAAC;;AA1EL,oEA2EC;AA7DG,gBAAgB;AACO,yCAAY,GAAG,wEAAwE,CAAC"}
|
package/actionsRunnerGroup.d.ts
CHANGED
|
@@ -1,4 +1,29 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource allows you to create and manage GitHub Actions runner groups within your GitHub enterprise organizations.
|
|
4
|
+
* You must have admin access to an organization to use this resource.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as github from "@pulumi/github";
|
|
11
|
+
*
|
|
12
|
+
* const exampleRepository = new github.Repository("exampleRepository", {});
|
|
13
|
+
* const exampleActionsRunnerGroup = new github.ActionsRunnerGroup("exampleActionsRunnerGroup", {
|
|
14
|
+
* visibility: "selected",
|
|
15
|
+
* selectedRepositoryIds: [exampleRepository.repoId],
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* ## Import
|
|
20
|
+
*
|
|
21
|
+
* This resource can be imported using the ID of the runner group
|
|
22
|
+
*
|
|
23
|
+
* ```sh
|
|
24
|
+
* $ pulumi import github:index/actionsRunnerGroup:ActionsRunnerGroup test 7
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
2
27
|
export declare class ActionsRunnerGroup extends pulumi.CustomResource {
|
|
3
28
|
/**
|
|
4
29
|
* Get an existing ActionsRunnerGroup resource's state with the given name, ID, and optional extra
|
|
@@ -15,14 +40,41 @@ export declare class ActionsRunnerGroup extends pulumi.CustomResource {
|
|
|
15
40
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
16
41
|
*/
|
|
17
42
|
static isInstance(obj: any): obj is ActionsRunnerGroup;
|
|
43
|
+
/**
|
|
44
|
+
* Whether public repositories can be added to the runner group
|
|
45
|
+
*/
|
|
18
46
|
readonly allowsPublicRepositories: pulumi.Output<boolean>;
|
|
47
|
+
/**
|
|
48
|
+
* Whether this is the default runner group
|
|
49
|
+
*/
|
|
19
50
|
readonly default: pulumi.Output<boolean>;
|
|
51
|
+
/**
|
|
52
|
+
* An etag representing the runner group object
|
|
53
|
+
*/
|
|
20
54
|
readonly etag: pulumi.Output<string>;
|
|
55
|
+
/**
|
|
56
|
+
* Whether the runner group is inherited from the enterprise level
|
|
57
|
+
*/
|
|
21
58
|
readonly inherited: pulumi.Output<boolean>;
|
|
59
|
+
/**
|
|
60
|
+
* Name of the runner group
|
|
61
|
+
*/
|
|
22
62
|
readonly name: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* The GitHub API URL for the runner group's runners
|
|
65
|
+
*/
|
|
23
66
|
readonly runnersUrl: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* Github API URL for the runner group's repositories
|
|
69
|
+
*/
|
|
24
70
|
readonly selectedRepositoriesUrl: pulumi.Output<string>;
|
|
71
|
+
/**
|
|
72
|
+
* IDs of the repositories which should be added to the runner group
|
|
73
|
+
*/
|
|
25
74
|
readonly selectedRepositoryIds: pulumi.Output<number[] | undefined>;
|
|
75
|
+
/**
|
|
76
|
+
* Visibility of a runner group. Whether the runner group can include `all`, `selected`, or `private` repositories. A value of `private` is not currently supported due to limitations in the GitHub API.
|
|
77
|
+
*/
|
|
26
78
|
readonly visibility: pulumi.Output<string>;
|
|
27
79
|
/**
|
|
28
80
|
* Create a ActionsRunnerGroup resource with the given unique name, arguments, and options.
|
|
@@ -37,21 +89,57 @@ export declare class ActionsRunnerGroup extends pulumi.CustomResource {
|
|
|
37
89
|
* Input properties used for looking up and filtering ActionsRunnerGroup resources.
|
|
38
90
|
*/
|
|
39
91
|
export interface ActionsRunnerGroupState {
|
|
92
|
+
/**
|
|
93
|
+
* Whether public repositories can be added to the runner group
|
|
94
|
+
*/
|
|
40
95
|
allowsPublicRepositories?: pulumi.Input<boolean>;
|
|
96
|
+
/**
|
|
97
|
+
* Whether this is the default runner group
|
|
98
|
+
*/
|
|
41
99
|
default?: pulumi.Input<boolean>;
|
|
100
|
+
/**
|
|
101
|
+
* An etag representing the runner group object
|
|
102
|
+
*/
|
|
42
103
|
etag?: pulumi.Input<string>;
|
|
104
|
+
/**
|
|
105
|
+
* Whether the runner group is inherited from the enterprise level
|
|
106
|
+
*/
|
|
43
107
|
inherited?: pulumi.Input<boolean>;
|
|
108
|
+
/**
|
|
109
|
+
* Name of the runner group
|
|
110
|
+
*/
|
|
44
111
|
name?: pulumi.Input<string>;
|
|
112
|
+
/**
|
|
113
|
+
* The GitHub API URL for the runner group's runners
|
|
114
|
+
*/
|
|
45
115
|
runnersUrl?: pulumi.Input<string>;
|
|
116
|
+
/**
|
|
117
|
+
* Github API URL for the runner group's repositories
|
|
118
|
+
*/
|
|
46
119
|
selectedRepositoriesUrl?: pulumi.Input<string>;
|
|
120
|
+
/**
|
|
121
|
+
* IDs of the repositories which should be added to the runner group
|
|
122
|
+
*/
|
|
47
123
|
selectedRepositoryIds?: pulumi.Input<pulumi.Input<number>[]>;
|
|
124
|
+
/**
|
|
125
|
+
* Visibility of a runner group. Whether the runner group can include `all`, `selected`, or `private` repositories. A value of `private` is not currently supported due to limitations in the GitHub API.
|
|
126
|
+
*/
|
|
48
127
|
visibility?: pulumi.Input<string>;
|
|
49
128
|
}
|
|
50
129
|
/**
|
|
51
130
|
* The set of arguments for constructing a ActionsRunnerGroup resource.
|
|
52
131
|
*/
|
|
53
132
|
export interface ActionsRunnerGroupArgs {
|
|
133
|
+
/**
|
|
134
|
+
* Name of the runner group
|
|
135
|
+
*/
|
|
54
136
|
name?: pulumi.Input<string>;
|
|
137
|
+
/**
|
|
138
|
+
* IDs of the repositories which should be added to the runner group
|
|
139
|
+
*/
|
|
55
140
|
selectedRepositoryIds?: pulumi.Input<pulumi.Input<number>[]>;
|
|
141
|
+
/**
|
|
142
|
+
* Visibility of a runner group. Whether the runner group can include `all`, `selected`, or `private` repositories. A value of `private` is not currently supported due to limitations in the GitHub API.
|
|
143
|
+
*/
|
|
56
144
|
visibility: pulumi.Input<string>;
|
|
57
145
|
}
|