@pulumi/github 6.15.0-alpha.1786702465 → 6.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actionsEnvironmentSecret.d.ts +49 -11
- package/actionsEnvironmentSecret.d.ts.map +1 -1
- package/actionsEnvironmentSecret.js +49 -11
- package/actionsEnvironmentSecret.js.map +1 -1
- package/actionsEnvironmentVariable.d.ts +5 -2
- package/actionsEnvironmentVariable.d.ts.map +1 -1
- package/actionsEnvironmentVariable.js +5 -2
- package/actionsEnvironmentVariable.js.map +1 -1
- package/actionsHostedRunner.d.ts +8 -9
- package/actionsHostedRunner.d.ts.map +1 -1
- package/actionsHostedRunner.js +8 -9
- package/actionsHostedRunner.js.map +1 -1
- package/actionsOrganizationOidcSubjectClaimCustomizationTemplate.d.ts +2 -4
- package/actionsOrganizationOidcSubjectClaimCustomizationTemplate.d.ts.map +1 -1
- package/actionsOrganizationOidcSubjectClaimCustomizationTemplate.js +2 -4
- package/actionsOrganizationOidcSubjectClaimCustomizationTemplate.js.map +1 -1
- package/actionsOrganizationPermissions.d.ts +1 -2
- package/actionsOrganizationPermissions.d.ts.map +1 -1
- package/actionsOrganizationPermissions.js +1 -2
- package/actionsOrganizationPermissions.js.map +1 -1
- package/actionsOrganizationSecret.d.ts +12 -14
- package/actionsOrganizationSecret.d.ts.map +1 -1
- package/actionsOrganizationSecret.js +12 -14
- package/actionsOrganizationSecret.js.map +1 -1
- package/actionsOrganizationSecretRepositories.d.ts +6 -3
- package/actionsOrganizationSecretRepositories.d.ts.map +1 -1
- package/actionsOrganizationSecretRepositories.js +6 -3
- package/actionsOrganizationSecretRepositories.js.map +1 -1
- package/actionsOrganizationSecretRepository.d.ts +6 -3
- package/actionsOrganizationSecretRepository.d.ts.map +1 -1
- package/actionsOrganizationSecretRepository.js +6 -3
- package/actionsOrganizationSecretRepository.js.map +1 -1
- package/actionsOrganizationVariable.d.ts +5 -2
- package/actionsOrganizationVariable.d.ts.map +1 -1
- package/actionsOrganizationVariable.js +5 -2
- package/actionsOrganizationVariable.js.map +1 -1
- package/actionsOrganizationVariableRepositories.d.ts +6 -3
- package/actionsOrganizationVariableRepositories.d.ts.map +1 -1
- package/actionsOrganizationVariableRepositories.js +6 -3
- package/actionsOrganizationVariableRepositories.js.map +1 -1
- package/actionsOrganizationVariableRepository.d.ts +6 -3
- package/actionsOrganizationVariableRepository.d.ts.map +1 -1
- package/actionsOrganizationVariableRepository.js +6 -3
- package/actionsOrganizationVariableRepository.js.map +1 -1
- package/actionsOrganizationWorkflowPermissions.d.ts +2 -2
- package/actionsOrganizationWorkflowPermissions.js +2 -2
- package/actionsRepositoryAccessLevel.d.ts +1 -2
- package/actionsRepositoryAccessLevel.d.ts.map +1 -1
- package/actionsRepositoryAccessLevel.js +1 -2
- package/actionsRepositoryAccessLevel.js.map +1 -1
- package/actionsRepositoryOidcSubjectClaimCustomizationTemplate.d.ts +5 -10
- package/actionsRepositoryOidcSubjectClaimCustomizationTemplate.d.ts.map +1 -1
- package/actionsRepositoryOidcSubjectClaimCustomizationTemplate.js +2 -4
- package/actionsRepositoryOidcSubjectClaimCustomizationTemplate.js.map +1 -1
- package/actionsRepositoryPermissions.d.ts +1 -2
- package/actionsRepositoryPermissions.d.ts.map +1 -1
- package/actionsRepositoryPermissions.js +1 -2
- package/actionsRepositoryPermissions.js.map +1 -1
- package/actionsRunnerGroup.d.ts +1 -2
- package/actionsRunnerGroup.d.ts.map +1 -1
- package/actionsRunnerGroup.js +1 -2
- package/actionsRunnerGroup.js.map +1 -1
- package/actionsSecret.d.ts +10 -12
- package/actionsSecret.d.ts.map +1 -1
- package/actionsSecret.js +10 -12
- package/actionsSecret.js.map +1 -1
- package/actionsVariable.d.ts +5 -2
- package/actionsVariable.d.ts.map +1 -1
- package/actionsVariable.js +5 -2
- package/actionsVariable.js.map +1 -1
- package/appInstallationRepositories.d.ts +21 -8
- package/appInstallationRepositories.d.ts.map +1 -1
- package/appInstallationRepositories.js +21 -8
- package/appInstallationRepositories.js.map +1 -1
- package/appInstallationRepository.d.ts +3 -8
- package/appInstallationRepository.d.ts.map +1 -1
- package/appInstallationRepository.js +3 -8
- package/appInstallationRepository.js.map +1 -1
- package/branch.d.ts +2 -4
- package/branch.d.ts.map +1 -1
- package/branch.js +2 -4
- package/branch.js.map +1 -1
- package/branchDefault.d.ts +43 -18
- package/branchDefault.d.ts.map +1 -1
- package/branchDefault.js +9 -9
- package/branchDefault.js.map +1 -1
- package/codespacesOrganizationSecret.d.ts +6 -26
- package/codespacesOrganizationSecret.d.ts.map +1 -1
- package/codespacesOrganizationSecret.js +3 -20
- package/codespacesOrganizationSecret.js.map +1 -1
- package/codespacesSecret.d.ts +4 -11
- package/codespacesSecret.d.ts.map +1 -1
- package/codespacesSecret.js +4 -11
- package/codespacesSecret.js.map +1 -1
- package/codespacesUserSecret.d.ts +3 -20
- package/codespacesUserSecret.d.ts.map +1 -1
- package/codespacesUserSecret.js +3 -20
- package/codespacesUserSecret.js.map +1 -1
- package/config/vars.d.ts +21 -13
- package/config/vars.d.ts.map +1 -1
- package/config/vars.js +12 -0
- package/config/vars.js.map +1 -1
- package/dependabotOrganizationSecret.d.ts +32 -13
- package/dependabotOrganizationSecret.d.ts.map +1 -1
- package/dependabotOrganizationSecret.js +32 -13
- package/dependabotOrganizationSecret.js.map +1 -1
- package/dependabotOrganizationSecretRepositories.d.ts +6 -3
- package/dependabotOrganizationSecretRepositories.d.ts.map +1 -1
- package/dependabotOrganizationSecretRepositories.js +6 -3
- package/dependabotOrganizationSecretRepositories.js.map +1 -1
- package/dependabotOrganizationSecretRepository.d.ts +6 -3
- package/dependabotOrganizationSecretRepository.d.ts.map +1 -1
- package/dependabotOrganizationSecretRepository.js +6 -3
- package/dependabotOrganizationSecretRepository.js.map +1 -1
- package/dependabotSecret.d.ts +10 -12
- package/dependabotSecret.d.ts.map +1 -1
- package/dependabotSecret.js +10 -12
- package/dependabotSecret.js.map +1 -1
- package/enterpriseActionsPermissions.d.ts +1 -2
- package/enterpriseActionsPermissions.d.ts.map +1 -1
- package/enterpriseActionsPermissions.js +1 -2
- package/enterpriseActionsPermissions.js.map +1 -1
- package/enterpriseActionsRunnerGroup.d.ts +1 -2
- package/enterpriseActionsRunnerGroup.d.ts.map +1 -1
- package/enterpriseActionsRunnerGroup.js +1 -2
- package/enterpriseActionsRunnerGroup.js.map +1 -1
- package/enterpriseActionsWorkflowPermissions.d.ts +1 -8
- package/enterpriseActionsWorkflowPermissions.d.ts.map +1 -1
- package/enterpriseActionsWorkflowPermissions.js +1 -8
- package/enterpriseActionsWorkflowPermissions.js.map +1 -1
- package/enterpriseSecurityAnalysisSettings.d.ts +0 -8
- package/enterpriseSecurityAnalysisSettings.d.ts.map +1 -1
- package/enterpriseSecurityAnalysisSettings.js +0 -8
- package/enterpriseSecurityAnalysisSettings.js.map +1 -1
- package/getActionsEnvironmentPublicKey.d.ts +2 -4
- package/getActionsEnvironmentPublicKey.d.ts.map +1 -1
- package/getActionsEnvironmentPublicKey.js +2 -4
- package/getActionsEnvironmentPublicKey.js.map +1 -1
- package/getActionsOrganizationPublicKey.d.ts +2 -4
- package/getActionsOrganizationPublicKey.d.ts.map +1 -1
- package/getActionsOrganizationPublicKey.js +2 -4
- package/getActionsOrganizationPublicKey.js.map +1 -1
- package/getActionsPublicKey.d.ts +2 -4
- package/getActionsPublicKey.d.ts.map +1 -1
- package/getActionsPublicKey.js +2 -4
- package/getActionsPublicKey.js.map +1 -1
- package/getAppToken.d.ts +10 -10
- package/getAppToken.js +10 -10
- package/getCodespacesOrganizationPublicKey.d.ts +2 -4
- package/getCodespacesOrganizationPublicKey.d.ts.map +1 -1
- package/getCodespacesOrganizationPublicKey.js +2 -4
- package/getCodespacesOrganizationPublicKey.js.map +1 -1
- package/getCodespacesPublicKey.d.ts +2 -4
- package/getCodespacesPublicKey.d.ts.map +1 -1
- package/getCodespacesPublicKey.js +2 -4
- package/getCodespacesPublicKey.js.map +1 -1
- package/getCodespacesUserPublicKey.d.ts +2 -4
- package/getCodespacesUserPublicKey.d.ts.map +1 -1
- package/getCodespacesUserPublicKey.js +2 -4
- package/getCodespacesUserPublicKey.js.map +1 -1
- package/getCollaborators.d.ts +5 -5
- package/getDependabotOrganizationPublicKey.d.ts +2 -4
- package/getDependabotOrganizationPublicKey.d.ts.map +1 -1
- package/getDependabotOrganizationPublicKey.js +2 -4
- package/getDependabotOrganizationPublicKey.js.map +1 -1
- package/getDependabotPublicKey.d.ts +2 -4
- package/getDependabotPublicKey.d.ts.map +1 -1
- package/getDependabotPublicKey.js +2 -4
- package/getDependabotPublicKey.js.map +1 -1
- package/getGithubApp.d.ts +6 -3
- package/getGithubApp.d.ts.map +1 -1
- package/getGithubApp.js +2 -2
- package/getGithubApp.js.map +1 -1
- package/getMembership.d.ts +3 -9
- package/getMembership.d.ts.map +1 -1
- package/getMembership.js +2 -8
- package/getMembership.js.map +1 -1
- package/getOrganizationExternalIdentities.d.ts +2 -4
- package/getOrganizationExternalIdentities.d.ts.map +1 -1
- package/getOrganizationExternalIdentities.js +2 -4
- package/getOrganizationExternalIdentities.js.map +1 -1
- package/getOrganizationIpAllowList.d.ts +2 -7
- package/getOrganizationIpAllowList.d.ts.map +1 -1
- package/getOrganizationIpAllowList.js +2 -6
- package/getOrganizationIpAllowList.js.map +1 -1
- package/getOrganizationSecurityManagers.d.ts +1 -1
- package/getOrganizationTeamSyncGroups.d.ts +1 -1
- package/getOrganizationTeams.d.ts +3 -3
- package/getOrganizationTeams.js +2 -2
- package/getOrganizationWebhooks.d.ts +3 -4
- package/getOrganizationWebhooks.d.ts.map +1 -1
- package/getOrganizationWebhooks.js +2 -2
- package/getOrganizationWebhooks.js.map +1 -1
- package/getReleaseAsset.d.ts +2 -4
- package/getReleaseAsset.d.ts.map +1 -1
- package/getReleaseAsset.js +2 -4
- package/getReleaseAsset.js.map +1 -1
- package/getRepositories.d.ts +2 -4
- package/getRepositories.d.ts.map +1 -1
- package/getRepositories.js +2 -4
- package/getRepositories.js.map +1 -1
- package/getRepositoryDeploymentBranchPolicies.d.ts +2 -2
- package/getRepositoryEnvironments.d.ts +4 -0
- package/getRepositoryEnvironments.d.ts.map +1 -1
- package/getRepositoryEnvironments.js +4 -0
- package/getRepositoryEnvironments.js.map +1 -1
- package/getRepositoryFile.d.ts +2 -4
- package/getRepositoryFile.d.ts.map +1 -1
- package/getRepositoryFile.js +2 -4
- package/getRepositoryFile.js.map +1 -1
- package/getRepositoryWebhooks.d.ts +1 -2
- package/getRepositoryWebhooks.d.ts.map +1 -1
- package/getRepositoryWebhooks.js.map +1 -1
- package/getTeam.d.ts +4 -4
- package/getUserExternalIdentity.d.ts +4 -8
- package/getUserExternalIdentity.d.ts.map +1 -1
- package/getUserExternalIdentity.js +2 -4
- package/getUserExternalIdentity.js.map +1 -1
- package/issue.d.ts +3 -4
- package/issue.d.ts.map +1 -1
- package/issue.js +3 -4
- package/issue.js.map +1 -1
- package/issueLabel.d.ts +4 -9
- package/issueLabel.d.ts.map +1 -1
- package/issueLabel.js +4 -9
- package/issueLabel.js.map +1 -1
- package/issueLabels.d.ts +1 -2
- package/issueLabels.d.ts.map +1 -1
- package/issueLabels.js +1 -2
- package/issueLabels.js.map +1 -1
- package/membership.d.ts +7 -24
- package/membership.d.ts.map +1 -1
- package/membership.js +1 -3
- package/membership.js.map +1 -1
- package/organizationCustomProperties.d.ts +0 -8
- package/organizationCustomProperties.d.ts.map +1 -1
- package/organizationCustomProperties.js +0 -8
- package/organizationCustomProperties.js.map +1 -1
- package/organizationCustomRole.d.ts +1 -2
- package/organizationCustomRole.d.ts.map +1 -1
- package/organizationCustomRole.js +1 -2
- package/organizationCustomRole.js.map +1 -1
- package/organizationRoleTeamAssignment.d.ts +6 -4
- package/organizationRoleTeamAssignment.d.ts.map +1 -1
- package/organizationRoleTeamAssignment.js +6 -4
- package/organizationRoleTeamAssignment.js.map +1 -1
- package/organizationRuleset.d.ts +0 -38
- package/organizationRuleset.d.ts.map +1 -1
- package/organizationRuleset.js +0 -38
- package/organizationRuleset.js.map +1 -1
- package/organizationSecurityManager.d.ts +4 -0
- package/organizationSecurityManager.d.ts.map +1 -1
- package/organizationSecurityManager.js +4 -0
- package/organizationSecurityManager.js.map +1 -1
- package/organizationSettings.d.ts +1 -2
- package/organizationSettings.d.ts.map +1 -1
- package/organizationSettings.js +1 -2
- package/organizationSettings.js.map +1 -1
- package/organizationWebhook.d.ts +1 -2
- package/organizationWebhook.d.ts.map +1 -1
- package/organizationWebhook.js +1 -2
- package/organizationWebhook.js.map +1 -1
- package/package.json +2 -2
- package/projectCard.d.ts +3 -6
- package/projectCard.d.ts.map +1 -1
- package/projectCard.js.map +1 -1
- package/provider.d.ts +33 -19
- package/provider.d.ts.map +1 -1
- package/provider.js +2 -0
- package/provider.js.map +1 -1
- package/release.d.ts +1 -2
- package/release.d.ts.map +1 -1
- package/release.js +1 -2
- package/release.js.map +1 -1
- package/repository.d.ts +13 -29
- package/repository.d.ts.map +1 -1
- package/repository.js +1 -2
- package/repository.js.map +1 -1
- package/repositoryCollaborator.d.ts +15 -30
- package/repositoryCollaborator.d.ts.map +1 -1
- package/repositoryCollaborator.js +4 -13
- package/repositoryCollaborator.js.map +1 -1
- package/repositoryCollaborators.d.ts +51 -32
- package/repositoryCollaborators.d.ts.map +1 -1
- package/repositoryCollaborators.js +31 -16
- package/repositoryCollaborators.js.map +1 -1
- package/repositoryCustomProperty.d.ts +26 -18
- package/repositoryCustomProperty.d.ts.map +1 -1
- package/repositoryCustomProperty.js +8 -6
- package/repositoryCustomProperty.js.map +1 -1
- package/repositoryDependabotSecurityUpdates.d.ts +1 -3
- package/repositoryDependabotSecurityUpdates.d.ts.map +1 -1
- package/repositoryDependabotSecurityUpdates.js +1 -3
- package/repositoryDependabotSecurityUpdates.js.map +1 -1
- package/repositoryDeployKey.d.ts +3 -5
- package/repositoryDeployKey.d.ts.map +1 -1
- package/repositoryDeployKey.js +3 -5
- package/repositoryDeployKey.js.map +1 -1
- package/repositoryDeploymentBranchPolicy.d.ts +4 -0
- package/repositoryDeploymentBranchPolicy.d.ts.map +1 -1
- package/repositoryDeploymentBranchPolicy.js +4 -0
- package/repositoryDeploymentBranchPolicy.js.map +1 -1
- package/repositoryEnvironment.d.ts +6 -0
- package/repositoryEnvironment.d.ts.map +1 -1
- package/repositoryEnvironment.js +6 -0
- package/repositoryEnvironment.js.map +1 -1
- package/repositoryEnvironmentDeploymentPolicy.d.ts +4 -0
- package/repositoryEnvironmentDeploymentPolicy.d.ts.map +1 -1
- package/repositoryEnvironmentDeploymentPolicy.js +4 -0
- package/repositoryEnvironmentDeploymentPolicy.js.map +1 -1
- package/repositoryFile.d.ts +13 -14
- package/repositoryFile.d.ts.map +1 -1
- package/repositoryFile.js +10 -8
- package/repositoryFile.js.map +1 -1
- package/repositoryPages.d.ts +1 -3
- package/repositoryPages.d.ts.map +1 -1
- package/repositoryPages.js +1 -3
- package/repositoryPages.js.map +1 -1
- package/repositoryTopics.d.ts +1 -2
- package/repositoryTopics.d.ts.map +1 -1
- package/repositoryTopics.js +1 -2
- package/repositoryTopics.js.map +1 -1
- package/repositoryVulnerabilityAlerts.d.ts +1 -3
- package/repositoryVulnerabilityAlerts.d.ts.map +1 -1
- package/repositoryVulnerabilityAlerts.js +1 -3
- package/repositoryVulnerabilityAlerts.js.map +1 -1
- package/repositoryWebhook.d.ts +4 -6
- package/repositoryWebhook.d.ts.map +1 -1
- package/repositoryWebhook.js +2 -4
- package/repositoryWebhook.js.map +1 -1
- package/team.d.ts +9 -14
- package/team.d.ts.map +1 -1
- package/team.js +1 -2
- package/team.js.map +1 -1
- package/teamMembers.d.ts +32 -39
- package/teamMembers.d.ts.map +1 -1
- package/teamMembers.js +12 -32
- package/teamMembers.js.map +1 -1
- package/teamMembership.d.ts +4 -10
- package/teamMembership.d.ts.map +1 -1
- package/teamMembership.js +1 -4
- package/teamMembership.js.map +1 -1
- package/teamRepository.d.ts +8 -17
- package/teamRepository.d.ts.map +1 -1
- package/teamRepository.js +5 -11
- package/teamRepository.js.map +1 -1
- package/teamSettings.d.ts +6 -7
- package/teamSettings.d.ts.map +1 -1
- package/teamSettings.js +6 -7
- package/teamSettings.js.map +1 -1
- package/teamSyncGroupMapping.d.ts +5 -16
- package/teamSyncGroupMapping.d.ts.map +1 -1
- package/teamSyncGroupMapping.js +2 -4
- package/teamSyncGroupMapping.js.map +1 -1
- package/types/input.d.ts +23 -39
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +26 -44
- package/types/output.d.ts.map +1 -1
- package/userGpgKey.d.ts +4 -8
- package/userGpgKey.d.ts.map +1 -1
- package/userGpgKey.js +1 -2
- package/userGpgKey.js.map +1 -1
- package/userInvitationAccepter.d.ts +2 -4
- package/userInvitationAccepter.d.ts.map +1 -1
- package/userInvitationAccepter.js +2 -4
- package/userInvitationAccepter.js.map +1 -1
- package/userSshKey.d.ts +1 -1
- package/userSshKey.js +1 -1
- package/workflowRepositoryPermissions.d.ts +1 -2
- package/workflowRepositoryPermissions.d.ts.map +1 -1
- package/workflowRepositoryPermissions.js +1 -2
- package/workflowRepositoryPermissions.js.map +1 -1
package/branchDefault.d.ts
CHANGED
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Configures the default branch for a GitHub repository.
|
|
4
4
|
*
|
|
5
|
-
* This resource
|
|
6
|
-
*
|
|
7
|
-
* Note that use of this resource is incompatible with the `defaultBranch` option of the `github.Repository` resource. Using both will result in plans always showing a diff.
|
|
5
|
+
* > This resource is incompatible with the `defaultBranch` option of the `github.Repository` resource. Using both will result in plans always showing a diff.
|
|
8
6
|
*
|
|
9
7
|
* ## Example Usage
|
|
10
8
|
*
|
|
11
|
-
* Basic usage:
|
|
12
|
-
*
|
|
13
9
|
* ```typescript
|
|
14
10
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
11
|
* import * as github from "@pulumi/github";
|
|
16
12
|
*
|
|
13
|
+
* // Basic usage
|
|
17
14
|
* const example = new github.Repository("example", {
|
|
18
15
|
* name: "example",
|
|
19
16
|
* description: "My awesome codebase",
|
|
@@ -29,12 +26,11 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
29
26
|
* });
|
|
30
27
|
* ```
|
|
31
28
|
*
|
|
32
|
-
* Renaming to a branch that doesn't exist:
|
|
33
|
-
*
|
|
34
29
|
* ```typescript
|
|
35
30
|
* import * as pulumi from "@pulumi/pulumi";
|
|
36
31
|
* import * as github from "@pulumi/github";
|
|
37
32
|
*
|
|
33
|
+
* // Renaming to a branch that doesn't exist
|
|
38
34
|
* const example = new github.Repository("example", {
|
|
39
35
|
* name: "example",
|
|
40
36
|
* description: "My awesome codebase",
|
|
@@ -49,7 +45,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
49
45
|
*
|
|
50
46
|
* ## Import
|
|
51
47
|
*
|
|
52
|
-
*
|
|
48
|
+
* The `pulumi import` command can be used, for example:
|
|
53
49
|
*
|
|
54
50
|
* ```sh
|
|
55
51
|
* $ pulumi import github:index/branchDefault:BranchDefault branch_default my-repo
|
|
@@ -72,18 +68,29 @@ export declare class BranchDefault extends pulumi.CustomResource {
|
|
|
72
68
|
*/
|
|
73
69
|
static isInstance(obj: any): obj is BranchDefault;
|
|
74
70
|
/**
|
|
75
|
-
* The branch (e.g.
|
|
71
|
+
* The name of the branch to set as the default (e.g. 'main').
|
|
76
72
|
*/
|
|
77
73
|
readonly branch: pulumi.Output<string>;
|
|
74
|
+
/**
|
|
75
|
+
* The ETag header for the repository API response.
|
|
76
|
+
*/
|
|
78
77
|
readonly etag: pulumi.Output<string>;
|
|
79
78
|
/**
|
|
80
|
-
*
|
|
79
|
+
* If `true` rename the existing branch when the `branch` input is changed. Defaults to 'false'.
|
|
81
80
|
*/
|
|
82
81
|
readonly rename: pulumi.Output<boolean | undefined>;
|
|
83
82
|
/**
|
|
84
|
-
* The GitHub repository
|
|
83
|
+
* The name of the GitHub repository.
|
|
85
84
|
*/
|
|
86
85
|
readonly repository: pulumi.Output<string>;
|
|
86
|
+
/**
|
|
87
|
+
* The ID of the GitHub repository.
|
|
88
|
+
*/
|
|
89
|
+
readonly repositoryId: pulumi.Output<number>;
|
|
90
|
+
/**
|
|
91
|
+
* If `true`, poll until GitHub propagates the renamed default branch before proceeding. Only has effect when `rename` is also `true`. Defaults to 'false'.
|
|
92
|
+
*/
|
|
93
|
+
readonly waitForRename: pulumi.Output<boolean | undefined>;
|
|
87
94
|
/**
|
|
88
95
|
* Create a BranchDefault resource with the given unique name, arguments, and options.
|
|
89
96
|
*
|
|
@@ -98,35 +105,53 @@ export declare class BranchDefault extends pulumi.CustomResource {
|
|
|
98
105
|
*/
|
|
99
106
|
export interface BranchDefaultState {
|
|
100
107
|
/**
|
|
101
|
-
* The branch (e.g.
|
|
108
|
+
* The name of the branch to set as the default (e.g. 'main').
|
|
102
109
|
*/
|
|
103
110
|
branch?: pulumi.Input<string | undefined>;
|
|
111
|
+
/**
|
|
112
|
+
* The ETag header for the repository API response.
|
|
113
|
+
*/
|
|
104
114
|
etag?: pulumi.Input<string | undefined>;
|
|
105
115
|
/**
|
|
106
|
-
*
|
|
116
|
+
* If `true` rename the existing branch when the `branch` input is changed. Defaults to 'false'.
|
|
107
117
|
*/
|
|
108
118
|
rename?: pulumi.Input<boolean | undefined>;
|
|
109
119
|
/**
|
|
110
|
-
* The GitHub repository
|
|
120
|
+
* The name of the GitHub repository.
|
|
111
121
|
*/
|
|
112
122
|
repository?: pulumi.Input<string | undefined>;
|
|
123
|
+
/**
|
|
124
|
+
* The ID of the GitHub repository.
|
|
125
|
+
*/
|
|
126
|
+
repositoryId?: pulumi.Input<number | undefined>;
|
|
127
|
+
/**
|
|
128
|
+
* If `true`, poll until GitHub propagates the renamed default branch before proceeding. Only has effect when `rename` is also `true`. Defaults to 'false'.
|
|
129
|
+
*/
|
|
130
|
+
waitForRename?: pulumi.Input<boolean | undefined>;
|
|
113
131
|
}
|
|
114
132
|
/**
|
|
115
133
|
* The set of arguments for constructing a BranchDefault resource.
|
|
116
134
|
*/
|
|
117
135
|
export interface BranchDefaultArgs {
|
|
118
136
|
/**
|
|
119
|
-
* The branch (e.g.
|
|
137
|
+
* The name of the branch to set as the default (e.g. 'main').
|
|
120
138
|
*/
|
|
121
139
|
branch: pulumi.Input<string>;
|
|
140
|
+
/**
|
|
141
|
+
* The ETag header for the repository API response.
|
|
142
|
+
*/
|
|
122
143
|
etag?: pulumi.Input<string | undefined>;
|
|
123
144
|
/**
|
|
124
|
-
*
|
|
145
|
+
* If `true` rename the existing branch when the `branch` input is changed. Defaults to 'false'.
|
|
125
146
|
*/
|
|
126
147
|
rename?: pulumi.Input<boolean | undefined>;
|
|
127
148
|
/**
|
|
128
|
-
* The GitHub repository
|
|
149
|
+
* The name of the GitHub repository.
|
|
129
150
|
*/
|
|
130
151
|
repository: pulumi.Input<string>;
|
|
152
|
+
/**
|
|
153
|
+
* If `true`, poll until GitHub propagates the renamed default branch before proceeding. Only has effect when `rename` is also `true`. Defaults to 'false'.
|
|
154
|
+
*/
|
|
155
|
+
waitForRename?: pulumi.Input<boolean | undefined>;
|
|
131
156
|
}
|
|
132
157
|
//# sourceMappingURL=branchDefault.d.ts.map
|
package/branchDefault.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branchDefault.d.ts","sourceRoot":"","sources":["../branchDefault.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC
|
|
1
|
+
{"version":3,"file":"branchDefault.d.ts","sourceRoot":"","sources":["../branchDefault.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,qBAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,E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SAAS,CAAC,CAAC;IAC9C;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAChD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;CACrD;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC3C;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;CACrD"}
|
package/branchDefault.js
CHANGED
|
@@ -29,20 +29,17 @@ exports.BranchDefault = void 0;
|
|
|
29
29
|
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
30
|
const utilities = __importStar(require("./utilities"));
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Configures the default branch for a GitHub repository.
|
|
33
33
|
*
|
|
34
|
-
* This resource
|
|
35
|
-
*
|
|
36
|
-
* Note that use of this resource is incompatible with the `defaultBranch` option of the `github.Repository` resource. Using both will result in plans always showing a diff.
|
|
34
|
+
* > This resource is incompatible with the `defaultBranch` option of the `github.Repository` resource. Using both will result in plans always showing a diff.
|
|
37
35
|
*
|
|
38
36
|
* ## Example Usage
|
|
39
37
|
*
|
|
40
|
-
* Basic usage:
|
|
41
|
-
*
|
|
42
38
|
* ```typescript
|
|
43
39
|
* import * as pulumi from "@pulumi/pulumi";
|
|
44
40
|
* import * as github from "@pulumi/github";
|
|
45
41
|
*
|
|
42
|
+
* // Basic usage
|
|
46
43
|
* const example = new github.Repository("example", {
|
|
47
44
|
* name: "example",
|
|
48
45
|
* description: "My awesome codebase",
|
|
@@ -58,12 +55,11 @@ const utilities = __importStar(require("./utilities"));
|
|
|
58
55
|
* });
|
|
59
56
|
* ```
|
|
60
57
|
*
|
|
61
|
-
* Renaming to a branch that doesn't exist:
|
|
62
|
-
*
|
|
63
58
|
* ```typescript
|
|
64
59
|
* import * as pulumi from "@pulumi/pulumi";
|
|
65
60
|
* import * as github from "@pulumi/github";
|
|
66
61
|
*
|
|
62
|
+
* // Renaming to a branch that doesn't exist
|
|
67
63
|
* const example = new github.Repository("example", {
|
|
68
64
|
* name: "example",
|
|
69
65
|
* description: "My awesome codebase",
|
|
@@ -78,7 +74,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
78
74
|
*
|
|
79
75
|
* ## Import
|
|
80
76
|
*
|
|
81
|
-
*
|
|
77
|
+
* The `pulumi import` command can be used, for example:
|
|
82
78
|
*
|
|
83
79
|
* ```sh
|
|
84
80
|
* $ pulumi import github:index/branchDefault:BranchDefault branch_default my-repo
|
|
@@ -118,6 +114,8 @@ class BranchDefault extends pulumi.CustomResource {
|
|
|
118
114
|
resourceInputs["etag"] = state?.etag;
|
|
119
115
|
resourceInputs["rename"] = state?.rename;
|
|
120
116
|
resourceInputs["repository"] = state?.repository;
|
|
117
|
+
resourceInputs["repositoryId"] = state?.repositoryId;
|
|
118
|
+
resourceInputs["waitForRename"] = state?.waitForRename;
|
|
121
119
|
}
|
|
122
120
|
else {
|
|
123
121
|
const args = argsOrState;
|
|
@@ -131,6 +129,8 @@ class BranchDefault extends pulumi.CustomResource {
|
|
|
131
129
|
resourceInputs["etag"] = args?.etag;
|
|
132
130
|
resourceInputs["rename"] = args?.rename;
|
|
133
131
|
resourceInputs["repository"] = args?.repository;
|
|
132
|
+
resourceInputs["waitForRename"] = args?.waitForRename;
|
|
133
|
+
resourceInputs["repositoryId"] = undefined /*out*/;
|
|
134
134
|
}
|
|
135
135
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
136
136
|
super(BranchDefault.__pulumiType, name, resourceInputs, opts);
|
package/branchDefault.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branchDefault.js","sourceRoot":"","sources":["../branchDefault.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"branchDefault.js","sourceRoot":"","sources":["../branchDefault.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,0CAA0C,CAAC;IAEjF;;;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,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;IAmCD,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI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,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AAzFL,sCA0FC"}
|
|
@@ -1,27 +1,10 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
* This resource allows you to create and manage GitHub Codespaces secrets within your GitHub organization.
|
|
4
|
-
* You must have write access to a repository to use this resource.
|
|
3
|
+
* This resource allows you to create and manage GitHub Codespaces secrets within your GitHub organization. You must have write access to a repository to use this resource.
|
|
5
4
|
*
|
|
6
|
-
* Secret values are encrypted using the [Go '/crypto/box' module](https://godoc.org/golang.org/x/crypto/nacl/box) which is
|
|
7
|
-
* interoperable with [libsodium](https://libsodium.gitbook.io/doc/). Libsodium is used by GitHub to decrypt secret values.
|
|
5
|
+
* Secret values are encrypted using the [Go '/crypto/box' module](https://godoc.org/golang.org/x/crypto/nacl/box) which is interoperable with [libsodium](https://libsodium.gitbook.io/doc/). Libsodium is used by GitHub to decrypt secret values.
|
|
8
6
|
*
|
|
9
|
-
* For the purposes of security, the contents of the `plaintextValue` field have been marked as `sensitive` to Terraform,
|
|
10
|
-
* but it is important to note that **this does not hide it from state files**. You should treat state as sensitive always.
|
|
11
|
-
* It is also advised that you do not store plaintext values in your code but rather populate the `encryptedValue`
|
|
12
|
-
* using fields from a resource, data source or variable as, while encrypted in state, these will be easily accessible
|
|
13
|
-
* in your code. See below for an example of this abstraction.
|
|
14
|
-
*
|
|
15
|
-
* ## Import
|
|
16
|
-
*
|
|
17
|
-
* This resource can be imported using an ID made up of the secret name:
|
|
18
|
-
*
|
|
19
|
-
* ```sh
|
|
20
|
-
* $ pulumi import github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret test_secret test_secret_name
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* NOTE: the implementation is limited in that it won't fetch the value of the
|
|
24
|
-
* `plaintextValue` or `encryptedValue` fields when importing. You may need to ignore changes for these as a workaround.
|
|
7
|
+
* For the purposes of security, the contents of the `plaintextValue` field have been marked as `sensitive` to Terraform, but it is important to note that **this does not hide it from state files**. You should treat state as sensitive always. It is also advised that you do not store plaintext values in your code but rather populate the `encryptedValue` using fields from a resource, data source or variable as, while encrypted in state, these will be easily accessible in your code. See below for an example of this abstraction.
|
|
25
8
|
*/
|
|
26
9
|
export declare class CodespacesOrganizationSecret extends pulumi.CustomResource {
|
|
27
10
|
/**
|
|
@@ -64,8 +47,7 @@ export declare class CodespacesOrganizationSecret extends pulumi.CustomResource
|
|
|
64
47
|
*/
|
|
65
48
|
readonly updatedAt: pulumi.Output<string>;
|
|
66
49
|
/**
|
|
67
|
-
* Configures the access that repositories have to the organization secret.
|
|
68
|
-
* Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
|
|
50
|
+
* Configures the access that repositories have to the organization secret. Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
|
|
69
51
|
*/
|
|
70
52
|
readonly visibility: pulumi.Output<string>;
|
|
71
53
|
/**
|
|
@@ -106,8 +88,7 @@ export interface CodespacesOrganizationSecretState {
|
|
|
106
88
|
*/
|
|
107
89
|
updatedAt?: pulumi.Input<string | undefined>;
|
|
108
90
|
/**
|
|
109
|
-
* Configures the access that repositories have to the organization secret.
|
|
110
|
-
* Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
|
|
91
|
+
* Configures the access that repositories have to the organization secret. Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
|
|
111
92
|
*/
|
|
112
93
|
visibility?: pulumi.Input<string | undefined>;
|
|
113
94
|
}
|
|
@@ -132,8 +113,7 @@ export interface CodespacesOrganizationSecretArgs {
|
|
|
132
113
|
*/
|
|
133
114
|
selectedRepositoryIds?: pulumi.Input<pulumi.Input<number>[] | undefined>;
|
|
134
115
|
/**
|
|
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`.
|
|
116
|
+
* Configures the access that repositories have to the organization secret. Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
|
|
137
117
|
*/
|
|
138
118
|
visibility: pulumi.Input<string>;
|
|
139
119
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codespacesOrganizationSecret.d.ts","sourceRoot":"","sources":["../codespacesOrganizationSecret.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC
|
|
1
|
+
{"version":3,"file":"codespacesOrganizationSecret.d.ts","sourceRoot":"","sources":["../codespacesOrganizationSecret.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;GAMG;AACH,qBAAa,4BAA6B,SAAQ,MAAM,CAAC,cAAc;IACnE;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,iCAAiC,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,4BAA4B;IAO1K;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,4BAA4B;IAOvE;;OAEG;IACH,SAAgC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACjE;;OAEG;IACH,SAAwB,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1E;;OAEG;IACH,SAAwB,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1E;;OAEG;IACH,SAAwB,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC1D;;OAEG;IAC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AAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAClD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IACzE;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACpC"}
|
|
@@ -29,28 +29,11 @@ exports.CodespacesOrganizationSecret = void 0;
|
|
|
29
29
|
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
30
|
const utilities = __importStar(require("./utilities"));
|
|
31
31
|
/**
|
|
32
|
-
* This resource allows you to create and manage GitHub Codespaces secrets within your GitHub organization.
|
|
33
|
-
* You must have write access to a repository to use this resource.
|
|
32
|
+
* This resource allows you to create and manage GitHub Codespaces secrets within your GitHub organization. You must have write access to a repository to use this resource.
|
|
34
33
|
*
|
|
35
|
-
* Secret values are encrypted using the [Go '/crypto/box' module](https://godoc.org/golang.org/x/crypto/nacl/box) which is
|
|
36
|
-
* interoperable with [libsodium](https://libsodium.gitbook.io/doc/). Libsodium is used by GitHub to decrypt secret values.
|
|
34
|
+
* Secret values are encrypted using the [Go '/crypto/box' module](https://godoc.org/golang.org/x/crypto/nacl/box) which is interoperable with [libsodium](https://libsodium.gitbook.io/doc/). Libsodium is used by GitHub to decrypt secret values.
|
|
37
35
|
*
|
|
38
|
-
* For the purposes of security, the contents of the `plaintextValue` field have been marked as `sensitive` to Terraform,
|
|
39
|
-
* but it is important to note that **this does not hide it from state files**. You should treat state as sensitive always.
|
|
40
|
-
* It is also advised that you do not store plaintext values in your code but rather populate the `encryptedValue`
|
|
41
|
-
* using fields from a resource, data source or variable as, while encrypted in state, these will be easily accessible
|
|
42
|
-
* in your code. See below for an example of this abstraction.
|
|
43
|
-
*
|
|
44
|
-
* ## Import
|
|
45
|
-
*
|
|
46
|
-
* This resource can be imported using an ID made up of the secret name:
|
|
47
|
-
*
|
|
48
|
-
* ```sh
|
|
49
|
-
* $ pulumi import github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret test_secret test_secret_name
|
|
50
|
-
* ```
|
|
51
|
-
*
|
|
52
|
-
* NOTE: the implementation is limited in that it won't fetch the value of the
|
|
53
|
-
* `plaintextValue` or `encryptedValue` fields when importing. You may need to ignore changes for these as a workaround.
|
|
36
|
+
* For the purposes of security, the contents of the `plaintextValue` field have been marked as `sensitive` to Terraform, but it is important to note that **this does not hide it from state files**. You should treat state as sensitive always. It is also advised that you do not store plaintext values in your code but rather populate the `encryptedValue` using fields from a resource, data source or variable as, while encrypted in state, these will be easily accessible in your code. See below for an example of this abstraction.
|
|
54
37
|
*/
|
|
55
38
|
class CodespacesOrganizationSecret extends pulumi.CustomResource {
|
|
56
39
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codespacesOrganizationSecret.js","sourceRoot":"","sources":["../codespacesOrganizationSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"codespacesOrganizationSecret.js","sourceRoot":"","sources":["../codespacesOrganizationSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;GAMG;AACH,MAAa,4BAA6B,SAAQ,MAAM,CAAC,cAAc;IACnE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyC,EAAE,IAAmC;QACvI,OAAO,IAAI,4BAA4B,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,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,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACzG,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACzG,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,EAAE,qBAAqB,CAAC;YACtE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,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,4BAA4B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjF,CAAC;;AAjGL,oEAkGC"}
|
package/codespacesSecret.d.ts
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
* This resource allows you to create and manage GitHub Codespaces secrets within your GitHub repositories.
|
|
4
|
-
* You must have write access to a repository to use this resource.
|
|
3
|
+
* This resource allows you to create and manage GitHub Codespaces secrets within your GitHub repositories. You must have write access to a repository to use this resource.
|
|
5
4
|
*
|
|
6
|
-
* Secret values are encrypted using the [Go '/crypto/box' module](https://godoc.org/golang.org/x/crypto/nacl/box) which is
|
|
7
|
-
* interoperable with [libsodium](https://libsodium.gitbook.io/doc/). Libsodium is used by GitHub to decrypt secret values.
|
|
5
|
+
* Secret values are encrypted using the [Go '/crypto/box' module](https://godoc.org/golang.org/x/crypto/nacl/box) which is interoperable with [libsodium](https://libsodium.gitbook.io/doc/). Libsodium is used by GitHub to decrypt secret values.
|
|
8
6
|
*
|
|
9
|
-
* For the purposes of security, the contents of the `plaintextValue` field have been marked as `sensitive` to Terraform,
|
|
10
|
-
* but it is important to note that **this does not hide it from state files**. You should treat state as sensitive always.
|
|
11
|
-
* It is also advised that you do not store plaintext values in your code but rather populate the `encryptedValue`
|
|
12
|
-
* using fields from a resource, data source or variable as, while encrypted in state, these will be easily accessible
|
|
13
|
-
* in your code. See below for an example of this abstraction.
|
|
7
|
+
* For the purposes of security, the contents of the `plaintextValue` field have been marked as `sensitive` to Terraform, but it is important to note that **this does not hide it from state files**. You should treat state as sensitive always. It is also advised that you do not store plaintext values in your code but rather populate the `encryptedValue` using fields from a resource, data source or variable as, while encrypted in state, these will be easily accessible in your code. See below for an example of this abstraction.
|
|
14
8
|
*
|
|
15
9
|
* ## Import
|
|
16
10
|
*
|
|
@@ -20,8 +14,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
20
14
|
* $ pulumi import github:index/codespacesSecret:CodespacesSecret example_secret example_repository/example_secret_name
|
|
21
15
|
* ```
|
|
22
16
|
*
|
|
23
|
-
* NOTE: the implementation is limited in that it won't fetch the value of the
|
|
24
|
-
* `plaintextValue` or `encryptedValue` fields when importing. You may need to ignore changes for these as a workaround.
|
|
17
|
+
* NOTE: the implementation is limited in that it won't fetch the value of the `plaintextValue` or `encryptedValue` fields when importing. You may need to ignore changes for these as a workaround.
|
|
25
18
|
*/
|
|
26
19
|
export declare class CodespacesSecret extends pulumi.CustomResource {
|
|
27
20
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codespacesSecret.d.ts","sourceRoot":"","sources":["../codespacesSecret.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC
|
|
1
|
+
{"version":3,"file":"codespacesSecret.d.ts","sourceRoot":"","sources":["../codespacesSecret.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,qBAAqB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,gBAAgB;IAOlJ;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,gBAAgB;IAO3D;;OAEG;IACH,SAAgC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACjE;;OAEG;IACH,SAAwB,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1E;;OAEG;IACH,SAAwB,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1E;;OAEG;IACH,SAAwB,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC1D;;OAEG;IACH,SAAwB,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC1D;;OAEG;IACH,SAAgC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAEjE;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CAgC5F;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAClD;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAClD;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC9C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC9C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAChD;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAClD;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAClD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACpC"}
|
package/codespacesSecret.js
CHANGED
|
@@ -29,17 +29,11 @@ exports.CodespacesSecret = void 0;
|
|
|
29
29
|
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
30
|
const utilities = __importStar(require("./utilities"));
|
|
31
31
|
/**
|
|
32
|
-
* This resource allows you to create and manage GitHub Codespaces secrets within your GitHub repositories.
|
|
33
|
-
* You must have write access to a repository to use this resource.
|
|
32
|
+
* This resource allows you to create and manage GitHub Codespaces secrets within your GitHub repositories. You must have write access to a repository to use this resource.
|
|
34
33
|
*
|
|
35
|
-
* Secret values are encrypted using the [Go '/crypto/box' module](https://godoc.org/golang.org/x/crypto/nacl/box) which is
|
|
36
|
-
* interoperable with [libsodium](https://libsodium.gitbook.io/doc/). Libsodium is used by GitHub to decrypt secret values.
|
|
34
|
+
* Secret values are encrypted using the [Go '/crypto/box' module](https://godoc.org/golang.org/x/crypto/nacl/box) which is interoperable with [libsodium](https://libsodium.gitbook.io/doc/). Libsodium is used by GitHub to decrypt secret values.
|
|
37
35
|
*
|
|
38
|
-
* For the purposes of security, the contents of the `plaintextValue` field have been marked as `sensitive` to Terraform,
|
|
39
|
-
* but it is important to note that **this does not hide it from state files**. You should treat state as sensitive always.
|
|
40
|
-
* It is also advised that you do not store plaintext values in your code but rather populate the `encryptedValue`
|
|
41
|
-
* using fields from a resource, data source or variable as, while encrypted in state, these will be easily accessible
|
|
42
|
-
* in your code. See below for an example of this abstraction.
|
|
36
|
+
* For the purposes of security, the contents of the `plaintextValue` field have been marked as `sensitive` to Terraform, but it is important to note that **this does not hide it from state files**. You should treat state as sensitive always. It is also advised that you do not store plaintext values in your code but rather populate the `encryptedValue` using fields from a resource, data source or variable as, while encrypted in state, these will be easily accessible in your code. See below for an example of this abstraction.
|
|
43
37
|
*
|
|
44
38
|
* ## Import
|
|
45
39
|
*
|
|
@@ -49,8 +43,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
49
43
|
* $ pulumi import github:index/codespacesSecret:CodespacesSecret example_secret example_repository/example_secret_name
|
|
50
44
|
* ```
|
|
51
45
|
*
|
|
52
|
-
* NOTE: the implementation is limited in that it won't fetch the value of the
|
|
53
|
-
* `plaintextValue` or `encryptedValue` fields when importing. You may need to ignore changes for these as a workaround.
|
|
46
|
+
* NOTE: the implementation is limited in that it won't fetch the value of the `plaintextValue` or `encryptedValue` fields when importing. You may need to ignore changes for these as a workaround.
|
|
54
47
|
*/
|
|
55
48
|
class CodespacesSecret extends pulumi.CustomResource {
|
|
56
49
|
/**
|
package/codespacesSecret.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codespacesSecret.js","sourceRoot":"","sources":["../codespacesSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"codespacesSecret.js","sourceRoot":"","sources":["../codespacesSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACvE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,gDAAgD,CAAC;IAEvF;;;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,gBAAgB,CAAC,YAAY,CAAC;IACjE,CAAC;IAmCD,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,I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AAC,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,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AA3FL,4CA4FC"}
|
|
@@ -1,27 +1,10 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
* This resource allows you to create and manage GitHub Codespaces secrets within your GitHub user.
|
|
4
|
-
* You must have write access to a repository to use this resource.
|
|
3
|
+
* This resource allows you to create and manage GitHub Codespaces secrets within your GitHub user. You must have write access to a repository to use this resource.
|
|
5
4
|
*
|
|
6
|
-
* Secret values are encrypted using the [Go '/crypto/box' module](https://godoc.org/golang.org/x/crypto/nacl/box) which is
|
|
7
|
-
* interoperable with [libsodium](https://libsodium.gitbook.io/doc/). Libsodium is used by GitHub to decrypt secret values.
|
|
5
|
+
* Secret values are encrypted using the [Go '/crypto/box' module](https://godoc.org/golang.org/x/crypto/nacl/box) which is interoperable with [libsodium](https://libsodium.gitbook.io/doc/). Libsodium is used by GitHub to decrypt secret values.
|
|
8
6
|
*
|
|
9
|
-
* For the purposes of security, the contents of the `plaintextValue` field have been marked as `sensitive` to Terraform,
|
|
10
|
-
* but it is important to note that **this does not hide it from state files**. You should treat state as sensitive always.
|
|
11
|
-
* It is also advised that you do not store plaintext values in your code but rather populate the `encryptedValue`
|
|
12
|
-
* using fields from a resource, data source or variable as, while encrypted in state, these will be easily accessible
|
|
13
|
-
* in your code. See below for an example of this abstraction.
|
|
14
|
-
*
|
|
15
|
-
* ## Import
|
|
16
|
-
*
|
|
17
|
-
* This resource can be imported using an ID made up of the secret name:
|
|
18
|
-
*
|
|
19
|
-
* ```sh
|
|
20
|
-
* $ pulumi import github:index/codespacesUserSecret:CodespacesUserSecret test_secret test_secret_name
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* NOTE: the implementation is limited in that it won't fetch the value of the
|
|
24
|
-
* `plaintextValue` or `encryptedValue` fields when importing. You may need to ignore changes for these as a workaround.
|
|
7
|
+
* For the purposes of security, the contents of the `plaintextValue` field have been marked as `sensitive` to Terraform, but it is important to note that **this does not hide it from state files**. You should treat state as sensitive always. It is also advised that you do not store plaintext values in your code but rather populate the `encryptedValue` using fields from a resource, data source or variable as, while encrypted in state, these will be easily accessible in your code. See below for an example of this abstraction.
|
|
25
8
|
*/
|
|
26
9
|
export declare class CodespacesUserSecret extends pulumi.CustomResource {
|
|
27
10
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codespacesUserSecret.d.ts","sourceRoot":"","sources":["../codespacesUserSecret.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC
|
|
1
|
+
{"version":3,"file":"codespacesUserSecret.d.ts","sourceRoot":"","sources":["../codespacesUserSecret.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;GAMG;AACH,qBAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,yBAAyB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,oBAAoB;IAO1J;;;OAGG;WACW,UA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IACzE;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAChD;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAClD;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAClD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;CAC5E"}
|
package/codespacesUserSecret.js
CHANGED
|
@@ -29,28 +29,11 @@ exports.CodespacesUserSecret = void 0;
|
|
|
29
29
|
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
30
|
const utilities = __importStar(require("./utilities"));
|
|
31
31
|
/**
|
|
32
|
-
* This resource allows you to create and manage GitHub Codespaces secrets within your GitHub user.
|
|
33
|
-
* You must have write access to a repository to use this resource.
|
|
32
|
+
* This resource allows you to create and manage GitHub Codespaces secrets within your GitHub user. You must have write access to a repository to use this resource.
|
|
34
33
|
*
|
|
35
|
-
* Secret values are encrypted using the [Go '/crypto/box' module](https://godoc.org/golang.org/x/crypto/nacl/box) which is
|
|
36
|
-
* interoperable with [libsodium](https://libsodium.gitbook.io/doc/). Libsodium is used by GitHub to decrypt secret values.
|
|
34
|
+
* Secret values are encrypted using the [Go '/crypto/box' module](https://godoc.org/golang.org/x/crypto/nacl/box) which is interoperable with [libsodium](https://libsodium.gitbook.io/doc/). Libsodium is used by GitHub to decrypt secret values.
|
|
37
35
|
*
|
|
38
|
-
* For the purposes of security, the contents of the `plaintextValue` field have been marked as `sensitive` to Terraform,
|
|
39
|
-
* but it is important to note that **this does not hide it from state files**. You should treat state as sensitive always.
|
|
40
|
-
* It is also advised that you do not store plaintext values in your code but rather populate the `encryptedValue`
|
|
41
|
-
* using fields from a resource, data source or variable as, while encrypted in state, these will be easily accessible
|
|
42
|
-
* in your code. See below for an example of this abstraction.
|
|
43
|
-
*
|
|
44
|
-
* ## Import
|
|
45
|
-
*
|
|
46
|
-
* This resource can be imported using an ID made up of the secret name:
|
|
47
|
-
*
|
|
48
|
-
* ```sh
|
|
49
|
-
* $ pulumi import github:index/codespacesUserSecret:CodespacesUserSecret test_secret test_secret_name
|
|
50
|
-
* ```
|
|
51
|
-
*
|
|
52
|
-
* NOTE: the implementation is limited in that it won't fetch the value of the
|
|
53
|
-
* `plaintextValue` or `encryptedValue` fields when importing. You may need to ignore changes for these as a workaround.
|
|
36
|
+
* For the purposes of security, the contents of the `plaintextValue` field have been marked as `sensitive` to Terraform, but it is important to note that **this does not hide it from state files**. You should treat state as sensitive always. It is also advised that you do not store plaintext values in your code but rather populate the `encryptedValue` using fields from a resource, data source or variable as, while encrypted in state, these will be easily accessible in your code. See below for an example of this abstraction.
|
|
54
37
|
*/
|
|
55
38
|
class CodespacesUserSecret extends pulumi.CustomResource {
|
|
56
39
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codespacesUserSecret.js","sourceRoot":"","sources":["../codespacesUserSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"codespacesUserSecret.js","sourceRoot":"","sources":["../codespacesUserSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;GAMG;AACH,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;I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;aAC7D;YACD,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACzG,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACzG,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,EAAE,qBAAqB,CAAC;YACtE,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,oBAAoB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;;AAxFL,oDAyFC"}
|
package/config/vars.d.ts
CHANGED
|
@@ -1,54 +1,62 @@
|
|
|
1
1
|
import * as outputs from "../types/output";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Authenticate using a GitHub App.
|
|
4
4
|
*/
|
|
5
5
|
export declare const appAuth: outputs.config.AppAuth | undefined;
|
|
6
6
|
/**
|
|
7
|
-
* The GitHub
|
|
7
|
+
* The base URL for the GitHub API; this defaults to the GitHub API URL. If you are using GitHub Enterprise Server (GHES) or GitHub Enterprise Cloud with Data Residency (GHEC-DR), this is required. This can also be set by the `GITHUB_BASE_URL` environment variable.
|
|
8
8
|
*/
|
|
9
9
|
export declare const baseUrl: string;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* The path to the cache directory for persisting GitHub API requests between runs; if not set there will be no caching between runs. This can also be set by the `GITHUB_CACHE_PATH` environment variable.
|
|
12
|
+
*/
|
|
13
|
+
export declare const cachePath: string | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Allow insecure server connections when using SSL.
|
|
12
16
|
*/
|
|
13
17
|
export declare const insecure: boolean | undefined;
|
|
14
18
|
/**
|
|
15
|
-
*
|
|
19
|
+
* Use the legacy GitHub client implementation; if set to `false`, the new client implementation is used. This can also be set by the `GITHUB_LEGACY_CLIENT` environment variable.
|
|
20
|
+
*/
|
|
21
|
+
export declare const legacyClient: boolean | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* The maximum number of results per page for paginated API requests; this defaults to `100`. This can also be set by the `GITHUB_MAX_PER_PAGE` environment variable.
|
|
16
24
|
*/
|
|
17
25
|
export declare const maxPerPage: number | undefined;
|
|
18
26
|
/**
|
|
19
|
-
*
|
|
27
|
+
* The maximum number of retries for failed requests; this defaults to `3`.
|
|
20
28
|
*/
|
|
21
29
|
export declare const maxRetries: number | undefined;
|
|
22
30
|
/**
|
|
23
|
-
*
|
|
31
|
+
* GitHub organization to manage. This can also be set by the `GITHUB_ORGANIZATION` environment variable.
|
|
24
32
|
*/
|
|
25
33
|
export declare const organization: string | undefined;
|
|
26
34
|
/**
|
|
27
|
-
*
|
|
35
|
+
* GitHub organization or user account to manage; this is required when authenticating using a GitHub App. If the owner is not provided and a token is provided, the provider will attempt to auto-detect the owner associated with the token. This can also be set by the `GITHUB_OWNER` environment variable.
|
|
28
36
|
*/
|
|
29
37
|
export declare const owner: string | undefined;
|
|
30
38
|
/**
|
|
31
|
-
* Allow the provider to make parallel API calls
|
|
39
|
+
* Allow the provider to make parallel API calls; this is experimental and may cause concurrency and rate limiting issues. This is ignored for the REST API when `legacyClient` is `false` since the new client implementation is designed to safely handle parallel requests.
|
|
32
40
|
*/
|
|
33
41
|
export declare const parallelRequests: boolean | undefined;
|
|
34
42
|
/**
|
|
35
|
-
*
|
|
43
|
+
* The delay in milliseconds between read operations; this defaults to `0`. This can be used to mitigate rate limiting issues when performing a large number of read operations. This is ignored for the REST API when `legacyClient` is `false` since the new client implementation is GitHub rate limit aware.
|
|
36
44
|
*/
|
|
37
45
|
export declare const readDelayMs: number | undefined;
|
|
38
46
|
/**
|
|
39
|
-
*
|
|
47
|
+
* The delay in milliseconds between retry attempts; this defaults to `1000`. This setting only applies when `maxRetries` is greater than `0`.
|
|
40
48
|
*/
|
|
41
49
|
export declare const retryDelayMs: number | undefined;
|
|
42
50
|
/**
|
|
43
|
-
*
|
|
51
|
+
* List of HTTP status codes that should be retried; if not set this uses the provider defaults. This setting only applies when `maxRetries` is greater than `0`. This is ignored for the REST API when `legacyClient` is `false` since the new client implementation handles the retry logic.
|
|
44
52
|
*/
|
|
45
53
|
export declare const retryableErrors: number[] | undefined;
|
|
46
54
|
/**
|
|
47
|
-
*
|
|
55
|
+
* GitHub OAuth or Personal Access Token (PAT) to use for authentication. This can also be set by the `GITHUB_TOKEN` environment variable.
|
|
48
56
|
*/
|
|
49
57
|
export declare const token: string | undefined;
|
|
50
58
|
/**
|
|
51
|
-
*
|
|
59
|
+
* The delay in milliseconds between write operations; this defaults to `1000`. This is used to mitigate the GitHub API's abuse rate limits when writing. Note that **ALL** requests to the GraphQL API are implemented as `POST` requests under the hood, so this setting affects those calls as well. This is ignored for the REST API when `legacyClient` is `false` since the new client implementation is GitHub rate limit aware.
|
|
52
60
|
*/
|
|
53
61
|
export declare const writeDelayMs: number | undefined;
|
|
54
62
|
//# sourceMappingURL=vars.d.ts.map
|