@pulumi/github 6.0.0-alpha.1709638261 → 6.0.0-alpha.1768023817
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 +0 -37
- package/actionsEnvironmentSecret.js +17 -54
- package/actionsEnvironmentSecret.js.map +1 -1
- package/actionsEnvironmentVariable.d.ts +5 -5
- package/actionsEnvironmentVariable.js +21 -21
- package/actionsEnvironmentVariable.js.map +1 -1
- package/actionsHostedRunner.d.ts +250 -0
- package/actionsHostedRunner.js +158 -0
- package/actionsHostedRunner.js.map +1 -0
- package/actionsOrganizationOidcSubjectClaimCustomizationTemplate.d.ts +2 -2
- package/actionsOrganizationOidcSubjectClaimCustomizationTemplate.js +7 -7
- package/actionsOrganizationOidcSubjectClaimCustomizationTemplate.js.map +1 -1
- package/actionsOrganizationPermissions.d.ts +2 -2
- package/actionsOrganizationPermissions.js +13 -13
- package/actionsOrganizationPermissions.js.map +1 -1
- package/actionsOrganizationSecret.d.ts +6 -39
- package/actionsOrganizationSecret.js +21 -55
- package/actionsOrganizationSecret.js.map +1 -1
- package/actionsOrganizationSecretRepositories.d.ts +2 -2
- package/actionsOrganizationSecretRepositories.js +10 -10
- package/actionsOrganizationSecretRepositories.js.map +1 -1
- package/actionsOrganizationSecretRepository.d.ts +89 -0
- package/actionsOrganizationSecretRepository.js +86 -0
- package/actionsOrganizationSecretRepository.js.map +1 -0
- package/actionsOrganizationVariable.d.ts +4 -4
- package/actionsOrganizationVariable.js +19 -19
- package/actionsOrganizationVariable.js.map +1 -1
- package/actionsRepositoryAccessLevel.d.ts +5 -2
- package/actionsRepositoryAccessLevel.js +13 -10
- package/actionsRepositoryAccessLevel.js.map +1 -1
- package/actionsRepositoryOidcSubjectClaimCustomizationTemplate.d.ts +3 -3
- package/actionsRepositoryOidcSubjectClaimCustomizationTemplate.js +13 -13
- package/actionsRepositoryOidcSubjectClaimCustomizationTemplate.js.map +1 -1
- package/actionsRepositoryPermissions.d.ts +2 -2
- package/actionsRepositoryPermissions.js +13 -13
- package/actionsRepositoryPermissions.js.map +1 -1
- package/actionsRunnerGroup.d.ts +5 -4
- package/actionsRunnerGroup.js +25 -24
- package/actionsRunnerGroup.js.map +1 -1
- package/actionsSecret.d.ts +6 -21
- package/actionsSecret.js +19 -35
- package/actionsSecret.js.map +1 -1
- package/actionsVariable.d.ts +3 -3
- package/actionsVariable.js +16 -16
- package/actionsVariable.js.map +1 -1
- package/appInstallationRepositories.d.ts +3 -2
- package/appInstallationRepositories.js +11 -10
- package/appInstallationRepositories.js.map +1 -1
- package/appInstallationRepository.d.ts +5 -4
- package/appInstallationRepository.js +14 -13
- package/appInstallationRepository.js.map +1 -1
- package/branch.d.ts +11 -6
- package/branch.js +23 -22
- package/branch.js.map +1 -1
- package/branchDefault.d.ts +4 -1
- package/branchDefault.js +15 -13
- package/branchDefault.js.map +1 -1
- package/branchProtection.d.ts +9 -9
- package/branchProtection.js +39 -39
- package/branchProtection.js.map +1 -1
- package/branchProtectionV3.d.ts +58 -1
- package/branchProtectionV3.js +79 -22
- package/branchProtectionV3.js.map +1 -1
- package/codespacesOrganizationSecret.d.ts +2 -39
- package/codespacesOrganizationSecret.js +18 -55
- package/codespacesOrganizationSecret.js.map +1 -1
- package/codespacesOrganizationSecretRepositories.d.ts +2 -2
- package/codespacesOrganizationSecretRepositories.js +10 -10
- package/codespacesOrganizationSecretRepositories.js.map +1 -1
- package/codespacesSecret.d.ts +3 -21
- package/codespacesSecret.js +17 -35
- package/codespacesSecret.js.map +1 -1
- package/codespacesUserSecret.d.ts +2 -21
- package/codespacesUserSecret.js +15 -34
- package/codespacesUserSecret.js.map +1 -1
- package/config/index.js +1 -1
- package/config/index.js.map +1 -1
- package/config/vars.d.ts +8 -9
- package/config/vars.js +9 -5
- package/config/vars.js.map +1 -1
- package/dependabotOrganizationSecret.d.ts +2 -39
- package/dependabotOrganizationSecret.js +18 -55
- package/dependabotOrganizationSecret.js.map +1 -1
- package/dependabotOrganizationSecretRepositories.d.ts +3 -3
- package/dependabotOrganizationSecretRepositories.js +11 -11
- package/dependabotOrganizationSecretRepositories.js.map +1 -1
- package/dependabotSecret.d.ts +3 -21
- package/dependabotSecret.js +17 -35
- package/dependabotSecret.js.map +1 -1
- package/emuGroupMapping.d.ts +3 -4
- package/emuGroupMapping.js +12 -13
- package/emuGroupMapping.js.map +1 -1
- package/enterpriseActionsPermissions.d.ts +137 -0
- package/enterpriseActionsPermissions.js +102 -0
- package/enterpriseActionsPermissions.js.map +1 -0
- package/enterpriseActionsRunnerGroup.d.ts +190 -0
- package/enterpriseActionsRunnerGroup.js +113 -0
- package/enterpriseActionsRunnerGroup.js.map +1 -0
- package/enterpriseActionsWorkflowPermissions.d.ts +113 -0
- package/enterpriseActionsWorkflowPermissions.js +97 -0
- package/enterpriseActionsWorkflowPermissions.js.map +1 -0
- package/enterpriseOrganization.d.ts +11 -2
- package/enterpriseOrganization.js +22 -19
- package/enterpriseOrganization.js.map +1 -1
- package/enterpriseSecurityAnalysisSettings.d.ts +162 -0
- package/enterpriseSecurityAnalysisSettings.js +116 -0
- package/enterpriseSecurityAnalysisSettings.js.map +1 -0
- package/getActionsEnvironmentPublicKey.d.ts +80 -0
- package/getActionsEnvironmentPublicKey.js +56 -0
- package/getActionsEnvironmentPublicKey.js.map +1 -0
- package/getActionsEnvironmentSecrets.d.ts +3 -3
- package/getActionsEnvironmentSecrets.js +9 -4
- package/getActionsEnvironmentSecrets.js.map +1 -1
- package/getActionsEnvironmentVariables.d.ts +3 -3
- package/getActionsEnvironmentVariables.js +9 -4
- package/getActionsEnvironmentVariables.js.map +1 -1
- package/getActionsOrganizationOidcSubjectClaimCustomizationTemplate.d.ts +1 -1
- package/getActionsOrganizationOidcSubjectClaimCustomizationTemplate.js +3 -2
- package/getActionsOrganizationOidcSubjectClaimCustomizationTemplate.js.map +1 -1
- package/getActionsOrganizationPublicKey.d.ts +1 -1
- package/getActionsOrganizationPublicKey.js +3 -2
- package/getActionsOrganizationPublicKey.js.map +1 -1
- package/getActionsOrganizationRegistrationToken.d.ts +1 -1
- package/getActionsOrganizationRegistrationToken.js +3 -2
- package/getActionsOrganizationRegistrationToken.js.map +1 -1
- package/getActionsOrganizationSecrets.d.ts +1 -1
- package/getActionsOrganizationSecrets.js +3 -2
- package/getActionsOrganizationSecrets.js.map +1 -1
- package/getActionsOrganizationVariables.d.ts +1 -1
- package/getActionsOrganizationVariables.js +3 -2
- package/getActionsOrganizationVariables.js.map +1 -1
- package/getActionsPublicKey.d.ts +1 -1
- package/getActionsPublicKey.js +5 -2
- package/getActionsPublicKey.js.map +1 -1
- package/getActionsRegistrationToken.d.ts +1 -1
- package/getActionsRegistrationToken.js +5 -2
- package/getActionsRegistrationToken.js.map +1 -1
- package/getActionsRepositoryOidcSubjectClaimCustomizationTemplate.d.ts +1 -1
- package/getActionsRepositoryOidcSubjectClaimCustomizationTemplate.js +5 -2
- package/getActionsRepositoryOidcSubjectClaimCustomizationTemplate.js.map +1 -1
- package/getActionsSecrets.d.ts +1 -1
- package/getActionsSecrets.js +7 -2
- package/getActionsSecrets.js.map +1 -1
- package/getActionsVariables.d.ts +1 -1
- package/getActionsVariables.js +7 -2
- package/getActionsVariables.js.map +1 -1
- package/getAppToken.d.ts +13 -9
- package/getAppToken.js +19 -10
- package/getAppToken.js.map +1 -1
- package/getBranch.d.ts +3 -3
- package/getBranch.js +8 -4
- package/getBranch.js.map +1 -1
- package/getBranchProtectionRules.d.ts +1 -1
- package/getBranchProtectionRules.js +5 -2
- package/getBranchProtectionRules.js.map +1 -1
- package/getCodespacesOrganizationPublicKey.d.ts +1 -1
- package/getCodespacesOrganizationPublicKey.js +3 -2
- package/getCodespacesOrganizationPublicKey.js.map +1 -1
- package/getCodespacesOrganizationSecrets.d.ts +1 -1
- package/getCodespacesOrganizationSecrets.js +3 -2
- package/getCodespacesOrganizationSecrets.js.map +1 -1
- package/getCodespacesPublicKey.d.ts +1 -1
- package/getCodespacesPublicKey.js +5 -2
- package/getCodespacesPublicKey.js.map +1 -1
- package/getCodespacesSecrets.d.ts +1 -1
- package/getCodespacesSecrets.js +7 -2
- package/getCodespacesSecrets.js.map +1 -1
- package/getCodespacesUserPublicKey.d.ts +1 -1
- package/getCodespacesUserPublicKey.js +3 -2
- package/getCodespacesUserPublicKey.js.map +1 -1
- package/getCodespacesUserSecrets.d.ts +1 -1
- package/getCodespacesUserSecrets.js +3 -2
- package/getCodespacesUserSecrets.js.map +1 -1
- package/getCollaborators.d.ts +13 -1
- package/getCollaborators.js +9 -2
- package/getCollaborators.js.map +1 -1
- package/getDependabotOrganizationPublicKey.d.ts +1 -1
- package/getDependabotOrganizationPublicKey.js +3 -2
- package/getDependabotOrganizationPublicKey.js.map +1 -1
- package/getDependabotOrganizationSecrets.d.ts +1 -1
- package/getDependabotOrganizationSecrets.js +3 -2
- package/getDependabotOrganizationSecrets.js.map +1 -1
- package/getDependabotPublicKey.d.ts +1 -1
- package/getDependabotPublicKey.js +5 -2
- package/getDependabotPublicKey.js.map +1 -1
- package/getDependabotSecrets.d.ts +1 -1
- package/getDependabotSecrets.js +7 -2
- package/getDependabotSecrets.js.map +1 -1
- package/getEnterprise.d.ts +5 -1
- package/getEnterprise.js +5 -2
- package/getEnterprise.js.map +1 -1
- package/getExternalGroups.d.ts +1 -1
- package/getExternalGroups.js +3 -2
- package/getExternalGroups.js.map +1 -1
- package/getGithubApp.d.ts +1 -1
- package/getGithubApp.js +5 -2
- package/getGithubApp.js.map +1 -1
- package/getIpRanges.d.ts +1 -1
- package/getIpRanges.js +3 -2
- package/getIpRanges.js.map +1 -1
- package/getIssueLabels.d.ts +1 -1
- package/getIssueLabels.js +5 -2
- package/getIssueLabels.js.map +1 -1
- package/getMembership.d.ts +1 -1
- package/getMembership.js +6 -2
- package/getMembership.js.map +1 -1
- package/getOrganization.d.ts +14 -5
- package/getOrganization.js +8 -2
- package/getOrganization.js.map +1 -1
- package/getOrganizationCustomProperties.d.ts +134 -0
- package/getOrganizationCustomProperties.js +62 -0
- package/getOrganizationCustomProperties.js.map +1 -0
- package/getOrganizationCustomRole.d.ts +5 -1
- package/getOrganizationCustomRole.js +9 -2
- package/getOrganizationCustomRole.js.map +1 -1
- package/getOrganizationExternalIdentities.d.ts +1 -1
- package/getOrganizationExternalIdentities.js +3 -2
- package/getOrganizationExternalIdentities.js.map +1 -1
- package/getOrganizationIpAllowList.d.ts +1 -1
- package/getOrganizationIpAllowList.js +3 -2
- package/getOrganizationIpAllowList.js.map +1 -1
- package/getOrganizationRepositoryRole.d.ts +82 -0
- package/getOrganizationRepositoryRole.js +54 -0
- package/getOrganizationRepositoryRole.js.map +1 -0
- package/getOrganizationRepositoryRoles.d.ts +65 -0
- package/getOrganizationRepositoryRoles.js +66 -0
- package/getOrganizationRepositoryRoles.js.map +1 -0
- package/getOrganizationRole.d.ts +82 -0
- package/getOrganizationRole.js +50 -0
- package/getOrganizationRole.js.map +1 -0
- package/getOrganizationRoleTeams.d.ts +85 -0
- package/getOrganizationRoleTeams.js +68 -0
- package/getOrganizationRoleTeams.js.map +1 -0
- package/getOrganizationRoleUsers.d.ts +81 -0
- package/getOrganizationRoleUsers.js +64 -0
- package/getOrganizationRoleUsers.js.map +1 -0
- package/getOrganizationRoles.d.ts +63 -0
- package/getOrganizationRoles.js +64 -0
- package/getOrganizationRoles.js.map +1 -0
- package/getOrganizationSecurityManagers.d.ts +45 -0
- package/getOrganizationSecurityManagers.js +46 -0
- package/getOrganizationSecurityManagers.js.map +1 -0
- package/getOrganizationTeamSyncGroups.d.ts +1 -1
- package/getOrganizationTeamSyncGroups.js +3 -2
- package/getOrganizationTeamSyncGroups.js.map +1 -1
- package/getOrganizationTeams.d.ts +1 -1
- package/getOrganizationTeams.js +8 -2
- package/getOrganizationTeams.js.map +1 -1
- package/getOrganizationWebhooks.d.ts +1 -1
- package/getOrganizationWebhooks.js +3 -2
- package/getOrganizationWebhooks.js.map +1 -1
- package/getRef.d.ts +3 -3
- package/getRef.js +9 -4
- package/getRef.js.map +1 -1
- package/getRelease.d.ts +64 -2
- package/getRelease.js +71 -2
- package/getRelease.js.map +1 -1
- package/getRepositories.d.ts +3 -3
- package/getRepositories.js +10 -4
- package/getRepositories.js.map +1 -1
- package/getRepository.d.ts +3 -1
- package/getRepository.js +9 -2
- package/getRepository.js.map +1 -1
- package/getRepositoryAutolinkReferences.d.ts +1 -1
- package/getRepositoryAutolinkReferences.js +5 -2
- package/getRepositoryAutolinkReferences.js.map +1 -1
- package/getRepositoryBranches.d.ts +1 -1
- package/getRepositoryBranches.js +7 -2
- package/getRepositoryBranches.js.map +1 -1
- package/getRepositoryCustomProperties.d.ts +64 -0
- package/getRepositoryCustomProperties.js +50 -0
- package/getRepositoryCustomProperties.js.map +1 -0
- package/getRepositoryDeployKeys.d.ts +1 -1
- package/getRepositoryDeployKeys.js +5 -2
- package/getRepositoryDeployKeys.js.map +1 -1
- package/getRepositoryDeploymentBranchPolicies.d.ts +7 -3
- package/getRepositoryDeploymentBranchPolicies.js +12 -4
- package/getRepositoryDeploymentBranchPolicies.js.map +1 -1
- package/getRepositoryEnvironmentDeploymentPolicies.d.ts +75 -0
- package/getRepositoryEnvironmentDeploymentPolicies.js +54 -0
- package/getRepositoryEnvironmentDeploymentPolicies.js.map +1 -0
- package/getRepositoryEnvironments.d.ts +1 -1
- package/getRepositoryEnvironments.js +5 -2
- package/getRepositoryEnvironments.js.map +1 -1
- package/getRepositoryFile.d.ts +3 -3
- package/getRepositoryFile.js +9 -4
- package/getRepositoryFile.js.map +1 -1
- package/getRepositoryMilestone.d.ts +3 -3
- package/getRepositoryMilestone.js +9 -4
- package/getRepositoryMilestone.js.map +1 -1
- package/getRepositoryPullRequest.d.ts +1 -1
- package/getRepositoryPullRequest.js +7 -2
- package/getRepositoryPullRequest.js.map +1 -1
- package/getRepositoryPullRequests.d.ts +3 -3
- package/getRepositoryPullRequests.js +13 -4
- package/getRepositoryPullRequests.js.map +1 -1
- package/getRepositoryTeams.d.ts +1 -1
- package/getRepositoryTeams.js +7 -2
- package/getRepositoryTeams.js.map +1 -1
- package/getRepositoryWebhooks.d.ts +1 -1
- package/getRepositoryWebhooks.js +5 -2
- package/getRepositoryWebhooks.js.map +1 -1
- package/getRestApi.d.ts +1 -1
- package/getRestApi.js +5 -2
- package/getRestApi.js.map +1 -1
- package/getSshKeys.d.ts +1 -1
- package/getSshKeys.js +3 -2
- package/getSshKeys.js.map +1 -1
- package/getTeam.d.ts +5 -3
- package/getTeam.js +8 -2
- package/getTeam.js.map +1 -1
- package/getTree.d.ts +17 -17
- package/getTree.js +23 -18
- package/getTree.js.map +1 -1
- package/getUser.d.ts +5 -1
- package/getUser.js +9 -2
- package/getUser.js.map +1 -1
- package/getUserExternalIdentity.d.ts +1 -1
- package/getUserExternalIdentity.js +5 -2
- package/getUserExternalIdentity.js.map +1 -1
- package/getUsers.d.ts +3 -1
- package/getUsers.js +7 -2
- package/getUsers.js.map +1 -1
- package/index.d.ts +76 -6
- package/index.js +126 -13
- package/index.js.map +1 -1
- package/issue.d.ts +17 -10
- package/issue.js +36 -29
- package/issue.js.map +1 -1
- package/issueLabel.d.ts +20 -3
- package/issueLabel.js +34 -18
- package/issueLabel.js.map +1 -1
- package/issueLabels.d.ts +5 -16
- package/issueLabels.js +12 -23
- package/issueLabels.js.map +1 -1
- package/membership.d.ts +3 -3
- package/membership.js +13 -13
- package/membership.js.map +1 -1
- package/organizationBlock.d.ts +1 -1
- package/organizationBlock.js +7 -7
- package/organizationBlock.js.map +1 -1
- package/organizationCustomProperties.d.ts +199 -0
- package/organizationCustomProperties.js +143 -0
- package/organizationCustomProperties.js.map +1 -0
- package/organizationCustomRole.d.ts +7 -3
- package/organizationCustomRole.js +19 -15
- package/organizationCustomRole.js.map +1 -1
- package/organizationProject.d.ts +6 -1
- package/organizationProject.js +14 -9
- package/organizationProject.js.map +1 -1
- package/organizationRepositoryRole.d.ts +121 -0
- package/organizationRepositoryRole.js +92 -0
- package/organizationRepositoryRole.js.map +1 -0
- package/organizationRole.d.ts +121 -0
- package/organizationRole.js +89 -0
- package/organizationRole.js.map +1 -0
- package/organizationRoleTeam.d.ts +83 -0
- package/organizationRoleTeam.js +80 -0
- package/organizationRoleTeam.js.map +1 -0
- package/organizationRoleTeamAssignment.d.ts +94 -0
- package/organizationRoleTeamAssignment.js +91 -0
- package/organizationRoleTeamAssignment.js.map +1 -0
- package/organizationRoleUser.d.ts +83 -0
- package/organizationRoleUser.js +80 -0
- package/organizationRoleUser.js.map +1 -0
- package/organizationRuleset.d.ts +92 -3
- package/organizationRuleset.js +109 -20
- package/organizationRuleset.js.map +1 -1
- package/organizationSecurityManager.d.ts +10 -3
- package/organizationSecurityManager.js +15 -8
- package/organizationSecurityManager.js.map +1 -1
- package/organizationSettings.d.ts +18 -16
- package/organizationSettings.js +73 -71
- package/organizationSettings.js.map +1 -1
- package/organizationWebhook.d.ts +22 -3
- package/organizationWebhook.js +33 -14
- package/organizationWebhook.js.map +1 -1
- package/package.json +4 -3
- package/projectCard.d.ts +24 -10
- package/projectCard.js +37 -23
- package/projectCard.js.map +1 -1
- package/projectColumn.d.ts +10 -2
- package/projectColumn.js +19 -11
- package/projectColumn.js.map +1 -1
- package/provider.d.ts +24 -11
- package/provider.js +22 -14
- package/provider.js.map +1 -1
- package/release.d.ts +91 -6
- package/release.js +54 -29
- package/release.js.map +1 -1
- package/repository.d.ts +64 -11
- package/repository.js +110 -88
- package/repository.js.map +1 -1
- package/repositoryAutolinkReference.d.ts +1 -0
- package/repositoryAutolinkReference.js +15 -14
- package/repositoryAutolinkReference.js.map +1 -1
- package/repositoryCollaborator.d.ts +3 -28
- package/repositoryCollaborator.js +16 -41
- package/repositoryCollaborator.js.map +1 -1
- package/repositoryCollaborators.d.ts +28 -38
- package/repositoryCollaborators.js +19 -39
- package/repositoryCollaborators.js.map +1 -1
- package/repositoryCustomProperty.d.ts +115 -0
- package/repositoryCustomProperty.js +98 -0
- package/repositoryCustomProperty.js.map +1 -0
- package/repositoryDependabotSecurityUpdates.d.ts +5 -4
- package/repositoryDependabotSecurityUpdates.js +10 -9
- package/repositoryDependabotSecurityUpdates.js.map +1 -1
- package/repositoryDeployKey.d.ts +6 -16
- package/repositoryDeployKey.js +20 -30
- package/repositoryDeployKey.js.map +1 -1
- package/repositoryDeploymentBranchPolicy.d.ts +10 -1
- package/repositoryDeploymentBranchPolicy.js +18 -13
- package/repositoryDeploymentBranchPolicy.js.map +1 -1
- package/repositoryEnvironment.d.ts +7 -4
- package/repositoryEnvironment.js +25 -22
- package/repositoryEnvironment.js.map +1 -1
- package/repositoryEnvironmentDeploymentPolicy.d.ts +54 -11
- package/repositoryEnvironmentDeploymentPolicy.js +49 -19
- package/repositoryEnvironmentDeploymentPolicy.js.map +1 -1
- package/repositoryFile.d.ts +72 -13
- package/repositoryFile.js +63 -34
- package/repositoryFile.js.map +1 -1
- package/repositoryMilestone.d.ts +1 -1
- package/repositoryMilestone.js +19 -19
- package/repositoryMilestone.js.map +1 -1
- package/repositoryProject.d.ts +6 -1
- package/repositoryProject.js +17 -13
- package/repositoryProject.js.map +1 -1
- package/repositoryPullRequest.d.ts +2 -2
- package/repositoryPullRequest.js +31 -31
- package/repositoryPullRequest.js.map +1 -1
- package/repositoryRuleset.d.ts +50 -11
- package/repositoryRuleset.js +67 -25
- package/repositoryRuleset.js.map +1 -1
- package/repositoryTopics.d.ts +4 -4
- package/repositoryTopics.js +12 -12
- package/repositoryTopics.js.map +1 -1
- package/repositoryWebhook.d.ts +8 -8
- package/repositoryWebhook.js +20 -21
- package/repositoryWebhook.js.map +1 -1
- package/team.d.ts +2 -1
- package/team.js +24 -23
- package/team.js.map +1 -1
- package/teamMembers.d.ts +9 -10
- package/teamMembers.js +17 -18
- package/teamMembers.js.map +1 -1
- package/teamMembership.d.ts +7 -4
- package/teamMembership.js +18 -15
- package/teamMembership.js.map +1 -1
- package/teamRepository.d.ts +6 -19
- package/teamRepository.js +17 -30
- package/teamRepository.js.map +1 -1
- package/teamSettings.d.ts +8 -5
- package/teamSettings.js +17 -14
- package/teamSettings.js.map +1 -1
- package/teamSyncGroupMapping.d.ts +18 -1
- package/teamSyncGroupMapping.js +26 -9
- package/teamSyncGroupMapping.js.map +1 -1
- package/types/index.js +1 -1
- package/types/index.js.map +1 -1
- package/types/input.d.ts +360 -74
- package/types/input.js +1 -1
- package/types/input.js.map +1 -1
- package/types/output.d.ts +495 -84
- package/types/output.js +1 -1
- package/types/output.js.map +1 -1
- package/userGpgKey.d.ts +2 -3
- package/userGpgKey.js +9 -10
- package/userGpgKey.js.map +1 -1
- package/userInvitationAccepter.d.ts +5 -7
- package/userInvitationAccepter.js +11 -13
- package/userInvitationAccepter.js.map +1 -1
- package/userSshKey.d.ts +5 -3
- package/userSshKey.js +15 -13
- package/userSshKey.js.map +1 -1
- package/utilities.d.ts +0 -4
- package/utilities.js +20 -30
- package/utilities.js.map +1 -1
- package/workflowRepositoryPermissions.d.ts +98 -0
- package/workflowRepositoryPermissions.js +82 -0
- package/workflowRepositoryPermissions.js.map +1 -0
- package/package.json.bak +0 -27
- package/repositoryTagProtection.d.ts +0 -93
- package/repositoryTagProtection.js +0 -84
- package/repositoryTagProtection.js.map +0 -1
package/dependabotSecret.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dependabotSecret.js","sourceRoot":"","sources":["../dependabotSecret.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"dependabotSecret.js","sourceRoot":"","sources":["../dependabotSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;GAYG;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;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,gBAAgB,CAAC,YAAY,CAAC;IACjE,CAAC;IAmCD,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAgD,CAAC;YAC/D,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,EAAE,cAAc,CAAC;YACzD,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,EAAE,cAAc,CAAC;YACzD,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,EAAE,UAAU,CAAC;YACjD,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,EAAE,UAAU,CAAC;YACjD,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;SAClD;aAAM;YACH,MAAM,IAAI,GAAG,WAA+C,CAAC;YAC7D,IAAI,IAAI,EAAE,UAAU,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC7C,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,IAAI,IAAI,EAAE,UAAU,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC7C,MAAM,IAAI,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,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,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AA3FL,4CA4FC;AA9EG,gBAAgB;AACO,6BAAY,GAAG,gDAAgD,CAAC"}
|
package/emuGroupMapping.d.ts
CHANGED
|
@@ -8,11 +8,10 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
8
8
|
* import * as pulumi from "@pulumi/pulumi";
|
|
9
9
|
* import * as github from "@pulumi/github";
|
|
10
10
|
*
|
|
11
|
-
* const exampleEmuGroupMapping = new github.EmuGroupMapping("
|
|
12
|
-
* groupId: 28836,
|
|
11
|
+
* const exampleEmuGroupMapping = new github.EmuGroupMapping("example_emu_group_mapping", {
|
|
13
12
|
* teamSlug: "emu-test-team",
|
|
13
|
+
* groupId: 28836,
|
|
14
14
|
* });
|
|
15
|
-
* // The GitHub team name to modify
|
|
16
15
|
* ```
|
|
17
16
|
*
|
|
18
17
|
* ## Import
|
|
@@ -20,7 +19,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
20
19
|
* GitHub EMU External Group Mappings can be imported using the external `group_id`, e.g.
|
|
21
20
|
*
|
|
22
21
|
* ```sh
|
|
23
|
-
*
|
|
22
|
+
* $ pulumi import github:index/emuGroupMapping:EmuGroupMapping example_emu_group_mapping 28836
|
|
24
23
|
* ```
|
|
25
24
|
*/
|
|
26
25
|
export declare class EmuGroupMapping extends pulumi.CustomResource {
|
package/emuGroupMapping.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.EmuGroupMapping = void 0;
|
|
@@ -14,11 +14,10 @@ const utilities = require("./utilities");
|
|
|
14
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
15
|
* import * as github from "@pulumi/github";
|
|
16
16
|
*
|
|
17
|
-
* const exampleEmuGroupMapping = new github.EmuGroupMapping("
|
|
18
|
-
* groupId: 28836,
|
|
17
|
+
* const exampleEmuGroupMapping = new github.EmuGroupMapping("example_emu_group_mapping", {
|
|
19
18
|
* teamSlug: "emu-test-team",
|
|
19
|
+
* groupId: 28836,
|
|
20
20
|
* });
|
|
21
|
-
* // The GitHub team name to modify
|
|
22
21
|
* ```
|
|
23
22
|
*
|
|
24
23
|
* ## Import
|
|
@@ -26,7 +25,7 @@ const utilities = require("./utilities");
|
|
|
26
25
|
* GitHub EMU External Group Mappings can be imported using the external `group_id`, e.g.
|
|
27
26
|
*
|
|
28
27
|
* ```sh
|
|
29
|
-
*
|
|
28
|
+
* $ pulumi import github:index/emuGroupMapping:EmuGroupMapping example_emu_group_mapping 28836
|
|
30
29
|
* ```
|
|
31
30
|
*/
|
|
32
31
|
class EmuGroupMapping extends pulumi.CustomResource {
|
|
@@ -40,7 +39,7 @@ class EmuGroupMapping extends pulumi.CustomResource {
|
|
|
40
39
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
41
40
|
*/
|
|
42
41
|
static get(name, id, state, opts) {
|
|
43
|
-
return new EmuGroupMapping(name, state,
|
|
42
|
+
return new EmuGroupMapping(name, state, { ...opts, id: id });
|
|
44
43
|
}
|
|
45
44
|
/**
|
|
46
45
|
* Returns true if the given object is an instance of EmuGroupMapping. This is designed to work even
|
|
@@ -57,20 +56,20 @@ class EmuGroupMapping extends pulumi.CustomResource {
|
|
|
57
56
|
opts = opts || {};
|
|
58
57
|
if (opts.id) {
|
|
59
58
|
const state = argsOrState;
|
|
60
|
-
resourceInputs["etag"] = state
|
|
61
|
-
resourceInputs["groupId"] = state
|
|
62
|
-
resourceInputs["teamSlug"] = state
|
|
59
|
+
resourceInputs["etag"] = state?.etag;
|
|
60
|
+
resourceInputs["groupId"] = state?.groupId;
|
|
61
|
+
resourceInputs["teamSlug"] = state?.teamSlug;
|
|
63
62
|
}
|
|
64
63
|
else {
|
|
65
64
|
const args = argsOrState;
|
|
66
|
-
if (
|
|
65
|
+
if (args?.groupId === undefined && !opts.urn) {
|
|
67
66
|
throw new Error("Missing required property 'groupId'");
|
|
68
67
|
}
|
|
69
|
-
if (
|
|
68
|
+
if (args?.teamSlug === undefined && !opts.urn) {
|
|
70
69
|
throw new Error("Missing required property 'teamSlug'");
|
|
71
70
|
}
|
|
72
|
-
resourceInputs["groupId"] = args
|
|
73
|
-
resourceInputs["teamSlug"] = args
|
|
71
|
+
resourceInputs["groupId"] = args?.groupId;
|
|
72
|
+
resourceInputs["teamSlug"] = args?.teamSlug;
|
|
74
73
|
resourceInputs["etag"] = undefined /*out*/;
|
|
75
74
|
}
|
|
76
75
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
package/emuGroupMapping.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emuGroupMapping.js","sourceRoot":"","sources":["../emuGroupMapping.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"emuGroupMapping.js","sourceRoot":"","sources":["../emuGroupMapping.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;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,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,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,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,EAAE,OAAO,CAAC;YAC3C,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,EAAE,QAAQ,CAAC;SAChD;aAAM;YACH,MAAM,IAAI,GAAG,WAA8C,CAAC;YAC5D,IAAI,IAAI,EAAE,OAAO,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC1C,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,IAAI,IAAI,EAAE,QAAQ,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC3C,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,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,137 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* This resource allows you to create and manage GitHub Actions permissions within your GitHub enterprise.
|
|
6
|
+
* You must have admin access to an enterprise to use this resource.
|
|
7
|
+
*
|
|
8
|
+
* ## Example Usage
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as github from "@pulumi/github";
|
|
13
|
+
*
|
|
14
|
+
* const example_org = github.getOrganization({
|
|
15
|
+
* name: "my-org",
|
|
16
|
+
* });
|
|
17
|
+
* const test = new github.EnterpriseActionsPermissions("test", {
|
|
18
|
+
* enterpriseSlug: "my-enterprise",
|
|
19
|
+
* allowedActions: "selected",
|
|
20
|
+
* enabledOrganizations: "selected",
|
|
21
|
+
* allowedActionsConfig: {
|
|
22
|
+
* githubOwnedAllowed: true,
|
|
23
|
+
* patternsAlloweds: [
|
|
24
|
+
* "actions/cache@*",
|
|
25
|
+
* "actions/checkout@*",
|
|
26
|
+
* ],
|
|
27
|
+
* verifiedAllowed: true,
|
|
28
|
+
* },
|
|
29
|
+
* enabledOrganizationsConfig: {
|
|
30
|
+
* organizationIds: [example_org.then(example_org => example_org.id)],
|
|
31
|
+
* },
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* ## Import
|
|
36
|
+
*
|
|
37
|
+
* This resource can be imported using the name of the GitHub enterprise:
|
|
38
|
+
*
|
|
39
|
+
* ```sh
|
|
40
|
+
* $ pulumi import github:index/enterpriseActionsPermissions:EnterpriseActionsPermissions test github_enterprise_name
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export declare class EnterpriseActionsPermissions extends pulumi.CustomResource {
|
|
44
|
+
/**
|
|
45
|
+
* Get an existing EnterpriseActionsPermissions resource's state with the given name, ID, and optional extra
|
|
46
|
+
* properties used to qualify the lookup.
|
|
47
|
+
*
|
|
48
|
+
* @param name The _unique_ name of the resulting resource.
|
|
49
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
50
|
+
* @param state Any extra arguments used during the lookup.
|
|
51
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
52
|
+
*/
|
|
53
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: EnterpriseActionsPermissionsState, opts?: pulumi.CustomResourceOptions): EnterpriseActionsPermissions;
|
|
54
|
+
/**
|
|
55
|
+
* Returns true if the given object is an instance of EnterpriseActionsPermissions. This is designed to work even
|
|
56
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
57
|
+
*/
|
|
58
|
+
static isInstance(obj: any): obj is EnterpriseActionsPermissions;
|
|
59
|
+
/**
|
|
60
|
+
* The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `localOnly`, or `selected`.
|
|
61
|
+
*/
|
|
62
|
+
readonly allowedActions: pulumi.Output<string | undefined>;
|
|
63
|
+
/**
|
|
64
|
+
* Sets the actions that are allowed in an enterprise. Only available when `allowedActions` = `selected`. See Allowed Actions Config below for details.
|
|
65
|
+
*/
|
|
66
|
+
readonly allowedActionsConfig: pulumi.Output<outputs.EnterpriseActionsPermissionsAllowedActionsConfig | undefined>;
|
|
67
|
+
/**
|
|
68
|
+
* The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`.
|
|
69
|
+
*/
|
|
70
|
+
readonly enabledOrganizations: pulumi.Output<string>;
|
|
71
|
+
/**
|
|
72
|
+
* Sets the list of selected organizations that are enabled for GitHub Actions in an enterprise. Only available when `enabledOrganizations` = `selected`. See Enabled Organizations Config below for details.
|
|
73
|
+
*/
|
|
74
|
+
readonly enabledOrganizationsConfig: pulumi.Output<outputs.EnterpriseActionsPermissionsEnabledOrganizationsConfig | undefined>;
|
|
75
|
+
/**
|
|
76
|
+
* The slug of the enterprise.
|
|
77
|
+
*/
|
|
78
|
+
readonly enterpriseSlug: pulumi.Output<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Create a EnterpriseActionsPermissions resource with the given unique name, arguments, and options.
|
|
81
|
+
*
|
|
82
|
+
* @param name The _unique_ name of the resource.
|
|
83
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
84
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
85
|
+
*/
|
|
86
|
+
constructor(name: string, args: EnterpriseActionsPermissionsArgs, opts?: pulumi.CustomResourceOptions);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Input properties used for looking up and filtering EnterpriseActionsPermissions resources.
|
|
90
|
+
*/
|
|
91
|
+
export interface EnterpriseActionsPermissionsState {
|
|
92
|
+
/**
|
|
93
|
+
* The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `localOnly`, or `selected`.
|
|
94
|
+
*/
|
|
95
|
+
allowedActions?: pulumi.Input<string>;
|
|
96
|
+
/**
|
|
97
|
+
* Sets the actions that are allowed in an enterprise. Only available when `allowedActions` = `selected`. See Allowed Actions Config below for details.
|
|
98
|
+
*/
|
|
99
|
+
allowedActionsConfig?: pulumi.Input<inputs.EnterpriseActionsPermissionsAllowedActionsConfig>;
|
|
100
|
+
/**
|
|
101
|
+
* The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`.
|
|
102
|
+
*/
|
|
103
|
+
enabledOrganizations?: pulumi.Input<string>;
|
|
104
|
+
/**
|
|
105
|
+
* Sets the list of selected organizations that are enabled for GitHub Actions in an enterprise. Only available when `enabledOrganizations` = `selected`. See Enabled Organizations Config below for details.
|
|
106
|
+
*/
|
|
107
|
+
enabledOrganizationsConfig?: pulumi.Input<inputs.EnterpriseActionsPermissionsEnabledOrganizationsConfig>;
|
|
108
|
+
/**
|
|
109
|
+
* The slug of the enterprise.
|
|
110
|
+
*/
|
|
111
|
+
enterpriseSlug?: pulumi.Input<string>;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* The set of arguments for constructing a EnterpriseActionsPermissions resource.
|
|
115
|
+
*/
|
|
116
|
+
export interface EnterpriseActionsPermissionsArgs {
|
|
117
|
+
/**
|
|
118
|
+
* The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `localOnly`, or `selected`.
|
|
119
|
+
*/
|
|
120
|
+
allowedActions?: pulumi.Input<string>;
|
|
121
|
+
/**
|
|
122
|
+
* Sets the actions that are allowed in an enterprise. Only available when `allowedActions` = `selected`. See Allowed Actions Config below for details.
|
|
123
|
+
*/
|
|
124
|
+
allowedActionsConfig?: pulumi.Input<inputs.EnterpriseActionsPermissionsAllowedActionsConfig>;
|
|
125
|
+
/**
|
|
126
|
+
* The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`.
|
|
127
|
+
*/
|
|
128
|
+
enabledOrganizations: pulumi.Input<string>;
|
|
129
|
+
/**
|
|
130
|
+
* Sets the list of selected organizations that are enabled for GitHub Actions in an enterprise. Only available when `enabledOrganizations` = `selected`. See Enabled Organizations Config below for details.
|
|
131
|
+
*/
|
|
132
|
+
enabledOrganizationsConfig?: pulumi.Input<inputs.EnterpriseActionsPermissionsEnabledOrganizationsConfig>;
|
|
133
|
+
/**
|
|
134
|
+
* The slug of the enterprise.
|
|
135
|
+
*/
|
|
136
|
+
enterpriseSlug: pulumi.Input<string>;
|
|
137
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
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.EnterpriseActionsPermissions = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource allows you to create and manage GitHub Actions permissions within your GitHub enterprise.
|
|
10
|
+
* You must have admin access to an enterprise to use this resource.
|
|
11
|
+
*
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as github from "@pulumi/github";
|
|
17
|
+
*
|
|
18
|
+
* const example_org = github.getOrganization({
|
|
19
|
+
* name: "my-org",
|
|
20
|
+
* });
|
|
21
|
+
* const test = new github.EnterpriseActionsPermissions("test", {
|
|
22
|
+
* enterpriseSlug: "my-enterprise",
|
|
23
|
+
* allowedActions: "selected",
|
|
24
|
+
* enabledOrganizations: "selected",
|
|
25
|
+
* allowedActionsConfig: {
|
|
26
|
+
* githubOwnedAllowed: true,
|
|
27
|
+
* patternsAlloweds: [
|
|
28
|
+
* "actions/cache@*",
|
|
29
|
+
* "actions/checkout@*",
|
|
30
|
+
* ],
|
|
31
|
+
* verifiedAllowed: true,
|
|
32
|
+
* },
|
|
33
|
+
* enabledOrganizationsConfig: {
|
|
34
|
+
* organizationIds: [example_org.then(example_org => example_org.id)],
|
|
35
|
+
* },
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* ## Import
|
|
40
|
+
*
|
|
41
|
+
* This resource can be imported using the name of the GitHub enterprise:
|
|
42
|
+
*
|
|
43
|
+
* ```sh
|
|
44
|
+
* $ pulumi import github:index/enterpriseActionsPermissions:EnterpriseActionsPermissions test github_enterprise_name
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
class EnterpriseActionsPermissions extends pulumi.CustomResource {
|
|
48
|
+
/**
|
|
49
|
+
* Get an existing EnterpriseActionsPermissions resource's state with the given name, ID, and optional extra
|
|
50
|
+
* properties used to qualify the lookup.
|
|
51
|
+
*
|
|
52
|
+
* @param name The _unique_ name of the resulting resource.
|
|
53
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
54
|
+
* @param state Any extra arguments used during the lookup.
|
|
55
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
56
|
+
*/
|
|
57
|
+
static get(name, id, state, opts) {
|
|
58
|
+
return new EnterpriseActionsPermissions(name, state, { ...opts, id: id });
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Returns true if the given object is an instance of EnterpriseActionsPermissions. This is designed to work even
|
|
62
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
63
|
+
*/
|
|
64
|
+
static isInstance(obj) {
|
|
65
|
+
if (obj === undefined || obj === null) {
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
return obj['__pulumiType'] === EnterpriseActionsPermissions.__pulumiType;
|
|
69
|
+
}
|
|
70
|
+
constructor(name, argsOrState, opts) {
|
|
71
|
+
let resourceInputs = {};
|
|
72
|
+
opts = opts || {};
|
|
73
|
+
if (opts.id) {
|
|
74
|
+
const state = argsOrState;
|
|
75
|
+
resourceInputs["allowedActions"] = state?.allowedActions;
|
|
76
|
+
resourceInputs["allowedActionsConfig"] = state?.allowedActionsConfig;
|
|
77
|
+
resourceInputs["enabledOrganizations"] = state?.enabledOrganizations;
|
|
78
|
+
resourceInputs["enabledOrganizationsConfig"] = state?.enabledOrganizationsConfig;
|
|
79
|
+
resourceInputs["enterpriseSlug"] = state?.enterpriseSlug;
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
const args = argsOrState;
|
|
83
|
+
if (args?.enabledOrganizations === undefined && !opts.urn) {
|
|
84
|
+
throw new Error("Missing required property 'enabledOrganizations'");
|
|
85
|
+
}
|
|
86
|
+
if (args?.enterpriseSlug === undefined && !opts.urn) {
|
|
87
|
+
throw new Error("Missing required property 'enterpriseSlug'");
|
|
88
|
+
}
|
|
89
|
+
resourceInputs["allowedActions"] = args?.allowedActions;
|
|
90
|
+
resourceInputs["allowedActionsConfig"] = args?.allowedActionsConfig;
|
|
91
|
+
resourceInputs["enabledOrganizations"] = args?.enabledOrganizations;
|
|
92
|
+
resourceInputs["enabledOrganizationsConfig"] = args?.enabledOrganizationsConfig;
|
|
93
|
+
resourceInputs["enterpriseSlug"] = args?.enterpriseSlug;
|
|
94
|
+
}
|
|
95
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
96
|
+
super(EnterpriseActionsPermissions.__pulumiType, name, resourceInputs, opts);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.EnterpriseActionsPermissions = EnterpriseActionsPermissions;
|
|
100
|
+
/** @internal */
|
|
101
|
+
EnterpriseActionsPermissions.__pulumiType = 'github:index/enterpriseActionsPermissions:EnterpriseActionsPermissions';
|
|
102
|
+
//# sourceMappingURL=enterpriseActionsPermissions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enterpriseActionsPermissions.js","sourceRoot":"","sources":["../enterpriseActionsPermissions.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;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,EAAE,EAAE,CAAC,CAAC;IACnF,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,4BAA4B,CAAC,YAAY,CAAC;IAC7E,CAAC;IA+BD,YAAY,IAAY,EAAE,WAAkF,EAAE,IAAmC;QAC7I,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4D,CAAC;YAC3E,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,EAAE,cAAc,CAAC;YACzD,cAAc,CAAC,sBAAsB,CAAC,GAAG,KAAK,EAAE,oBAAoB,CAAC;YACrE,cAAc,CAAC,sBAAsB,CAAC,GAAG,KAAK,EAAE,oBAAoB,CAAC;YACrE,cAAc,CAAC,4BAA4B,CAAC,GAAG,KAAK,EAAE,0BAA0B,CAAC;YACjF,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,EAAE,cAAc,CAAC;SAC5D;aAAM;YACH,MAAM,IAAI,GAAG,WAA2D,CAAC;YACzE,IAAI,IAAI,EAAE,oBAAoB,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;aACvE;YACD,IAAI,IAAI,EAAE,cAAc,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACjD,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;aACjE;YACD,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,EAAE,oBAAoB,CAAC;YACpE,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,EAAE,oBAAoB,CAAC;YACpE,cAAc,CAAC,4BAA4B,CAAC,GAAG,IAAI,EAAE,0BAA0B,CAAC;YAChF,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;SAC3D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,4BAA4B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjF,CAAC;;AAnFL,oEAoFC;AAtEG,gBAAgB;AACO,yCAAY,GAAG,wEAAwE,CAAC"}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource allows you to create and manage GitHub Actions runner groups within your GitHub enterprise.
|
|
4
|
+
* You must have admin access to an enterprise to use this resource.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as github from "@pulumi/github";
|
|
11
|
+
*
|
|
12
|
+
* const enterprise = github.getEnterprise({
|
|
13
|
+
* slug: "my-enterprise",
|
|
14
|
+
* });
|
|
15
|
+
* const enterpriseOrganization = new github.EnterpriseOrganization("enterprise_organization", {
|
|
16
|
+
* enterpriseId: enterprise.then(enterprise => enterprise.id),
|
|
17
|
+
* name: "my-organization",
|
|
18
|
+
* billingEmail: "octocat@octo.cat",
|
|
19
|
+
* adminLogins: ["octocat"],
|
|
20
|
+
* });
|
|
21
|
+
* const example = new github.EnterpriseActionsRunnerGroup("example", {
|
|
22
|
+
* name: "my-awesome-runner-group",
|
|
23
|
+
* enterpriseSlug: enterprise.then(enterprise => enterprise.slug),
|
|
24
|
+
* allowsPublicRepositories: true,
|
|
25
|
+
* visibility: "selected",
|
|
26
|
+
* selectedOrganizationIds: [enterpriseOrganization.databaseId],
|
|
27
|
+
* restrictedToWorkflows: true,
|
|
28
|
+
* selectedWorkflows: ["my-organization/my-repo/.github/workflows/cool-workflow.yaml@refs/tags/v1"],
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* ## Import
|
|
33
|
+
*
|
|
34
|
+
* This resource can be imported using the enterprise slug and the ID of the runner group:
|
|
35
|
+
*
|
|
36
|
+
* ```sh
|
|
37
|
+
* $ pulumi import github:index/enterpriseActionsRunnerGroup:EnterpriseActionsRunnerGroup test enterprise-slug/42
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export declare class EnterpriseActionsRunnerGroup extends pulumi.CustomResource {
|
|
41
|
+
/**
|
|
42
|
+
* Get an existing EnterpriseActionsRunnerGroup resource's state with the given name, ID, and optional extra
|
|
43
|
+
* properties used to qualify the lookup.
|
|
44
|
+
*
|
|
45
|
+
* @param name The _unique_ name of the resulting resource.
|
|
46
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
47
|
+
* @param state Any extra arguments used during the lookup.
|
|
48
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
49
|
+
*/
|
|
50
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: EnterpriseActionsRunnerGroupState, opts?: pulumi.CustomResourceOptions): EnterpriseActionsRunnerGroup;
|
|
51
|
+
/**
|
|
52
|
+
* Returns true if the given object is an instance of EnterpriseActionsRunnerGroup. 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: any): obj is EnterpriseActionsRunnerGroup;
|
|
56
|
+
/**
|
|
57
|
+
* Whether public repositories can be added to the runner group. Defaults to false.
|
|
58
|
+
*/
|
|
59
|
+
readonly allowsPublicRepositories: pulumi.Output<boolean | undefined>;
|
|
60
|
+
/**
|
|
61
|
+
* Whether this is the default runner group
|
|
62
|
+
*/
|
|
63
|
+
readonly default: pulumi.Output<boolean>;
|
|
64
|
+
/**
|
|
65
|
+
* The slug of the enterprise.
|
|
66
|
+
*/
|
|
67
|
+
readonly enterpriseSlug: pulumi.Output<string>;
|
|
68
|
+
/**
|
|
69
|
+
* An etag representing the runner group object
|
|
70
|
+
*/
|
|
71
|
+
readonly etag: pulumi.Output<string>;
|
|
72
|
+
/**
|
|
73
|
+
* Name of the runner group
|
|
74
|
+
*/
|
|
75
|
+
readonly name: pulumi.Output<string>;
|
|
76
|
+
/**
|
|
77
|
+
* If true, the runner group will be restricted to running only the workflows specified in the selectedWorkflows array. Defaults to false.
|
|
78
|
+
*/
|
|
79
|
+
readonly restrictedToWorkflows: pulumi.Output<boolean | undefined>;
|
|
80
|
+
/**
|
|
81
|
+
* The GitHub API URL for the runner group's runners
|
|
82
|
+
*/
|
|
83
|
+
readonly runnersUrl: pulumi.Output<string>;
|
|
84
|
+
/**
|
|
85
|
+
* IDs of the organizations which should be added to the runner group
|
|
86
|
+
*/
|
|
87
|
+
readonly selectedOrganizationIds: pulumi.Output<number[] | undefined>;
|
|
88
|
+
/**
|
|
89
|
+
* The GitHub API URL for the runner group's selected organizations
|
|
90
|
+
*/
|
|
91
|
+
readonly selectedOrganizationsUrl: pulumi.Output<string>;
|
|
92
|
+
/**
|
|
93
|
+
* List of workflows the runner group should be allowed to run. This setting will be ignored unless restrictedToWorkflows is set to true.
|
|
94
|
+
*/
|
|
95
|
+
readonly selectedWorkflows: pulumi.Output<string[] | undefined>;
|
|
96
|
+
/**
|
|
97
|
+
* Visibility of a runner group to enterprise organizations. Whether the runner group can include `all` or `selected`
|
|
98
|
+
*/
|
|
99
|
+
readonly visibility: pulumi.Output<string>;
|
|
100
|
+
/**
|
|
101
|
+
* Create a EnterpriseActionsRunnerGroup resource with the given unique name, arguments, and options.
|
|
102
|
+
*
|
|
103
|
+
* @param name The _unique_ name of the resource.
|
|
104
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
105
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
106
|
+
*/
|
|
107
|
+
constructor(name: string, args: EnterpriseActionsRunnerGroupArgs, opts?: pulumi.CustomResourceOptions);
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Input properties used for looking up and filtering EnterpriseActionsRunnerGroup resources.
|
|
111
|
+
*/
|
|
112
|
+
export interface EnterpriseActionsRunnerGroupState {
|
|
113
|
+
/**
|
|
114
|
+
* Whether public repositories can be added to the runner group. Defaults to false.
|
|
115
|
+
*/
|
|
116
|
+
allowsPublicRepositories?: pulumi.Input<boolean>;
|
|
117
|
+
/**
|
|
118
|
+
* Whether this is the default runner group
|
|
119
|
+
*/
|
|
120
|
+
default?: pulumi.Input<boolean>;
|
|
121
|
+
/**
|
|
122
|
+
* The slug of the enterprise.
|
|
123
|
+
*/
|
|
124
|
+
enterpriseSlug?: pulumi.Input<string>;
|
|
125
|
+
/**
|
|
126
|
+
* An etag representing the runner group object
|
|
127
|
+
*/
|
|
128
|
+
etag?: pulumi.Input<string>;
|
|
129
|
+
/**
|
|
130
|
+
* Name of the runner group
|
|
131
|
+
*/
|
|
132
|
+
name?: pulumi.Input<string>;
|
|
133
|
+
/**
|
|
134
|
+
* If true, the runner group will be restricted to running only the workflows specified in the selectedWorkflows array. Defaults to false.
|
|
135
|
+
*/
|
|
136
|
+
restrictedToWorkflows?: pulumi.Input<boolean>;
|
|
137
|
+
/**
|
|
138
|
+
* The GitHub API URL for the runner group's runners
|
|
139
|
+
*/
|
|
140
|
+
runnersUrl?: pulumi.Input<string>;
|
|
141
|
+
/**
|
|
142
|
+
* IDs of the organizations which should be added to the runner group
|
|
143
|
+
*/
|
|
144
|
+
selectedOrganizationIds?: pulumi.Input<pulumi.Input<number>[]>;
|
|
145
|
+
/**
|
|
146
|
+
* The GitHub API URL for the runner group's selected organizations
|
|
147
|
+
*/
|
|
148
|
+
selectedOrganizationsUrl?: pulumi.Input<string>;
|
|
149
|
+
/**
|
|
150
|
+
* List of workflows the runner group should be allowed to run. This setting will be ignored unless restrictedToWorkflows is set to true.
|
|
151
|
+
*/
|
|
152
|
+
selectedWorkflows?: pulumi.Input<pulumi.Input<string>[]>;
|
|
153
|
+
/**
|
|
154
|
+
* Visibility of a runner group to enterprise organizations. Whether the runner group can include `all` or `selected`
|
|
155
|
+
*/
|
|
156
|
+
visibility?: pulumi.Input<string>;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* The set of arguments for constructing a EnterpriseActionsRunnerGroup resource.
|
|
160
|
+
*/
|
|
161
|
+
export interface EnterpriseActionsRunnerGroupArgs {
|
|
162
|
+
/**
|
|
163
|
+
* Whether public repositories can be added to the runner group. Defaults to false.
|
|
164
|
+
*/
|
|
165
|
+
allowsPublicRepositories?: pulumi.Input<boolean>;
|
|
166
|
+
/**
|
|
167
|
+
* The slug of the enterprise.
|
|
168
|
+
*/
|
|
169
|
+
enterpriseSlug: pulumi.Input<string>;
|
|
170
|
+
/**
|
|
171
|
+
* Name of the runner group
|
|
172
|
+
*/
|
|
173
|
+
name?: pulumi.Input<string>;
|
|
174
|
+
/**
|
|
175
|
+
* If true, the runner group will be restricted to running only the workflows specified in the selectedWorkflows array. Defaults to false.
|
|
176
|
+
*/
|
|
177
|
+
restrictedToWorkflows?: pulumi.Input<boolean>;
|
|
178
|
+
/**
|
|
179
|
+
* IDs of the organizations which should be added to the runner group
|
|
180
|
+
*/
|
|
181
|
+
selectedOrganizationIds?: pulumi.Input<pulumi.Input<number>[]>;
|
|
182
|
+
/**
|
|
183
|
+
* List of workflows the runner group should be allowed to run. This setting will be ignored unless restrictedToWorkflows is set to true.
|
|
184
|
+
*/
|
|
185
|
+
selectedWorkflows?: pulumi.Input<pulumi.Input<string>[]>;
|
|
186
|
+
/**
|
|
187
|
+
* Visibility of a runner group to enterprise organizations. Whether the runner group can include `all` or `selected`
|
|
188
|
+
*/
|
|
189
|
+
visibility: pulumi.Input<string>;
|
|
190
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
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.EnterpriseActionsRunnerGroup = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource allows you to create and manage GitHub Actions runner groups within your GitHub enterprise.
|
|
10
|
+
* You must have admin access to an enterprise to use this resource.
|
|
11
|
+
*
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as github from "@pulumi/github";
|
|
17
|
+
*
|
|
18
|
+
* const enterprise = github.getEnterprise({
|
|
19
|
+
* slug: "my-enterprise",
|
|
20
|
+
* });
|
|
21
|
+
* const enterpriseOrganization = new github.EnterpriseOrganization("enterprise_organization", {
|
|
22
|
+
* enterpriseId: enterprise.then(enterprise => enterprise.id),
|
|
23
|
+
* name: "my-organization",
|
|
24
|
+
* billingEmail: "octocat@octo.cat",
|
|
25
|
+
* adminLogins: ["octocat"],
|
|
26
|
+
* });
|
|
27
|
+
* const example = new github.EnterpriseActionsRunnerGroup("example", {
|
|
28
|
+
* name: "my-awesome-runner-group",
|
|
29
|
+
* enterpriseSlug: enterprise.then(enterprise => enterprise.slug),
|
|
30
|
+
* allowsPublicRepositories: true,
|
|
31
|
+
* visibility: "selected",
|
|
32
|
+
* selectedOrganizationIds: [enterpriseOrganization.databaseId],
|
|
33
|
+
* restrictedToWorkflows: true,
|
|
34
|
+
* selectedWorkflows: ["my-organization/my-repo/.github/workflows/cool-workflow.yaml@refs/tags/v1"],
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* ## Import
|
|
39
|
+
*
|
|
40
|
+
* This resource can be imported using the enterprise slug and the ID of the runner group:
|
|
41
|
+
*
|
|
42
|
+
* ```sh
|
|
43
|
+
* $ pulumi import github:index/enterpriseActionsRunnerGroup:EnterpriseActionsRunnerGroup test enterprise-slug/42
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
class EnterpriseActionsRunnerGroup extends pulumi.CustomResource {
|
|
47
|
+
/**
|
|
48
|
+
* Get an existing EnterpriseActionsRunnerGroup resource's state with the given name, ID, and optional extra
|
|
49
|
+
* properties used to qualify the lookup.
|
|
50
|
+
*
|
|
51
|
+
* @param name The _unique_ name of the resulting resource.
|
|
52
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
53
|
+
* @param state Any extra arguments used during the lookup.
|
|
54
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
55
|
+
*/
|
|
56
|
+
static get(name, id, state, opts) {
|
|
57
|
+
return new EnterpriseActionsRunnerGroup(name, state, { ...opts, id: id });
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Returns true if the given object is an instance of EnterpriseActionsRunnerGroup. This is designed to work even
|
|
61
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
62
|
+
*/
|
|
63
|
+
static isInstance(obj) {
|
|
64
|
+
if (obj === undefined || obj === null) {
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
return obj['__pulumiType'] === EnterpriseActionsRunnerGroup.__pulumiType;
|
|
68
|
+
}
|
|
69
|
+
constructor(name, argsOrState, opts) {
|
|
70
|
+
let resourceInputs = {};
|
|
71
|
+
opts = opts || {};
|
|
72
|
+
if (opts.id) {
|
|
73
|
+
const state = argsOrState;
|
|
74
|
+
resourceInputs["allowsPublicRepositories"] = state?.allowsPublicRepositories;
|
|
75
|
+
resourceInputs["default"] = state?.default;
|
|
76
|
+
resourceInputs["enterpriseSlug"] = state?.enterpriseSlug;
|
|
77
|
+
resourceInputs["etag"] = state?.etag;
|
|
78
|
+
resourceInputs["name"] = state?.name;
|
|
79
|
+
resourceInputs["restrictedToWorkflows"] = state?.restrictedToWorkflows;
|
|
80
|
+
resourceInputs["runnersUrl"] = state?.runnersUrl;
|
|
81
|
+
resourceInputs["selectedOrganizationIds"] = state?.selectedOrganizationIds;
|
|
82
|
+
resourceInputs["selectedOrganizationsUrl"] = state?.selectedOrganizationsUrl;
|
|
83
|
+
resourceInputs["selectedWorkflows"] = state?.selectedWorkflows;
|
|
84
|
+
resourceInputs["visibility"] = state?.visibility;
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
const args = argsOrState;
|
|
88
|
+
if (args?.enterpriseSlug === undefined && !opts.urn) {
|
|
89
|
+
throw new Error("Missing required property 'enterpriseSlug'");
|
|
90
|
+
}
|
|
91
|
+
if (args?.visibility === undefined && !opts.urn) {
|
|
92
|
+
throw new Error("Missing required property 'visibility'");
|
|
93
|
+
}
|
|
94
|
+
resourceInputs["allowsPublicRepositories"] = args?.allowsPublicRepositories;
|
|
95
|
+
resourceInputs["enterpriseSlug"] = args?.enterpriseSlug;
|
|
96
|
+
resourceInputs["name"] = args?.name;
|
|
97
|
+
resourceInputs["restrictedToWorkflows"] = args?.restrictedToWorkflows;
|
|
98
|
+
resourceInputs["selectedOrganizationIds"] = args?.selectedOrganizationIds;
|
|
99
|
+
resourceInputs["selectedWorkflows"] = args?.selectedWorkflows;
|
|
100
|
+
resourceInputs["visibility"] = args?.visibility;
|
|
101
|
+
resourceInputs["default"] = undefined /*out*/;
|
|
102
|
+
resourceInputs["etag"] = undefined /*out*/;
|
|
103
|
+
resourceInputs["runnersUrl"] = undefined /*out*/;
|
|
104
|
+
resourceInputs["selectedOrganizationsUrl"] = undefined /*out*/;
|
|
105
|
+
}
|
|
106
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
107
|
+
super(EnterpriseActionsRunnerGroup.__pulumiType, name, resourceInputs, opts);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
exports.EnterpriseActionsRunnerGroup = EnterpriseActionsRunnerGroup;
|
|
111
|
+
/** @internal */
|
|
112
|
+
EnterpriseActionsRunnerGroup.__pulumiType = 'github:index/enterpriseActionsRunnerGroup:EnterpriseActionsRunnerGroup';
|
|
113
|
+
//# sourceMappingURL=enterpriseActionsRunnerGroup.js.map
|