@pulumi/github 6.0.0-alpha.1709363818 → 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 +21 -3
- package/getOrganization.js +9 -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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enterpriseActionsRunnerGroup.js","sourceRoot":"","sources":["../enterpriseActionsRunnerGroup.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;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;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
|
|
3
|
+
* This resource allows you to manage GitHub Actions workflow permissions for a GitHub Enterprise account. This controls the default permissions granted to the GITHUB_TOKEN when running workflows and whether GitHub Actions can approve pull request reviews.
|
|
4
|
+
*
|
|
5
|
+
* You must have enterprise admin access to use this resource.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as github from "@pulumi/github";
|
|
12
|
+
*
|
|
13
|
+
* // Basic workflow permissions configuration
|
|
14
|
+
* const example = new github.EnterpriseActionsWorkflowPermissions("example", {
|
|
15
|
+
* enterpriseSlug: "my-enterprise",
|
|
16
|
+
* defaultWorkflowPermissions: "read",
|
|
17
|
+
* canApprovePullRequestReviews: false,
|
|
18
|
+
* });
|
|
19
|
+
* // Allow write permissions and PR approvals
|
|
20
|
+
* const permissive = new github.EnterpriseActionsWorkflowPermissions("permissive", {
|
|
21
|
+
* enterpriseSlug: "my-enterprise",
|
|
22
|
+
* defaultWorkflowPermissions: "write",
|
|
23
|
+
* canApprovePullRequestReviews: true,
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* ## Notes
|
|
28
|
+
*
|
|
29
|
+
* > **Note:** This resource requires a GitHub Enterprise account and enterprise admin permissions.
|
|
30
|
+
*
|
|
31
|
+
* When this resource is destroyed, the workflow permissions will be reset to safe defaults:
|
|
32
|
+
* - `defaultWorkflowPermissions` = `read`
|
|
33
|
+
* - `canApprovePullRequestReviews` = `false`
|
|
34
|
+
*
|
|
35
|
+
* ## Import
|
|
36
|
+
*
|
|
37
|
+
* Enterprise Actions workflow permissions can be imported using the enterprise slug:
|
|
38
|
+
*
|
|
39
|
+
* ```sh
|
|
40
|
+
* $ pulumi import github:index/enterpriseActionsWorkflowPermissions:EnterpriseActionsWorkflowPermissions example my-enterprise
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export declare class EnterpriseActionsWorkflowPermissions extends pulumi.CustomResource {
|
|
44
|
+
/**
|
|
45
|
+
* Get an existing EnterpriseActionsWorkflowPermissions 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?: EnterpriseActionsWorkflowPermissionsState, opts?: pulumi.CustomResourceOptions): EnterpriseActionsWorkflowPermissions;
|
|
54
|
+
/**
|
|
55
|
+
* Returns true if the given object is an instance of EnterpriseActionsWorkflowPermissions. 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 EnterpriseActionsWorkflowPermissions;
|
|
59
|
+
/**
|
|
60
|
+
* Whether GitHub Actions can approve pull request reviews. Defaults to `false`.
|
|
61
|
+
*/
|
|
62
|
+
readonly canApprovePullRequestReviews: pulumi.Output<boolean | undefined>;
|
|
63
|
+
/**
|
|
64
|
+
* The default workflow permissions granted to the GITHUB_TOKEN when running workflows. Can be `read` or `write`. Defaults to `read`.
|
|
65
|
+
*/
|
|
66
|
+
readonly defaultWorkflowPermissions: pulumi.Output<string | undefined>;
|
|
67
|
+
/**
|
|
68
|
+
* The slug of the enterprise.
|
|
69
|
+
*/
|
|
70
|
+
readonly enterpriseSlug: pulumi.Output<string>;
|
|
71
|
+
/**
|
|
72
|
+
* Create a EnterpriseActionsWorkflowPermissions resource with the given unique name, arguments, and options.
|
|
73
|
+
*
|
|
74
|
+
* @param name The _unique_ name of the resource.
|
|
75
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
76
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
77
|
+
*/
|
|
78
|
+
constructor(name: string, args: EnterpriseActionsWorkflowPermissionsArgs, opts?: pulumi.CustomResourceOptions);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Input properties used for looking up and filtering EnterpriseActionsWorkflowPermissions resources.
|
|
82
|
+
*/
|
|
83
|
+
export interface EnterpriseActionsWorkflowPermissionsState {
|
|
84
|
+
/**
|
|
85
|
+
* Whether GitHub Actions can approve pull request reviews. Defaults to `false`.
|
|
86
|
+
*/
|
|
87
|
+
canApprovePullRequestReviews?: pulumi.Input<boolean>;
|
|
88
|
+
/**
|
|
89
|
+
* The default workflow permissions granted to the GITHUB_TOKEN when running workflows. Can be `read` or `write`. Defaults to `read`.
|
|
90
|
+
*/
|
|
91
|
+
defaultWorkflowPermissions?: pulumi.Input<string>;
|
|
92
|
+
/**
|
|
93
|
+
* The slug of the enterprise.
|
|
94
|
+
*/
|
|
95
|
+
enterpriseSlug?: pulumi.Input<string>;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* The set of arguments for constructing a EnterpriseActionsWorkflowPermissions resource.
|
|
99
|
+
*/
|
|
100
|
+
export interface EnterpriseActionsWorkflowPermissionsArgs {
|
|
101
|
+
/**
|
|
102
|
+
* Whether GitHub Actions can approve pull request reviews. Defaults to `false`.
|
|
103
|
+
*/
|
|
104
|
+
canApprovePullRequestReviews?: pulumi.Input<boolean>;
|
|
105
|
+
/**
|
|
106
|
+
* The default workflow permissions granted to the GITHUB_TOKEN when running workflows. Can be `read` or `write`. Defaults to `read`.
|
|
107
|
+
*/
|
|
108
|
+
defaultWorkflowPermissions?: pulumi.Input<string>;
|
|
109
|
+
/**
|
|
110
|
+
* The slug of the enterprise.
|
|
111
|
+
*/
|
|
112
|
+
enterpriseSlug: pulumi.Input<string>;
|
|
113
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
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.EnterpriseActionsWorkflowPermissions = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource allows you to manage GitHub Actions workflow permissions for a GitHub Enterprise account. This controls the default permissions granted to the GITHUB_TOKEN when running workflows and whether GitHub Actions can approve pull request reviews.
|
|
10
|
+
*
|
|
11
|
+
* You must have enterprise admin access to use this resource.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as github from "@pulumi/github";
|
|
18
|
+
*
|
|
19
|
+
* // Basic workflow permissions configuration
|
|
20
|
+
* const example = new github.EnterpriseActionsWorkflowPermissions("example", {
|
|
21
|
+
* enterpriseSlug: "my-enterprise",
|
|
22
|
+
* defaultWorkflowPermissions: "read",
|
|
23
|
+
* canApprovePullRequestReviews: false,
|
|
24
|
+
* });
|
|
25
|
+
* // Allow write permissions and PR approvals
|
|
26
|
+
* const permissive = new github.EnterpriseActionsWorkflowPermissions("permissive", {
|
|
27
|
+
* enterpriseSlug: "my-enterprise",
|
|
28
|
+
* defaultWorkflowPermissions: "write",
|
|
29
|
+
* canApprovePullRequestReviews: true,
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* ## Notes
|
|
34
|
+
*
|
|
35
|
+
* > **Note:** This resource requires a GitHub Enterprise account and enterprise admin permissions.
|
|
36
|
+
*
|
|
37
|
+
* When this resource is destroyed, the workflow permissions will be reset to safe defaults:
|
|
38
|
+
* - `defaultWorkflowPermissions` = `read`
|
|
39
|
+
* - `canApprovePullRequestReviews` = `false`
|
|
40
|
+
*
|
|
41
|
+
* ## Import
|
|
42
|
+
*
|
|
43
|
+
* Enterprise Actions workflow permissions can be imported using the enterprise slug:
|
|
44
|
+
*
|
|
45
|
+
* ```sh
|
|
46
|
+
* $ pulumi import github:index/enterpriseActionsWorkflowPermissions:EnterpriseActionsWorkflowPermissions example my-enterprise
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
class EnterpriseActionsWorkflowPermissions extends pulumi.CustomResource {
|
|
50
|
+
/**
|
|
51
|
+
* Get an existing EnterpriseActionsWorkflowPermissions resource's state with the given name, ID, and optional extra
|
|
52
|
+
* properties used to qualify the lookup.
|
|
53
|
+
*
|
|
54
|
+
* @param name The _unique_ name of the resulting resource.
|
|
55
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
56
|
+
* @param state Any extra arguments used during the lookup.
|
|
57
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
58
|
+
*/
|
|
59
|
+
static get(name, id, state, opts) {
|
|
60
|
+
return new EnterpriseActionsWorkflowPermissions(name, state, { ...opts, id: id });
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Returns true if the given object is an instance of EnterpriseActionsWorkflowPermissions. This is designed to work even
|
|
64
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
65
|
+
*/
|
|
66
|
+
static isInstance(obj) {
|
|
67
|
+
if (obj === undefined || obj === null) {
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
return obj['__pulumiType'] === EnterpriseActionsWorkflowPermissions.__pulumiType;
|
|
71
|
+
}
|
|
72
|
+
constructor(name, argsOrState, opts) {
|
|
73
|
+
let resourceInputs = {};
|
|
74
|
+
opts = opts || {};
|
|
75
|
+
if (opts.id) {
|
|
76
|
+
const state = argsOrState;
|
|
77
|
+
resourceInputs["canApprovePullRequestReviews"] = state?.canApprovePullRequestReviews;
|
|
78
|
+
resourceInputs["defaultWorkflowPermissions"] = state?.defaultWorkflowPermissions;
|
|
79
|
+
resourceInputs["enterpriseSlug"] = state?.enterpriseSlug;
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
const args = argsOrState;
|
|
83
|
+
if (args?.enterpriseSlug === undefined && !opts.urn) {
|
|
84
|
+
throw new Error("Missing required property 'enterpriseSlug'");
|
|
85
|
+
}
|
|
86
|
+
resourceInputs["canApprovePullRequestReviews"] = args?.canApprovePullRequestReviews;
|
|
87
|
+
resourceInputs["defaultWorkflowPermissions"] = args?.defaultWorkflowPermissions;
|
|
88
|
+
resourceInputs["enterpriseSlug"] = args?.enterpriseSlug;
|
|
89
|
+
}
|
|
90
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
91
|
+
super(EnterpriseActionsWorkflowPermissions.__pulumiType, name, resourceInputs, opts);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
exports.EnterpriseActionsWorkflowPermissions = EnterpriseActionsWorkflowPermissions;
|
|
95
|
+
/** @internal */
|
|
96
|
+
EnterpriseActionsWorkflowPermissions.__pulumiType = 'github:index/enterpriseActionsWorkflowPermissions:EnterpriseActionsWorkflowPermissions';
|
|
97
|
+
//# sourceMappingURL=enterpriseActionsWorkflowPermissions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enterpriseActionsWorkflowPermissions.js","sourceRoot":"","sources":["../enterpriseActionsWorkflowPermissions.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAa,oCAAqC,SAAQ,MAAM,CAAC,cAAc;IAC3E;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiD,EAAE,IAAmC;QAC/I,OAAO,IAAI,oCAAoC,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3F,CAAC;IAKD;;;OAGG;IACI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}
|
|
@@ -9,7 +9,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
9
9
|
* import * as github from "@pulumi/github";
|
|
10
10
|
*
|
|
11
11
|
* const org = new github.EnterpriseOrganization("org", {
|
|
12
|
-
* enterpriseId:
|
|
12
|
+
* enterpriseId: enterprise.id,
|
|
13
|
+
* name: "some-awesome-org",
|
|
13
14
|
* displayName: "Some Awesome Org",
|
|
14
15
|
* description: "Organization created with terraform",
|
|
15
16
|
* billingEmail: "jon@winteriscoming.com",
|
|
@@ -22,7 +23,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
22
23
|
* GitHub Enterprise Organization can be imported using the `slug` of the enterprise, combined with the `orgname` of the organization, separated by a `/` character.
|
|
23
24
|
*
|
|
24
25
|
* ```sh
|
|
25
|
-
*
|
|
26
|
+
* $ pulumi import github:index/enterpriseOrganization:EnterpriseOrganization org enterp/some-awesome-org
|
|
26
27
|
* ```
|
|
27
28
|
*/
|
|
28
29
|
export declare class EnterpriseOrganization extends pulumi.CustomResource {
|
|
@@ -49,6 +50,10 @@ export declare class EnterpriseOrganization extends pulumi.CustomResource {
|
|
|
49
50
|
* The billing email address.
|
|
50
51
|
*/
|
|
51
52
|
readonly billingEmail: pulumi.Output<string>;
|
|
53
|
+
/**
|
|
54
|
+
* The ID of the organization.
|
|
55
|
+
*/
|
|
56
|
+
readonly databaseId: pulumi.Output<number>;
|
|
52
57
|
/**
|
|
53
58
|
* The description of the organization.
|
|
54
59
|
*/
|
|
@@ -86,6 +91,10 @@ export interface EnterpriseOrganizationState {
|
|
|
86
91
|
* The billing email address.
|
|
87
92
|
*/
|
|
88
93
|
billingEmail?: pulumi.Input<string>;
|
|
94
|
+
/**
|
|
95
|
+
* The ID of the organization.
|
|
96
|
+
*/
|
|
97
|
+
databaseId?: pulumi.Input<number>;
|
|
89
98
|
/**
|
|
90
99
|
* The description of the organization.
|
|
91
100
|
*/
|
|
@@ -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.EnterpriseOrganization = void 0;
|
|
@@ -15,7 +15,8 @@ const utilities = require("./utilities");
|
|
|
15
15
|
* import * as github from "@pulumi/github";
|
|
16
16
|
*
|
|
17
17
|
* const org = new github.EnterpriseOrganization("org", {
|
|
18
|
-
* enterpriseId:
|
|
18
|
+
* enterpriseId: enterprise.id,
|
|
19
|
+
* name: "some-awesome-org",
|
|
19
20
|
* displayName: "Some Awesome Org",
|
|
20
21
|
* description: "Organization created with terraform",
|
|
21
22
|
* billingEmail: "jon@winteriscoming.com",
|
|
@@ -28,7 +29,7 @@ const utilities = require("./utilities");
|
|
|
28
29
|
* GitHub Enterprise Organization can be imported using the `slug` of the enterprise, combined with the `orgname` of the organization, separated by a `/` character.
|
|
29
30
|
*
|
|
30
31
|
* ```sh
|
|
31
|
-
*
|
|
32
|
+
* $ pulumi import github:index/enterpriseOrganization:EnterpriseOrganization org enterp/some-awesome-org
|
|
32
33
|
* ```
|
|
33
34
|
*/
|
|
34
35
|
class EnterpriseOrganization extends pulumi.CustomResource {
|
|
@@ -42,7 +43,7 @@ class EnterpriseOrganization extends pulumi.CustomResource {
|
|
|
42
43
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
43
44
|
*/
|
|
44
45
|
static get(name, id, state, opts) {
|
|
45
|
-
return new EnterpriseOrganization(name, state,
|
|
46
|
+
return new EnterpriseOrganization(name, state, { ...opts, id: id });
|
|
46
47
|
}
|
|
47
48
|
/**
|
|
48
49
|
* Returns true if the given object is an instance of EnterpriseOrganization. This is designed to work even
|
|
@@ -59,30 +60,32 @@ class EnterpriseOrganization extends pulumi.CustomResource {
|
|
|
59
60
|
opts = opts || {};
|
|
60
61
|
if (opts.id) {
|
|
61
62
|
const state = argsOrState;
|
|
62
|
-
resourceInputs["adminLogins"] = state
|
|
63
|
-
resourceInputs["billingEmail"] = state
|
|
64
|
-
resourceInputs["
|
|
65
|
-
resourceInputs["
|
|
66
|
-
resourceInputs["
|
|
67
|
-
resourceInputs["
|
|
63
|
+
resourceInputs["adminLogins"] = state?.adminLogins;
|
|
64
|
+
resourceInputs["billingEmail"] = state?.billingEmail;
|
|
65
|
+
resourceInputs["databaseId"] = state?.databaseId;
|
|
66
|
+
resourceInputs["description"] = state?.description;
|
|
67
|
+
resourceInputs["displayName"] = state?.displayName;
|
|
68
|
+
resourceInputs["enterpriseId"] = state?.enterpriseId;
|
|
69
|
+
resourceInputs["name"] = state?.name;
|
|
68
70
|
}
|
|
69
71
|
else {
|
|
70
72
|
const args = argsOrState;
|
|
71
|
-
if (
|
|
73
|
+
if (args?.adminLogins === undefined && !opts.urn) {
|
|
72
74
|
throw new Error("Missing required property 'adminLogins'");
|
|
73
75
|
}
|
|
74
|
-
if (
|
|
76
|
+
if (args?.billingEmail === undefined && !opts.urn) {
|
|
75
77
|
throw new Error("Missing required property 'billingEmail'");
|
|
76
78
|
}
|
|
77
|
-
if (
|
|
79
|
+
if (args?.enterpriseId === undefined && !opts.urn) {
|
|
78
80
|
throw new Error("Missing required property 'enterpriseId'");
|
|
79
81
|
}
|
|
80
|
-
resourceInputs["adminLogins"] = args
|
|
81
|
-
resourceInputs["billingEmail"] = args
|
|
82
|
-
resourceInputs["description"] = args
|
|
83
|
-
resourceInputs["displayName"] = args
|
|
84
|
-
resourceInputs["enterpriseId"] = args
|
|
85
|
-
resourceInputs["name"] = args
|
|
82
|
+
resourceInputs["adminLogins"] = args?.adminLogins;
|
|
83
|
+
resourceInputs["billingEmail"] = args?.billingEmail;
|
|
84
|
+
resourceInputs["description"] = args?.description;
|
|
85
|
+
resourceInputs["displayName"] = args?.displayName;
|
|
86
|
+
resourceInputs["enterpriseId"] = args?.enterpriseId;
|
|
87
|
+
resourceInputs["name"] = args?.name;
|
|
88
|
+
resourceInputs["databaseId"] = undefined /*out*/;
|
|
86
89
|
}
|
|
87
90
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
88
91
|
super(EnterpriseOrganization.__pulumiType, name, resourceInputs, opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enterpriseOrganization.js","sourceRoot":"","sources":["../enterpriseOrganization.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"enterpriseOrganization.js","sourceRoot":"","sources":["../enterpriseOrganization.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IAC7D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmC,EAAE,IAAmC;QACjI,OAAO,IAAI,sBAAsB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC7E,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,sBAAsB,CAAC,YAAY,CAAC;IACvE,CAAC;IAuCD,YAAY,IAAY,EAAE,WAAsE,EAAE,IAAmC;QACjI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAsD,CAAC;YACrE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC;YACnD,cAAc,CAAC,cAAc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AI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,sBAAsB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3E,CAAC;;AAlGL,wDAmGC;AArFG,gBAAgB;AACO,mCAAY,GAAG,4DAA4D,CAAC"}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource allows you to manage code security and analysis settings for a GitHub Enterprise account. This controls Advanced Security, Secret Scanning, and related security features that are automatically enabled for new repositories in the enterprise.
|
|
4
|
+
*
|
|
5
|
+
* You must have enterprise admin access to use this resource.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as github from "@pulumi/github";
|
|
12
|
+
*
|
|
13
|
+
* // Basic security settings - enable secret scanning only
|
|
14
|
+
* const basic = new github.EnterpriseSecurityAnalysisSettings("basic", {
|
|
15
|
+
* enterpriseSlug: "my-enterprise",
|
|
16
|
+
* secretScanningEnabledForNewRepositories: true,
|
|
17
|
+
* });
|
|
18
|
+
* // Full security configuration with all features enabled
|
|
19
|
+
* const comprehensive = new github.EnterpriseSecurityAnalysisSettings("comprehensive", {
|
|
20
|
+
* enterpriseSlug: "my-enterprise",
|
|
21
|
+
* advancedSecurityEnabledForNewRepositories: true,
|
|
22
|
+
* secretScanningEnabledForNewRepositories: true,
|
|
23
|
+
* secretScanningPushProtectionEnabledForNewRepositories: true,
|
|
24
|
+
* secretScanningValidityChecksEnabled: true,
|
|
25
|
+
* secretScanningPushProtectionCustomLink: "https://octokit.com/security-guidelines",
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* ## Notes
|
|
30
|
+
*
|
|
31
|
+
* > **Note:** This resource requires a GitHub Enterprise account and enterprise admin permissions.
|
|
32
|
+
*
|
|
33
|
+
* > **Note:** Advanced Security features require a GitHub Advanced Security license.
|
|
34
|
+
*
|
|
35
|
+
* When this resource is destroyed, all security analysis settings will be reset to disabled defaults for security reasons.
|
|
36
|
+
*
|
|
37
|
+
* ## Dependencies
|
|
38
|
+
*
|
|
39
|
+
* This resource manages the following security features:
|
|
40
|
+
*
|
|
41
|
+
* - **Advanced Security**: Code scanning, secret scanning, and dependency review
|
|
42
|
+
* - **Secret Scanning**: Automatic detection of secrets in code
|
|
43
|
+
* - **Push Protection**: Prevents secrets from being committed to repositories
|
|
44
|
+
* - **Validity Checks**: Verifies that detected secrets are actually valid
|
|
45
|
+
*
|
|
46
|
+
* These settings only apply to **new repositories** created after the settings are enabled. Existing repositories are not affected and must be configured individually.
|
|
47
|
+
*
|
|
48
|
+
* ## Import
|
|
49
|
+
*
|
|
50
|
+
* Enterprise security analysis settings can be imported using the enterprise slug:
|
|
51
|
+
*
|
|
52
|
+
* ```sh
|
|
53
|
+
* $ pulumi import github:index/enterpriseSecurityAnalysisSettings:EnterpriseSecurityAnalysisSettings example my-enterprise
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
export declare class EnterpriseSecurityAnalysisSettings extends pulumi.CustomResource {
|
|
57
|
+
/**
|
|
58
|
+
* Get an existing EnterpriseSecurityAnalysisSettings resource's state with the given name, ID, and optional extra
|
|
59
|
+
* properties used to qualify the lookup.
|
|
60
|
+
*
|
|
61
|
+
* @param name The _unique_ name of the resulting resource.
|
|
62
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
63
|
+
* @param state Any extra arguments used during the lookup.
|
|
64
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
65
|
+
*/
|
|
66
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: EnterpriseSecurityAnalysisSettingsState, opts?: pulumi.CustomResourceOptions): EnterpriseSecurityAnalysisSettings;
|
|
67
|
+
/**
|
|
68
|
+
* Returns true if the given object is an instance of EnterpriseSecurityAnalysisSettings. This is designed to work even
|
|
69
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
70
|
+
*/
|
|
71
|
+
static isInstance(obj: any): obj is EnterpriseSecurityAnalysisSettings;
|
|
72
|
+
/**
|
|
73
|
+
* Whether GitHub Advanced Security is automatically enabled for new repositories. Defaults to `false`. Requires Advanced Security license.
|
|
74
|
+
*/
|
|
75
|
+
readonly advancedSecurityEnabledForNewRepositories: pulumi.Output<boolean | undefined>;
|
|
76
|
+
/**
|
|
77
|
+
* The slug of the enterprise.
|
|
78
|
+
*/
|
|
79
|
+
readonly enterpriseSlug: pulumi.Output<string>;
|
|
80
|
+
/**
|
|
81
|
+
* Whether secret scanning is automatically enabled for new repositories. Defaults to `false`.
|
|
82
|
+
*/
|
|
83
|
+
readonly secretScanningEnabledForNewRepositories: pulumi.Output<boolean | undefined>;
|
|
84
|
+
/**
|
|
85
|
+
* Custom URL for secret scanning push protection bypass instructions.
|
|
86
|
+
*/
|
|
87
|
+
readonly secretScanningPushProtectionCustomLink: pulumi.Output<string | undefined>;
|
|
88
|
+
/**
|
|
89
|
+
* Whether secret scanning push protection is automatically enabled for new repositories. Defaults to `false`.
|
|
90
|
+
*/
|
|
91
|
+
readonly secretScanningPushProtectionEnabledForNewRepositories: pulumi.Output<boolean | undefined>;
|
|
92
|
+
/**
|
|
93
|
+
* Whether secret scanning validity checks are enabled. Defaults to `false`.
|
|
94
|
+
*/
|
|
95
|
+
readonly secretScanningValidityChecksEnabled: pulumi.Output<boolean | undefined>;
|
|
96
|
+
/**
|
|
97
|
+
* Create a EnterpriseSecurityAnalysisSettings resource with the given unique name, arguments, and options.
|
|
98
|
+
*
|
|
99
|
+
* @param name The _unique_ name of the resource.
|
|
100
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
101
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
102
|
+
*/
|
|
103
|
+
constructor(name: string, args: EnterpriseSecurityAnalysisSettingsArgs, opts?: pulumi.CustomResourceOptions);
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Input properties used for looking up and filtering EnterpriseSecurityAnalysisSettings resources.
|
|
107
|
+
*/
|
|
108
|
+
export interface EnterpriseSecurityAnalysisSettingsState {
|
|
109
|
+
/**
|
|
110
|
+
* Whether GitHub Advanced Security is automatically enabled for new repositories. Defaults to `false`. Requires Advanced Security license.
|
|
111
|
+
*/
|
|
112
|
+
advancedSecurityEnabledForNewRepositories?: pulumi.Input<boolean>;
|
|
113
|
+
/**
|
|
114
|
+
* The slug of the enterprise.
|
|
115
|
+
*/
|
|
116
|
+
enterpriseSlug?: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* Whether secret scanning is automatically enabled for new repositories. Defaults to `false`.
|
|
119
|
+
*/
|
|
120
|
+
secretScanningEnabledForNewRepositories?: pulumi.Input<boolean>;
|
|
121
|
+
/**
|
|
122
|
+
* Custom URL for secret scanning push protection bypass instructions.
|
|
123
|
+
*/
|
|
124
|
+
secretScanningPushProtectionCustomLink?: pulumi.Input<string>;
|
|
125
|
+
/**
|
|
126
|
+
* Whether secret scanning push protection is automatically enabled for new repositories. Defaults to `false`.
|
|
127
|
+
*/
|
|
128
|
+
secretScanningPushProtectionEnabledForNewRepositories?: pulumi.Input<boolean>;
|
|
129
|
+
/**
|
|
130
|
+
* Whether secret scanning validity checks are enabled. Defaults to `false`.
|
|
131
|
+
*/
|
|
132
|
+
secretScanningValidityChecksEnabled?: pulumi.Input<boolean>;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* The set of arguments for constructing a EnterpriseSecurityAnalysisSettings resource.
|
|
136
|
+
*/
|
|
137
|
+
export interface EnterpriseSecurityAnalysisSettingsArgs {
|
|
138
|
+
/**
|
|
139
|
+
* Whether GitHub Advanced Security is automatically enabled for new repositories. Defaults to `false`. Requires Advanced Security license.
|
|
140
|
+
*/
|
|
141
|
+
advancedSecurityEnabledForNewRepositories?: pulumi.Input<boolean>;
|
|
142
|
+
/**
|
|
143
|
+
* The slug of the enterprise.
|
|
144
|
+
*/
|
|
145
|
+
enterpriseSlug: pulumi.Input<string>;
|
|
146
|
+
/**
|
|
147
|
+
* Whether secret scanning is automatically enabled for new repositories. Defaults to `false`.
|
|
148
|
+
*/
|
|
149
|
+
secretScanningEnabledForNewRepositories?: pulumi.Input<boolean>;
|
|
150
|
+
/**
|
|
151
|
+
* Custom URL for secret scanning push protection bypass instructions.
|
|
152
|
+
*/
|
|
153
|
+
secretScanningPushProtectionCustomLink?: pulumi.Input<string>;
|
|
154
|
+
/**
|
|
155
|
+
* Whether secret scanning push protection is automatically enabled for new repositories. Defaults to `false`.
|
|
156
|
+
*/
|
|
157
|
+
secretScanningPushProtectionEnabledForNewRepositories?: pulumi.Input<boolean>;
|
|
158
|
+
/**
|
|
159
|
+
* Whether secret scanning validity checks are enabled. Defaults to `false`.
|
|
160
|
+
*/
|
|
161
|
+
secretScanningValidityChecksEnabled?: pulumi.Input<boolean>;
|
|
162
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
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.EnterpriseSecurityAnalysisSettings = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource allows you to manage code security and analysis settings for a GitHub Enterprise account. This controls Advanced Security, Secret Scanning, and related security features that are automatically enabled for new repositories in the enterprise.
|
|
10
|
+
*
|
|
11
|
+
* You must have enterprise admin access to use this resource.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as github from "@pulumi/github";
|
|
18
|
+
*
|
|
19
|
+
* // Basic security settings - enable secret scanning only
|
|
20
|
+
* const basic = new github.EnterpriseSecurityAnalysisSettings("basic", {
|
|
21
|
+
* enterpriseSlug: "my-enterprise",
|
|
22
|
+
* secretScanningEnabledForNewRepositories: true,
|
|
23
|
+
* });
|
|
24
|
+
* // Full security configuration with all features enabled
|
|
25
|
+
* const comprehensive = new github.EnterpriseSecurityAnalysisSettings("comprehensive", {
|
|
26
|
+
* enterpriseSlug: "my-enterprise",
|
|
27
|
+
* advancedSecurityEnabledForNewRepositories: true,
|
|
28
|
+
* secretScanningEnabledForNewRepositories: true,
|
|
29
|
+
* secretScanningPushProtectionEnabledForNewRepositories: true,
|
|
30
|
+
* secretScanningValidityChecksEnabled: true,
|
|
31
|
+
* secretScanningPushProtectionCustomLink: "https://octokit.com/security-guidelines",
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* ## Notes
|
|
36
|
+
*
|
|
37
|
+
* > **Note:** This resource requires a GitHub Enterprise account and enterprise admin permissions.
|
|
38
|
+
*
|
|
39
|
+
* > **Note:** Advanced Security features require a GitHub Advanced Security license.
|
|
40
|
+
*
|
|
41
|
+
* When this resource is destroyed, all security analysis settings will be reset to disabled defaults for security reasons.
|
|
42
|
+
*
|
|
43
|
+
* ## Dependencies
|
|
44
|
+
*
|
|
45
|
+
* This resource manages the following security features:
|
|
46
|
+
*
|
|
47
|
+
* - **Advanced Security**: Code scanning, secret scanning, and dependency review
|
|
48
|
+
* - **Secret Scanning**: Automatic detection of secrets in code
|
|
49
|
+
* - **Push Protection**: Prevents secrets from being committed to repositories
|
|
50
|
+
* - **Validity Checks**: Verifies that detected secrets are actually valid
|
|
51
|
+
*
|
|
52
|
+
* These settings only apply to **new repositories** created after the settings are enabled. Existing repositories are not affected and must be configured individually.
|
|
53
|
+
*
|
|
54
|
+
* ## Import
|
|
55
|
+
*
|
|
56
|
+
* Enterprise security analysis settings can be imported using the enterprise slug:
|
|
57
|
+
*
|
|
58
|
+
* ```sh
|
|
59
|
+
* $ pulumi import github:index/enterpriseSecurityAnalysisSettings:EnterpriseSecurityAnalysisSettings example my-enterprise
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
class EnterpriseSecurityAnalysisSettings extends pulumi.CustomResource {
|
|
63
|
+
/**
|
|
64
|
+
* Get an existing EnterpriseSecurityAnalysisSettings resource's state with the given name, ID, and optional extra
|
|
65
|
+
* properties used to qualify the lookup.
|
|
66
|
+
*
|
|
67
|
+
* @param name The _unique_ name of the resulting resource.
|
|
68
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
69
|
+
* @param state Any extra arguments used during the lookup.
|
|
70
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
71
|
+
*/
|
|
72
|
+
static get(name, id, state, opts) {
|
|
73
|
+
return new EnterpriseSecurityAnalysisSettings(name, state, { ...opts, id: id });
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Returns true if the given object is an instance of EnterpriseSecurityAnalysisSettings. This is designed to work even
|
|
77
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
78
|
+
*/
|
|
79
|
+
static isInstance(obj) {
|
|
80
|
+
if (obj === undefined || obj === null) {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
return obj['__pulumiType'] === EnterpriseSecurityAnalysisSettings.__pulumiType;
|
|
84
|
+
}
|
|
85
|
+
constructor(name, argsOrState, opts) {
|
|
86
|
+
let resourceInputs = {};
|
|
87
|
+
opts = opts || {};
|
|
88
|
+
if (opts.id) {
|
|
89
|
+
const state = argsOrState;
|
|
90
|
+
resourceInputs["advancedSecurityEnabledForNewRepositories"] = state?.advancedSecurityEnabledForNewRepositories;
|
|
91
|
+
resourceInputs["enterpriseSlug"] = state?.enterpriseSlug;
|
|
92
|
+
resourceInputs["secretScanningEnabledForNewRepositories"] = state?.secretScanningEnabledForNewRepositories;
|
|
93
|
+
resourceInputs["secretScanningPushProtectionCustomLink"] = state?.secretScanningPushProtectionCustomLink;
|
|
94
|
+
resourceInputs["secretScanningPushProtectionEnabledForNewRepositories"] = state?.secretScanningPushProtectionEnabledForNewRepositories;
|
|
95
|
+
resourceInputs["secretScanningValidityChecksEnabled"] = state?.secretScanningValidityChecksEnabled;
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
const args = argsOrState;
|
|
99
|
+
if (args?.enterpriseSlug === undefined && !opts.urn) {
|
|
100
|
+
throw new Error("Missing required property 'enterpriseSlug'");
|
|
101
|
+
}
|
|
102
|
+
resourceInputs["advancedSecurityEnabledForNewRepositories"] = args?.advancedSecurityEnabledForNewRepositories;
|
|
103
|
+
resourceInputs["enterpriseSlug"] = args?.enterpriseSlug;
|
|
104
|
+
resourceInputs["secretScanningEnabledForNewRepositories"] = args?.secretScanningEnabledForNewRepositories;
|
|
105
|
+
resourceInputs["secretScanningPushProtectionCustomLink"] = args?.secretScanningPushProtectionCustomLink;
|
|
106
|
+
resourceInputs["secretScanningPushProtectionEnabledForNewRepositories"] = args?.secretScanningPushProtectionEnabledForNewRepositories;
|
|
107
|
+
resourceInputs["secretScanningValidityChecksEnabled"] = args?.secretScanningValidityChecksEnabled;
|
|
108
|
+
}
|
|
109
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
110
|
+
super(EnterpriseSecurityAnalysisSettings.__pulumiType, name, resourceInputs, opts);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
exports.EnterpriseSecurityAnalysisSettings = EnterpriseSecurityAnalysisSettings;
|
|
114
|
+
/** @internal */
|
|
115
|
+
EnterpriseSecurityAnalysisSettings.__pulumiType = 'github:index/enterpriseSecurityAnalysisSettings:EnterpriseSecurityAnalysisSettings';
|
|
116
|
+
//# sourceMappingURL=enterpriseSecurityAnalysisSettings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enterpriseSecurityAnalysisSett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