@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
package/dependabotSecret.js
CHANGED
|
@@ -6,6 +6,28 @@ exports.DependabotSecret = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
class DependabotSecret extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing DependabotSecret resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param state Any extra arguments used during the lookup.
|
|
16
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
17
|
+
*/
|
|
18
|
+
static get(name, id, state, opts) {
|
|
19
|
+
return new DependabotSecret(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns true if the given object is an instance of DependabotSecret. This is designed to work even
|
|
23
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
24
|
+
*/
|
|
25
|
+
static isInstance(obj) {
|
|
26
|
+
if (obj === undefined || obj === null) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
return obj['__pulumiType'] === DependabotSecret.__pulumiType;
|
|
30
|
+
}
|
|
9
31
|
constructor(name, argsOrState, opts) {
|
|
10
32
|
let resourceInputs = {};
|
|
11
33
|
opts = opts || {};
|
|
@@ -26,38 +48,18 @@ class DependabotSecret extends pulumi.CustomResource {
|
|
|
26
48
|
if ((!args || args.secretName === undefined) && !opts.urn) {
|
|
27
49
|
throw new Error("Missing required property 'secretName'");
|
|
28
50
|
}
|
|
29
|
-
resourceInputs["encryptedValue"] = args ? args.encryptedValue : undefined;
|
|
30
|
-
resourceInputs["plaintextValue"] = args ? args.plaintextValue : undefined;
|
|
51
|
+
resourceInputs["encryptedValue"] = (args === null || args === void 0 ? void 0 : args.encryptedValue) ? pulumi.secret(args.encryptedValue) : undefined;
|
|
52
|
+
resourceInputs["plaintextValue"] = (args === null || args === void 0 ? void 0 : args.plaintextValue) ? pulumi.secret(args.plaintextValue) : undefined;
|
|
31
53
|
resourceInputs["repository"] = args ? args.repository : undefined;
|
|
32
54
|
resourceInputs["secretName"] = args ? args.secretName : undefined;
|
|
33
55
|
resourceInputs["createdAt"] = undefined /*out*/;
|
|
34
56
|
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
35
57
|
}
|
|
36
58
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
59
|
+
const secretOpts = { additionalSecretOutputs: ["encryptedValue", "plaintextValue"] };
|
|
60
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
37
61
|
super(DependabotSecret.__pulumiType, name, resourceInputs, opts);
|
|
38
62
|
}
|
|
39
|
-
/**
|
|
40
|
-
* Get an existing DependabotSecret resource's state with the given name, ID, and optional extra
|
|
41
|
-
* properties used to qualify the lookup.
|
|
42
|
-
*
|
|
43
|
-
* @param name The _unique_ name of the resulting resource.
|
|
44
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
45
|
-
* @param state Any extra arguments used during the lookup.
|
|
46
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
47
|
-
*/
|
|
48
|
-
static get(name, id, state, opts) {
|
|
49
|
-
return new DependabotSecret(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Returns true if the given object is an instance of DependabotSecret. This is designed to work even
|
|
53
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
54
|
-
*/
|
|
55
|
-
static isInstance(obj) {
|
|
56
|
-
if (obj === undefined || obj === null) {
|
|
57
|
-
return false;
|
|
58
|
-
}
|
|
59
|
-
return obj['__pulumiType'] === DependabotSecret.__pulumiType;
|
|
60
|
-
}
|
|
61
63
|
}
|
|
62
64
|
exports.DependabotSecret = DependabotSecret;
|
|
63
65
|
/** @internal */
|
package/dependabotSecret.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dependabotSecret.js","sourceRoot":"","sources":["../dependabotSecret.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"dependabotSecret.js","sourceRoot":"","sources":["../dependabotSecret.ts"],"names":[],"mappings":"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"}
|
package/emuGroupMapping.d.ts
CHANGED
|
@@ -1,4 +1,28 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource manages mappings between external groups for enterprise managed users and GitHub teams. It wraps the API detailed [here](https://docs.github.com/en/rest/reference/teams#external-groups). Note that this is a distinct resource from `github.TeamSyncGroupMapping`. `github.EmuGroupMapping` is special to the Enterprise Managed User (EMU) external group feature, whereas `github.TeamSyncGroupMapping` is specific to Identity Provider Groups.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as github from "@pulumi/github";
|
|
10
|
+
*
|
|
11
|
+
* const exampleEmuGroupMapping = new github.EmuGroupMapping("exampleEmuGroupMapping", {
|
|
12
|
+
* groupId: 28836,
|
|
13
|
+
* teamSlug: "emu-test-team",
|
|
14
|
+
* });
|
|
15
|
+
* // The GitHub team name to modify
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* ## Import
|
|
19
|
+
*
|
|
20
|
+
* GitHub EMU External Group Mappings can be imported using the external `group_id`, e.g.
|
|
21
|
+
*
|
|
22
|
+
* ```sh
|
|
23
|
+
* $ pulumi import github:index/emuGroupMapping:EmuGroupMapping example_emu_group_mapping 28836
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
2
26
|
export declare class EmuGroupMapping extends pulumi.CustomResource {
|
|
3
27
|
/**
|
|
4
28
|
* Get an existing EmuGroupMapping resource's state with the given name, ID, and optional extra
|
|
@@ -16,7 +40,13 @@ export declare class EmuGroupMapping extends pulumi.CustomResource {
|
|
|
16
40
|
*/
|
|
17
41
|
static isInstance(obj: any): obj is EmuGroupMapping;
|
|
18
42
|
readonly etag: pulumi.Output<string>;
|
|
43
|
+
/**
|
|
44
|
+
* Integer corresponding to the external group ID to be linked
|
|
45
|
+
*/
|
|
19
46
|
readonly groupId: pulumi.Output<number>;
|
|
47
|
+
/**
|
|
48
|
+
* Slug of the GitHub team
|
|
49
|
+
*/
|
|
20
50
|
readonly teamSlug: pulumi.Output<string>;
|
|
21
51
|
/**
|
|
22
52
|
* Create a EmuGroupMapping resource with the given unique name, arguments, and options.
|
|
@@ -32,13 +62,25 @@ export declare class EmuGroupMapping extends pulumi.CustomResource {
|
|
|
32
62
|
*/
|
|
33
63
|
export interface EmuGroupMappingState {
|
|
34
64
|
etag?: pulumi.Input<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Integer corresponding to the external group ID to be linked
|
|
67
|
+
*/
|
|
35
68
|
groupId?: pulumi.Input<number>;
|
|
69
|
+
/**
|
|
70
|
+
* Slug of the GitHub team
|
|
71
|
+
*/
|
|
36
72
|
teamSlug?: pulumi.Input<string>;
|
|
37
73
|
}
|
|
38
74
|
/**
|
|
39
75
|
* The set of arguments for constructing a EmuGroupMapping resource.
|
|
40
76
|
*/
|
|
41
77
|
export interface EmuGroupMappingArgs {
|
|
78
|
+
/**
|
|
79
|
+
* Integer corresponding to the external group ID to be linked
|
|
80
|
+
*/
|
|
42
81
|
groupId: pulumi.Input<number>;
|
|
82
|
+
/**
|
|
83
|
+
* Slug of the GitHub team
|
|
84
|
+
*/
|
|
43
85
|
teamSlug: pulumi.Input<string>;
|
|
44
86
|
}
|
package/emuGroupMapping.js
CHANGED
|
@@ -5,7 +5,53 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.EmuGroupMapping = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource manages mappings between external groups for enterprise managed users and GitHub teams. It wraps the API detailed [here](https://docs.github.com/en/rest/reference/teams#external-groups). Note that this is a distinct resource from `github.TeamSyncGroupMapping`. `github.EmuGroupMapping` is special to the Enterprise Managed User (EMU) external group feature, whereas `github.TeamSyncGroupMapping` is specific to Identity Provider Groups.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as github from "@pulumi/github";
|
|
16
|
+
*
|
|
17
|
+
* const exampleEmuGroupMapping = new github.EmuGroupMapping("exampleEmuGroupMapping", {
|
|
18
|
+
* groupId: 28836,
|
|
19
|
+
* teamSlug: "emu-test-team",
|
|
20
|
+
* });
|
|
21
|
+
* // The GitHub team name to modify
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* ## Import
|
|
25
|
+
*
|
|
26
|
+
* GitHub EMU External Group Mappings can be imported using the external `group_id`, e.g.
|
|
27
|
+
*
|
|
28
|
+
* ```sh
|
|
29
|
+
* $ pulumi import github:index/emuGroupMapping:EmuGroupMapping example_emu_group_mapping 28836
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
8
32
|
class EmuGroupMapping extends pulumi.CustomResource {
|
|
33
|
+
/**
|
|
34
|
+
* Get an existing EmuGroupMapping resource's state with the given name, ID, and optional extra
|
|
35
|
+
* properties used to qualify the lookup.
|
|
36
|
+
*
|
|
37
|
+
* @param name The _unique_ name of the resulting resource.
|
|
38
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
39
|
+
* @param state Any extra arguments used during the lookup.
|
|
40
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
41
|
+
*/
|
|
42
|
+
static get(name, id, state, opts) {
|
|
43
|
+
return new EmuGroupMapping(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Returns true if the given object is an instance of EmuGroupMapping. This is designed to work even
|
|
47
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
48
|
+
*/
|
|
49
|
+
static isInstance(obj) {
|
|
50
|
+
if (obj === undefined || obj === null) {
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
return obj['__pulumiType'] === EmuGroupMapping.__pulumiType;
|
|
54
|
+
}
|
|
9
55
|
constructor(name, argsOrState, opts) {
|
|
10
56
|
let resourceInputs = {};
|
|
11
57
|
opts = opts || {};
|
|
@@ -30,28 +76,6 @@ class EmuGroupMapping extends pulumi.CustomResource {
|
|
|
30
76
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
31
77
|
super(EmuGroupMapping.__pulumiType, name, resourceInputs, opts);
|
|
32
78
|
}
|
|
33
|
-
/**
|
|
34
|
-
* Get an existing EmuGroupMapping resource's state with the given name, ID, and optional extra
|
|
35
|
-
* properties used to qualify the lookup.
|
|
36
|
-
*
|
|
37
|
-
* @param name The _unique_ name of the resulting resource.
|
|
38
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
39
|
-
* @param state Any extra arguments used during the lookup.
|
|
40
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
41
|
-
*/
|
|
42
|
-
static get(name, id, state, opts) {
|
|
43
|
-
return new EmuGroupMapping(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Returns true if the given object is an instance of EmuGroupMapping. This is designed to work even
|
|
47
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
48
|
-
*/
|
|
49
|
-
static isInstance(obj) {
|
|
50
|
-
if (obj === undefined || obj === null) {
|
|
51
|
-
return false;
|
|
52
|
-
}
|
|
53
|
-
return obj['__pulumiType'] === EmuGroupMapping.__pulumiType;
|
|
54
|
-
}
|
|
55
79
|
}
|
|
56
80
|
exports.EmuGroupMapping = EmuGroupMapping;
|
|
57
81
|
/** @internal */
|
package/emuGroupMapping.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emuGroupMapping.js","sourceRoot":"","sources":["../emuGroupMapping.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"emuGroupMapping.js","sourceRoot":"","sources":["../emuGroupMapping.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACtE,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,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;IAoBD,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA+C,CAAC;YAC9D,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACnE;aAAM;YACH,MAAM,IAAI,GAAG,WAA8C,CAAC;YAC5D,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACpD,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACrD,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AApEL,0CAqEC;AAvDG,gBAAgB;AACO,4BAAY,GAAG,8CAA8C,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Use this data source to retrieve a GitHub Actions organization registration token. This token can then be used to register a self-hosted runner.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as github from "@pulumi/github";
|
|
10
|
+
*
|
|
11
|
+
* const example = github.getActionsOrganizationRegistrationToken({});
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export declare function getActionsOrganizationRegistrationToken(opts?: pulumi.InvokeOptions): Promise<GetActionsOrganizationRegistrationTokenResult>;
|
|
15
|
+
/**
|
|
16
|
+
* A collection of values returned by getActionsOrganizationRegistrationToken.
|
|
17
|
+
*/
|
|
18
|
+
export interface GetActionsOrganizationRegistrationTokenResult {
|
|
19
|
+
/**
|
|
20
|
+
* The token expiration date.
|
|
21
|
+
*/
|
|
22
|
+
readonly expiresAt: number;
|
|
23
|
+
/**
|
|
24
|
+
* The provider-assigned unique ID for this managed resource.
|
|
25
|
+
*/
|
|
26
|
+
readonly id: string;
|
|
27
|
+
/**
|
|
28
|
+
* The token that has been retrieved.
|
|
29
|
+
*/
|
|
30
|
+
readonly token: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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.getActionsOrganizationRegistrationToken = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Use this data source to retrieve a GitHub Actions organization registration token. This token can then be used to register a self-hosted runner.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as github from "@pulumi/github";
|
|
16
|
+
*
|
|
17
|
+
* const example = github.getActionsOrganizationRegistrationToken({});
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
function getActionsOrganizationRegistrationToken(opts) {
|
|
21
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
22
|
+
return pulumi.runtime.invoke("github:index/getActionsOrganizationRegistrationToken:getActionsOrganizationRegistrationToken", {}, opts);
|
|
23
|
+
}
|
|
24
|
+
exports.getActionsOrganizationRegistrationToken = getActionsOrganizationRegistrationToken;
|
|
25
|
+
//# sourceMappingURL=getActionsOrganizationRegistrationToken.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getActionsOrganizationRegistrationToken.js","sourceRoot":"","sources":["../getActionsOrganizationRegistrationToken.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;GAWG;AACH,SAAgB,uCAAuC,CAAC,IAA2B;IAE/E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8FAA8F,EAAE,EAC5H,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,0FAKC"}
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Use this data source to retrieve the list of secrets of the organization.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as github from "@pulumi/github";
|
|
11
|
+
*
|
|
12
|
+
* const example = github.getActionsOrganizationSecrets({});
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
3
15
|
export declare function getActionsOrganizationSecrets(opts?: pulumi.InvokeOptions): Promise<GetActionsOrganizationSecretsResult>;
|
|
4
16
|
/**
|
|
5
17
|
* A collection of values returned by getActionsOrganizationSecrets.
|
|
@@ -9,5 +21,8 @@ export interface GetActionsOrganizationSecretsResult {
|
|
|
9
21
|
* The provider-assigned unique ID for this managed resource.
|
|
10
22
|
*/
|
|
11
23
|
readonly id: string;
|
|
24
|
+
/**
|
|
25
|
+
* list of secrets for the repository
|
|
26
|
+
*/
|
|
12
27
|
readonly secrets: outputs.GetActionsOrganizationSecretsSecret[];
|
|
13
28
|
}
|
|
@@ -5,11 +5,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.getActionsOrganizationSecrets = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Use this data source to retrieve the list of secrets of the organization.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as github from "@pulumi/github";
|
|
16
|
+
*
|
|
17
|
+
* const example = github.getActionsOrganizationSecrets({});
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
8
20
|
function getActionsOrganizationSecrets(opts) {
|
|
9
|
-
|
|
10
|
-
opts = {};
|
|
11
|
-
}
|
|
12
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
21
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
22
|
return pulumi.runtime.invoke("github:index/getActionsOrganizationSecrets:getActionsOrganizationSecrets", {}, opts);
|
|
14
23
|
}
|
|
15
24
|
exports.getActionsOrganizationSecrets = getActionsOrganizationSecrets;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getActionsOrganizationSecrets.js","sourceRoot":"","sources":["../getActionsOrganizationSecrets.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"getActionsOrganizationSecrets.js","sourceRoot":"","sources":["../getActionsOrganizationSecrets.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;GAWG;AACH,SAAgB,6BAA6B,CAAC,IAA2B;IAErE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0EAA0E,EAAE,EACxG,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,sEAKC"}
|
package/getActionsPublicKey.d.ts
CHANGED
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Use this data source to retrieve information about a GitHub Actions public key. This data source is required to be used with other GitHub secrets interactions.
|
|
4
|
+
* Note that the provider `token` must have admin rights to a repository to retrieve it's action public key.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as github from "@pulumi/github";
|
|
11
|
+
*
|
|
12
|
+
* const example = github.getActionsPublicKey({
|
|
13
|
+
* repository: "example_repo",
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
2
17
|
export declare function getActionsPublicKey(args: GetActionsPublicKeyArgs, opts?: pulumi.InvokeOptions): Promise<GetActionsPublicKeyResult>;
|
|
3
18
|
/**
|
|
4
19
|
* A collection of arguments for invoking getActionsPublicKey.
|
|
5
20
|
*/
|
|
6
21
|
export interface GetActionsPublicKeyArgs {
|
|
22
|
+
/**
|
|
23
|
+
* Name of the repository to get public key from.
|
|
24
|
+
*/
|
|
7
25
|
repository: string;
|
|
8
26
|
}
|
|
9
27
|
/**
|
|
@@ -14,14 +32,38 @@ export interface GetActionsPublicKeyResult {
|
|
|
14
32
|
* The provider-assigned unique ID for this managed resource.
|
|
15
33
|
*/
|
|
16
34
|
readonly id: string;
|
|
35
|
+
/**
|
|
36
|
+
* Actual key retrieved.
|
|
37
|
+
*/
|
|
17
38
|
readonly key: string;
|
|
39
|
+
/**
|
|
40
|
+
* ID of the key that has been retrieved.
|
|
41
|
+
*/
|
|
18
42
|
readonly keyId: string;
|
|
19
43
|
readonly repository: string;
|
|
20
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* Use this data source to retrieve information about a GitHub Actions public key. This data source is required to be used with other GitHub secrets interactions.
|
|
47
|
+
* Note that the provider `token` must have admin rights to a repository to retrieve it's action public key.
|
|
48
|
+
*
|
|
49
|
+
* ## Example Usage
|
|
50
|
+
*
|
|
51
|
+
* ```typescript
|
|
52
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
53
|
+
* import * as github from "@pulumi/github";
|
|
54
|
+
*
|
|
55
|
+
* const example = github.getActionsPublicKey({
|
|
56
|
+
* repository: "example_repo",
|
|
57
|
+
* });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
21
60
|
export declare function getActionsPublicKeyOutput(args: GetActionsPublicKeyOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetActionsPublicKeyResult>;
|
|
22
61
|
/**
|
|
23
62
|
* A collection of arguments for invoking getActionsPublicKey.
|
|
24
63
|
*/
|
|
25
64
|
export interface GetActionsPublicKeyOutputArgs {
|
|
65
|
+
/**
|
|
66
|
+
* Name of the repository to get public key from.
|
|
67
|
+
*/
|
|
26
68
|
repository: pulumi.Input<string>;
|
|
27
69
|
}
|
package/getActionsPublicKey.js
CHANGED
|
@@ -5,18 +5,45 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.getActionsPublicKeyOutput = exports.getActionsPublicKey = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Use this data source to retrieve information about a GitHub Actions public key. This data source is required to be used with other GitHub secrets interactions.
|
|
10
|
+
* Note that the provider `token` must have admin rights to a repository to retrieve it's action public key.
|
|
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 = github.getActionsPublicKey({
|
|
19
|
+
* repository: "example_repo",
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
8
23
|
function getActionsPublicKey(args, opts) {
|
|
9
|
-
|
|
10
|
-
opts = {};
|
|
11
|
-
}
|
|
12
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
24
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
13
25
|
return pulumi.runtime.invoke("github:index/getActionsPublicKey:getActionsPublicKey", {
|
|
14
26
|
"repository": args.repository,
|
|
15
27
|
}, opts);
|
|
16
28
|
}
|
|
17
29
|
exports.getActionsPublicKey = getActionsPublicKey;
|
|
30
|
+
/**
|
|
31
|
+
* Use this data source to retrieve information about a GitHub Actions public key. This data source is required to be used with other GitHub secrets interactions.
|
|
32
|
+
* Note that the provider `token` must have admin rights to a repository to retrieve it's action public key.
|
|
33
|
+
*
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as github from "@pulumi/github";
|
|
39
|
+
*
|
|
40
|
+
* const example = github.getActionsPublicKey({
|
|
41
|
+
* repository: "example_repo",
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
18
45
|
function getActionsPublicKeyOutput(args, opts) {
|
|
19
|
-
return pulumi.output(args).apply(a => getActionsPublicKey(a, opts));
|
|
46
|
+
return pulumi.output(args).apply((a) => getActionsPublicKey(a, opts));
|
|
20
47
|
}
|
|
21
48
|
exports.getActionsPublicKeyOutput = getActionsPublicKeyOutput;
|
|
22
49
|
//# sourceMappingURL=getActionsPublicKey.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getActionsPublicKey.js","sourceRoot":"","sources":["../getActionsPublicKey.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;
|
|
1
|
+
{"version":3,"file":"getActionsPublicKey.js","sourceRoot":"","sources":["../getActionsPublicKey.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAE1F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sDAAsD,EAAE;QACjF,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,kDAMC;AA8BD;;;;;;;;;;;;;;GAcG;AACH,SAAgB,yBAAyB,CAAC,IAAmC,EAAE,IAA2B;IACtG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,mBAAmB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC9E,CAAC;AAFD,8DAEC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Use this data source to retrieve a GitHub Actions repository registration token. This token can then be used to register a self-hosted runner.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as github from "@pulumi/github";
|
|
10
|
+
*
|
|
11
|
+
* const example = github.getActionsRegistrationToken({
|
|
12
|
+
* repository: "example_repo",
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export declare function getActionsRegistrationToken(args: GetActionsRegistrationTokenArgs, opts?: pulumi.InvokeOptions): Promise<GetActionsRegistrationTokenResult>;
|
|
17
|
+
/**
|
|
18
|
+
* A collection of arguments for invoking getActionsRegistrationToken.
|
|
19
|
+
*/
|
|
20
|
+
export interface GetActionsRegistrationTokenArgs {
|
|
21
|
+
/**
|
|
22
|
+
* Name of the repository to get a GitHub Actions registration token for.
|
|
23
|
+
*/
|
|
24
|
+
repository: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A collection of values returned by getActionsRegistrationToken.
|
|
28
|
+
*/
|
|
29
|
+
export interface GetActionsRegistrationTokenResult {
|
|
30
|
+
/**
|
|
31
|
+
* The token expiration date.
|
|
32
|
+
*/
|
|
33
|
+
readonly expiresAt: number;
|
|
34
|
+
/**
|
|
35
|
+
* The provider-assigned unique ID for this managed resource.
|
|
36
|
+
*/
|
|
37
|
+
readonly id: string;
|
|
38
|
+
readonly repository: string;
|
|
39
|
+
/**
|
|
40
|
+
* The token that has been retrieved.
|
|
41
|
+
*/
|
|
42
|
+
readonly token: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Use this data source to retrieve a GitHub Actions repository registration token. This token can then be used to register a self-hosted runner.
|
|
46
|
+
*
|
|
47
|
+
* ## Example Usage
|
|
48
|
+
*
|
|
49
|
+
* ```typescript
|
|
50
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
51
|
+
* import * as github from "@pulumi/github";
|
|
52
|
+
*
|
|
53
|
+
* const example = github.getActionsRegistrationToken({
|
|
54
|
+
* repository: "example_repo",
|
|
55
|
+
* });
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
export declare function getActionsRegistrationTokenOutput(args: GetActionsRegistrationTokenOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetActionsRegistrationTokenResult>;
|
|
59
|
+
/**
|
|
60
|
+
* A collection of arguments for invoking getActionsRegistrationToken.
|
|
61
|
+
*/
|
|
62
|
+
export interface GetActionsRegistrationTokenOutputArgs {
|
|
63
|
+
/**
|
|
64
|
+
* Name of the repository to get a GitHub Actions registration token for.
|
|
65
|
+
*/
|
|
66
|
+
repository: pulumi.Input<string>;
|
|
67
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.getActionsRegistrationTokenOutput = exports.getActionsRegistrationToken = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Use this data source to retrieve a GitHub Actions repository registration token. This token can then be used to register a self-hosted runner.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as github from "@pulumi/github";
|
|
16
|
+
*
|
|
17
|
+
* const example = github.getActionsRegistrationToken({
|
|
18
|
+
* repository: "example_repo",
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
function getActionsRegistrationToken(args, opts) {
|
|
23
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
24
|
+
return pulumi.runtime.invoke("github:index/getActionsRegistrationToken:getActionsRegistrationToken", {
|
|
25
|
+
"repository": args.repository,
|
|
26
|
+
}, opts);
|
|
27
|
+
}
|
|
28
|
+
exports.getActionsRegistrationToken = getActionsRegistrationToken;
|
|
29
|
+
/**
|
|
30
|
+
* Use this data source to retrieve a GitHub Actions repository registration token. This token can then be used to register a self-hosted runner.
|
|
31
|
+
*
|
|
32
|
+
* ## Example Usage
|
|
33
|
+
*
|
|
34
|
+
* ```typescript
|
|
35
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
36
|
+
* import * as github from "@pulumi/github";
|
|
37
|
+
*
|
|
38
|
+
* const example = github.getActionsRegistrationToken({
|
|
39
|
+
* repository: "example_repo",
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
function getActionsRegistrationTokenOutput(args, opts) {
|
|
44
|
+
return pulumi.output(args).apply((a) => getActionsRegistrationToken(a, opts));
|
|
45
|
+
}
|
|
46
|
+
exports.getActionsRegistrationTokenOutput = getActionsRegistrationTokenOutput;
|
|
47
|
+
//# sourceMappingURL=getActionsRegistrationToken.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getActionsRegistrationToken.js","sourceRoot":"","sources":["../getActionsRegistrationToken.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,2BAA2B,CAAC,IAAqC,EAAE,IAA2B;IAE1G,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sEAAsE,EAAE;QACjG,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,kEAMC;AA8BD;;;;;;;;;;;;;GAaG;AACH,SAAgB,iCAAiC,CAAC,IAA2C,EAAE,IAA2B;IACtH,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,2BAA2B,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACtF,CAAC;AAFD,8EAEC"}
|