@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
package/codespacesUserSecret.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.CodespacesUserSecret = void 0;
|
|
@@ -8,25 +8,6 @@ const utilities = require("./utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* ## Example Usage
|
|
10
10
|
*
|
|
11
|
-
* ```typescript
|
|
12
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
-
* import * as github from "@pulumi/github";
|
|
14
|
-
*
|
|
15
|
-
* const repo = github.getRepository({
|
|
16
|
-
* fullName: "my-org/repo",
|
|
17
|
-
* });
|
|
18
|
-
* const exampleSecretCodespacesUserSecret = new github.CodespacesUserSecret("exampleSecretCodespacesUserSecret", {
|
|
19
|
-
* secretName: "example_secret_name",
|
|
20
|
-
* plaintextValue: _var.some_secret_string,
|
|
21
|
-
* selectedRepositoryIds: [repo.then(repo => repo.repoId)],
|
|
22
|
-
* });
|
|
23
|
-
* const exampleSecretIndex_codespacesUserSecretCodespacesUserSecret = new github.CodespacesUserSecret("exampleSecretIndex/codespacesUserSecretCodespacesUserSecret", {
|
|
24
|
-
* secretName: "example_secret_name",
|
|
25
|
-
* encryptedValue: _var.some_encrypted_secret_string,
|
|
26
|
-
* selectedRepositoryIds: [repo.then(repo => repo.repoId)],
|
|
27
|
-
* });
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
11
|
* ## Import
|
|
31
12
|
*
|
|
32
13
|
* This resource can be imported using an ID made up of the secret name:
|
|
@@ -35,9 +16,9 @@ const utilities = require("./utilities");
|
|
|
35
16
|
* $ pulumi import github:index/codespacesUserSecret:CodespacesUserSecret test_secret test_secret_name
|
|
36
17
|
* ```
|
|
37
18
|
*
|
|
38
|
-
*
|
|
19
|
+
* NOTE: the implementation is limited in that it won't fetch the value of the
|
|
39
20
|
*
|
|
40
|
-
*
|
|
21
|
+
* `plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.
|
|
41
22
|
*/
|
|
42
23
|
class CodespacesUserSecret extends pulumi.CustomResource {
|
|
43
24
|
/**
|
|
@@ -50,7 +31,7 @@ class CodespacesUserSecret extends pulumi.CustomResource {
|
|
|
50
31
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
51
32
|
*/
|
|
52
33
|
static get(name, id, state, opts) {
|
|
53
|
-
return new CodespacesUserSecret(name, state,
|
|
34
|
+
return new CodespacesUserSecret(name, state, { ...opts, id: id });
|
|
54
35
|
}
|
|
55
36
|
/**
|
|
56
37
|
* Returns true if the given object is an instance of CodespacesUserSecret. This is designed to work even
|
|
@@ -67,22 +48,22 @@ class CodespacesUserSecret extends pulumi.CustomResource {
|
|
|
67
48
|
opts = opts || {};
|
|
68
49
|
if (opts.id) {
|
|
69
50
|
const state = argsOrState;
|
|
70
|
-
resourceInputs["createdAt"] = state
|
|
71
|
-
resourceInputs["encryptedValue"] = state
|
|
72
|
-
resourceInputs["plaintextValue"] = state
|
|
73
|
-
resourceInputs["secretName"] = state
|
|
74
|
-
resourceInputs["selectedRepositoryIds"] = state
|
|
75
|
-
resourceInputs["updatedAt"] = state
|
|
51
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
52
|
+
resourceInputs["encryptedValue"] = state?.encryptedValue;
|
|
53
|
+
resourceInputs["plaintextValue"] = state?.plaintextValue;
|
|
54
|
+
resourceInputs["secretName"] = state?.secretName;
|
|
55
|
+
resourceInputs["selectedRepositoryIds"] = state?.selectedRepositoryIds;
|
|
56
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
76
57
|
}
|
|
77
58
|
else {
|
|
78
59
|
const args = argsOrState;
|
|
79
|
-
if (
|
|
60
|
+
if (args?.secretName === undefined && !opts.urn) {
|
|
80
61
|
throw new Error("Missing required property 'secretName'");
|
|
81
62
|
}
|
|
82
|
-
resourceInputs["encryptedValue"] =
|
|
83
|
-
resourceInputs["plaintextValue"] =
|
|
84
|
-
resourceInputs["secretName"] = args
|
|
85
|
-
resourceInputs["selectedRepositoryIds"] = args
|
|
63
|
+
resourceInputs["encryptedValue"] = args?.encryptedValue ? pulumi.secret(args.encryptedValue) : undefined;
|
|
64
|
+
resourceInputs["plaintextValue"] = args?.plaintextValue ? pulumi.secret(args.plaintextValue) : undefined;
|
|
65
|
+
resourceInputs["secretName"] = args?.secretName;
|
|
66
|
+
resourceInputs["selectedRepositoryIds"] = args?.selectedRepositoryIds;
|
|
86
67
|
resourceInputs["createdAt"] = undefined /*out*/;
|
|
87
68
|
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
88
69
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codespacesUserSecret.js","sourceRoot":"","sources":["../codespacesUserSecret.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"codespacesUserSecret.js","sourceRoot":"","sources":["../codespacesUserSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiC,EAAE,IAAmC;QAC/H,OAAO,IAAI,oBAAoB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3E,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,oBAAoB,CAAC,YAAY,CAAC;IACrE,CAAC;IAmCD,YAAY,IAAY,EAAE,WAAkE,EAAE,IAAmC;QAC7H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoD,CAAC;YACnE,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,uBAAu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ACO,iCAAY,GAAG,wDAAwD,CAAC"}
|
package/config/index.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
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
5
|
if (k2 === undefined) k2 = k;
|
package/config/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;AAEjF,kBAAkB;AAClB,yCAAuB"}
|
package/config/vars.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as outputs from "../types/output";
|
|
2
2
|
/**
|
|
3
|
-
* The GitHub App credentials used to connect to GitHub. Conflicts with `token`. Anonymous mode is enabled if both `token`
|
|
4
|
-
* and `appAuth` are not set.
|
|
3
|
+
* The GitHub App credentials used to connect to GitHub. Conflicts with `token`. Anonymous mode is enabled if both `token` and `appAuth` are not set.
|
|
5
4
|
*/
|
|
6
5
|
export declare const appAuth: outputs.config.AppAuth | undefined;
|
|
7
6
|
/**
|
|
@@ -12,6 +11,10 @@ export declare const baseUrl: string;
|
|
|
12
11
|
* Enable `insecure` mode for testing purposes
|
|
13
12
|
*/
|
|
14
13
|
export declare const insecure: boolean | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Number of items per page for paginationDefaults to 100
|
|
16
|
+
*/
|
|
17
|
+
export declare const maxPerPage: number | undefined;
|
|
15
18
|
/**
|
|
16
19
|
* Number of times to retry a request after receiving an error status codeDefaults to 3
|
|
17
20
|
*/
|
|
@@ -25,9 +28,7 @@ export declare const organization: string | undefined;
|
|
|
25
28
|
*/
|
|
26
29
|
export declare const owner: string | undefined;
|
|
27
30
|
/**
|
|
28
|
-
* Allow the provider to make parallel API calls to GitHub. You may want to set it to true when you have a private Github
|
|
29
|
-
* Enterprise without strict rate limits. Although, it is not possible to enable this setting on github.com because we
|
|
30
|
-
* enforce the respect of github.com's best practices to avoid hitting abuse rate limitsDefaults to false if not set
|
|
31
|
+
* Allow the provider to make parallel API calls to GitHub. You may want to set it to true when you have a private Github Enterprise without strict rate limits. While it is possible to enable this setting on github.com, github.com's best practices recommend using serialization to avoid hitting abuse rate limitsDefaults to false if not set
|
|
31
32
|
*/
|
|
32
33
|
export declare const parallelRequests: boolean | undefined;
|
|
33
34
|
/**
|
|
@@ -35,13 +36,11 @@ export declare const parallelRequests: boolean | undefined;
|
|
|
35
36
|
*/
|
|
36
37
|
export declare const readDelayMs: number | undefined;
|
|
37
38
|
/**
|
|
38
|
-
* Amount of time in milliseconds to sleep in between requests to GitHub API after an error response. Defaults to 1000ms or
|
|
39
|
-
* 1s if not set, the maxRetries must be set to greater than zero.
|
|
39
|
+
* Amount of time in milliseconds to sleep in between requests to GitHub API after an error response. Defaults to 1000ms or 1s if not set, the maxRetries must be set to greater than zero.
|
|
40
40
|
*/
|
|
41
41
|
export declare const retryDelayMs: number | undefined;
|
|
42
42
|
/**
|
|
43
|
-
* Allow the provider to retry after receiving an error status code, the maxRetries should be set for this to workDefaults
|
|
44
|
-
* to [500, 502, 503, 504]
|
|
43
|
+
* Allow the provider to retry after receiving an error status code, the maxRetries should be set for this to workDefaults to [500, 502, 503, 504]
|
|
45
44
|
*/
|
|
46
45
|
export declare const retryableErrors: number[] | undefined;
|
|
47
46
|
/**
|
package/config/vars.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
|
const pulumi = require("@pulumi/pulumi");
|
|
@@ -13,8 +13,7 @@ Object.defineProperty(exports, "appAuth", {
|
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "baseUrl", {
|
|
15
15
|
get() {
|
|
16
|
-
|
|
17
|
-
return (_a = __config.get("baseUrl")) !== null && _a !== void 0 ? _a : (utilities.getEnv("GITHUB_BASE_URL") || "https://api.github.com/");
|
|
16
|
+
return __config.get("baseUrl") ?? (utilities.getEnv("GITHUB_BASE_URL") || "https://api.github.com/");
|
|
18
17
|
},
|
|
19
18
|
enumerable: true,
|
|
20
19
|
});
|
|
@@ -24,6 +23,12 @@ Object.defineProperty(exports, "insecure", {
|
|
|
24
23
|
},
|
|
25
24
|
enumerable: true,
|
|
26
25
|
});
|
|
26
|
+
Object.defineProperty(exports, "maxPerPage", {
|
|
27
|
+
get() {
|
|
28
|
+
return __config.getObject("maxPerPage");
|
|
29
|
+
},
|
|
30
|
+
enumerable: true,
|
|
31
|
+
});
|
|
27
32
|
Object.defineProperty(exports, "maxRetries", {
|
|
28
33
|
get() {
|
|
29
34
|
return __config.getObject("maxRetries");
|
|
@@ -68,8 +73,7 @@ Object.defineProperty(exports, "retryableErrors", {
|
|
|
68
73
|
});
|
|
69
74
|
Object.defineProperty(exports, "token", {
|
|
70
75
|
get() {
|
|
71
|
-
|
|
72
|
-
return (_a = __config.get("token")) !== null && _a !== void 0 ? _a : utilities.getEnv("GITHUB_TOKEN");
|
|
76
|
+
return __config.get("token") ?? utilities.getEnv("GITHUB_TOKEN");
|
|
73
77
|
},
|
|
74
78
|
enumerable: true,
|
|
75
79
|
});
|
package/config/vars.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"vars.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C,OAAO,QAAQ,CAAC,SAAS,CAAS,cAAc,CAAC,CAAC;IACtD,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
|
|
@@ -2,43 +2,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
/**
|
|
3
3
|
* ## Example Usage
|
|
4
4
|
*
|
|
5
|
-
* ```typescript
|
|
6
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
7
|
-
* import * as github from "@pulumi/github";
|
|
8
|
-
*
|
|
9
|
-
* const exampleSecretDependabotOrganizationSecret = new github.DependabotOrganizationSecret("exampleSecretDependabotOrganizationSecret", {
|
|
10
|
-
* secretName: "example_secret_name",
|
|
11
|
-
* visibility: "private",
|
|
12
|
-
* plaintextValue: _var.some_secret_string,
|
|
13
|
-
* });
|
|
14
|
-
* const exampleSecretIndex_dependabotOrganizationSecretDependabotOrganizationSecret = new github.DependabotOrganizationSecret("exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret", {
|
|
15
|
-
* secretName: "example_secret_name",
|
|
16
|
-
* visibility: "private",
|
|
17
|
-
* encryptedValue: _var.some_encrypted_secret_string,
|
|
18
|
-
* });
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* ```typescript
|
|
22
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
-
* import * as github from "@pulumi/github";
|
|
24
|
-
*
|
|
25
|
-
* const repo = github.getRepository({
|
|
26
|
-
* fullName: "my-org/repo",
|
|
27
|
-
* });
|
|
28
|
-
* const exampleSecretDependabotOrganizationSecret = new github.DependabotOrganizationSecret("exampleSecretDependabotOrganizationSecret", {
|
|
29
|
-
* secretName: "example_secret_name",
|
|
30
|
-
* visibility: "selected",
|
|
31
|
-
* plaintextValue: _var.some_secret_string,
|
|
32
|
-
* selectedRepositoryIds: [repo.then(repo => repo.repoId)],
|
|
33
|
-
* });
|
|
34
|
-
* const exampleSecretIndex_dependabotOrganizationSecretDependabotOrganizationSecret = new github.DependabotOrganizationSecret("exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret", {
|
|
35
|
-
* secretName: "example_secret_name",
|
|
36
|
-
* visibility: "selected",
|
|
37
|
-
* encryptedValue: _var.some_encrypted_secret_string,
|
|
38
|
-
* selectedRepositoryIds: [repo.then(repo => repo.repoId)],
|
|
39
|
-
* });
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
5
|
* ## Import
|
|
43
6
|
*
|
|
44
7
|
* This resource can be imported using an ID made up of the secret name:
|
|
@@ -47,9 +10,9 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
47
10
|
* $ pulumi import github:index/dependabotOrganizationSecret:DependabotOrganizationSecret test_secret test_secret_name
|
|
48
11
|
* ```
|
|
49
12
|
*
|
|
50
|
-
*
|
|
13
|
+
* NOTE: the implementation is limited in that it won't fetch the value of the
|
|
51
14
|
*
|
|
52
|
-
*
|
|
15
|
+
* `plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.
|
|
53
16
|
*/
|
|
54
17
|
export declare class DependabotOrganizationSecret extends pulumi.CustomResource {
|
|
55
18
|
/**
|
|
@@ -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.DependabotOrganizationSecret = void 0;
|
|
@@ -8,43 +8,6 @@ const utilities = require("./utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* ## Example Usage
|
|
10
10
|
*
|
|
11
|
-
* ```typescript
|
|
12
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
-
* import * as github from "@pulumi/github";
|
|
14
|
-
*
|
|
15
|
-
* const exampleSecretDependabotOrganizationSecret = new github.DependabotOrganizationSecret("exampleSecretDependabotOrganizationSecret", {
|
|
16
|
-
* secretName: "example_secret_name",
|
|
17
|
-
* visibility: "private",
|
|
18
|
-
* plaintextValue: _var.some_secret_string,
|
|
19
|
-
* });
|
|
20
|
-
* const exampleSecretIndex_dependabotOrganizationSecretDependabotOrganizationSecret = new github.DependabotOrganizationSecret("exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret", {
|
|
21
|
-
* secretName: "example_secret_name",
|
|
22
|
-
* visibility: "private",
|
|
23
|
-
* encryptedValue: _var.some_encrypted_secret_string,
|
|
24
|
-
* });
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* ```typescript
|
|
28
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
29
|
-
* import * as github from "@pulumi/github";
|
|
30
|
-
*
|
|
31
|
-
* const repo = github.getRepository({
|
|
32
|
-
* fullName: "my-org/repo",
|
|
33
|
-
* });
|
|
34
|
-
* const exampleSecretDependabotOrganizationSecret = new github.DependabotOrganizationSecret("exampleSecretDependabotOrganizationSecret", {
|
|
35
|
-
* secretName: "example_secret_name",
|
|
36
|
-
* visibility: "selected",
|
|
37
|
-
* plaintextValue: _var.some_secret_string,
|
|
38
|
-
* selectedRepositoryIds: [repo.then(repo => repo.repoId)],
|
|
39
|
-
* });
|
|
40
|
-
* const exampleSecretIndex_dependabotOrganizationSecretDependabotOrganizationSecret = new github.DependabotOrganizationSecret("exampleSecretIndex/dependabotOrganizationSecretDependabotOrganizationSecret", {
|
|
41
|
-
* secretName: "example_secret_name",
|
|
42
|
-
* visibility: "selected",
|
|
43
|
-
* encryptedValue: _var.some_encrypted_secret_string,
|
|
44
|
-
* selectedRepositoryIds: [repo.then(repo => repo.repoId)],
|
|
45
|
-
* });
|
|
46
|
-
* ```
|
|
47
|
-
*
|
|
48
11
|
* ## Import
|
|
49
12
|
*
|
|
50
13
|
* This resource can be imported using an ID made up of the secret name:
|
|
@@ -53,9 +16,9 @@ const utilities = require("./utilities");
|
|
|
53
16
|
* $ pulumi import github:index/dependabotOrganizationSecret:DependabotOrganizationSecret test_secret test_secret_name
|
|
54
17
|
* ```
|
|
55
18
|
*
|
|
56
|
-
*
|
|
19
|
+
* NOTE: the implementation is limited in that it won't fetch the value of the
|
|
57
20
|
*
|
|
58
|
-
*
|
|
21
|
+
* `plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.
|
|
59
22
|
*/
|
|
60
23
|
class DependabotOrganizationSecret extends pulumi.CustomResource {
|
|
61
24
|
/**
|
|
@@ -68,7 +31,7 @@ class DependabotOrganizationSecret extends pulumi.CustomResource {
|
|
|
68
31
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
69
32
|
*/
|
|
70
33
|
static get(name, id, state, opts) {
|
|
71
|
-
return new DependabotOrganizationSecret(name, state,
|
|
34
|
+
return new DependabotOrganizationSecret(name, state, { ...opts, id: id });
|
|
72
35
|
}
|
|
73
36
|
/**
|
|
74
37
|
* Returns true if the given object is an instance of DependabotOrganizationSecret. This is designed to work even
|
|
@@ -85,27 +48,27 @@ class DependabotOrganizationSecret extends pulumi.CustomResource {
|
|
|
85
48
|
opts = opts || {};
|
|
86
49
|
if (opts.id) {
|
|
87
50
|
const state = argsOrState;
|
|
88
|
-
resourceInputs["createdAt"] = state
|
|
89
|
-
resourceInputs["encryptedValue"] = state
|
|
90
|
-
resourceInputs["plaintextValue"] = state
|
|
91
|
-
resourceInputs["secretName"] = state
|
|
92
|
-
resourceInputs["selectedRepositoryIds"] = state
|
|
93
|
-
resourceInputs["updatedAt"] = state
|
|
94
|
-
resourceInputs["visibility"] = state
|
|
51
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
52
|
+
resourceInputs["encryptedValue"] = state?.encryptedValue;
|
|
53
|
+
resourceInputs["plaintextValue"] = state?.plaintextValue;
|
|
54
|
+
resourceInputs["secretName"] = state?.secretName;
|
|
55
|
+
resourceInputs["selectedRepositoryIds"] = state?.selectedRepositoryIds;
|
|
56
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
57
|
+
resourceInputs["visibility"] = state?.visibility;
|
|
95
58
|
}
|
|
96
59
|
else {
|
|
97
60
|
const args = argsOrState;
|
|
98
|
-
if (
|
|
61
|
+
if (args?.secretName === undefined && !opts.urn) {
|
|
99
62
|
throw new Error("Missing required property 'secretName'");
|
|
100
63
|
}
|
|
101
|
-
if (
|
|
64
|
+
if (args?.visibility === undefined && !opts.urn) {
|
|
102
65
|
throw new Error("Missing required property 'visibility'");
|
|
103
66
|
}
|
|
104
|
-
resourceInputs["encryptedValue"] =
|
|
105
|
-
resourceInputs["plaintextValue"] =
|
|
106
|
-
resourceInputs["secretName"] = args
|
|
107
|
-
resourceInputs["selectedRepositoryIds"] = args
|
|
108
|
-
resourceInputs["visibility"] = args
|
|
67
|
+
resourceInputs["encryptedValue"] = args?.encryptedValue ? pulumi.secret(args.encryptedValue) : undefined;
|
|
68
|
+
resourceInputs["plaintextValue"] = args?.plaintextValue ? pulumi.secret(args.plaintextValue) : undefined;
|
|
69
|
+
resourceInputs["secretName"] = args?.secretName;
|
|
70
|
+
resourceInputs["selectedRepositoryIds"] = args?.selectedRepositoryIds;
|
|
71
|
+
resourceInputs["visibility"] = args?.visibility;
|
|
109
72
|
resourceInputs["createdAt"] = undefined /*out*/;
|
|
110
73
|
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
111
74
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dependabotOrganizationSecret.js","sourceRoot":"","sources":["../dependabotOrganizationSecret.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"dependabotOrganizationSecret.js","sourceRoot":"","sources":["../dependabotOrganizationSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,MAAa,4BAA6B,SAAQ,MAAM,CAAC,cAAc;IACnE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,E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15
|
* fullName: "my-org/repo",
|
|
16
16
|
* });
|
|
17
|
-
* const exampleSecret = new github.DependabotOrganizationSecret("
|
|
17
|
+
* const exampleSecret = new github.DependabotOrganizationSecret("example_secret", {
|
|
18
18
|
* secretName: "example_secret_name",
|
|
19
19
|
* visibility: "private",
|
|
20
|
-
* plaintextValue:
|
|
20
|
+
* plaintextValue: someSecretString,
|
|
21
21
|
* });
|
|
22
|
-
* const orgSecretRepos = new github.DependabotOrganizationSecretRepositories("
|
|
22
|
+
* const orgSecretRepos = new github.DependabotOrganizationSecretRepositories("org_secret_repos", {
|
|
23
23
|
* secretName: exampleSecret.secretName,
|
|
24
24
|
* selectedRepositoryIds: [repo.then(repo => repo.repoId)],
|
|
25
25
|
* });
|
|
@@ -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.DependabotOrganizationSecretRepositories = void 0;
|
|
@@ -20,12 +20,12 @@ const utilities = require("./utilities");
|
|
|
20
20
|
* const repo = github.getRepository({
|
|
21
21
|
* fullName: "my-org/repo",
|
|
22
22
|
* });
|
|
23
|
-
* const exampleSecret = new github.DependabotOrganizationSecret("
|
|
23
|
+
* const exampleSecret = new github.DependabotOrganizationSecret("example_secret", {
|
|
24
24
|
* secretName: "example_secret_name",
|
|
25
25
|
* visibility: "private",
|
|
26
|
-
* plaintextValue:
|
|
26
|
+
* plaintextValue: someSecretString,
|
|
27
27
|
* });
|
|
28
|
-
* const orgSecretRepos = new github.DependabotOrganizationSecretRepositories("
|
|
28
|
+
* const orgSecretRepos = new github.DependabotOrganizationSecretRepositories("org_secret_repos", {
|
|
29
29
|
* secretName: exampleSecret.secretName,
|
|
30
30
|
* selectedRepositoryIds: [repo.then(repo => repo.repoId)],
|
|
31
31
|
* });
|
|
@@ -50,7 +50,7 @@ class DependabotOrganizationSecretRepositories extends pulumi.CustomResource {
|
|
|
50
50
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
51
51
|
*/
|
|
52
52
|
static get(name, id, state, opts) {
|
|
53
|
-
return new DependabotOrganizationSecretRepositories(name, state,
|
|
53
|
+
return new DependabotOrganizationSecretRepositories(name, state, { ...opts, id: id });
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
56
|
* Returns true if the given object is an instance of DependabotOrganizationSecretRepositories. This is designed to work even
|
|
@@ -67,19 +67,19 @@ class DependabotOrganizationSecretRepositories extends pulumi.CustomResource {
|
|
|
67
67
|
opts = opts || {};
|
|
68
68
|
if (opts.id) {
|
|
69
69
|
const state = argsOrState;
|
|
70
|
-
resourceInputs["secretName"] = state
|
|
71
|
-
resourceInputs["selectedRepositoryIds"] = state
|
|
70
|
+
resourceInputs["secretName"] = state?.secretName;
|
|
71
|
+
resourceInputs["selectedRepositoryIds"] = state?.selectedRepositoryIds;
|
|
72
72
|
}
|
|
73
73
|
else {
|
|
74
74
|
const args = argsOrState;
|
|
75
|
-
if (
|
|
75
|
+
if (args?.secretName === undefined && !opts.urn) {
|
|
76
76
|
throw new Error("Missing required property 'secretName'");
|
|
77
77
|
}
|
|
78
|
-
if (
|
|
78
|
+
if (args?.selectedRepositoryIds === undefined && !opts.urn) {
|
|
79
79
|
throw new Error("Missing required property 'selectedRepositoryIds'");
|
|
80
80
|
}
|
|
81
|
-
resourceInputs["secretName"] = args
|
|
82
|
-
resourceInputs["selectedRepositoryIds"] = args
|
|
81
|
+
resourceInputs["secretName"] = args?.secretName;
|
|
82
|
+
resourceInputs["selectedRepositoryIds"] = args?.selectedRepositoryIds;
|
|
83
83
|
}
|
|
84
84
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
85
85
|
super(DependabotOrganizationSecretRepositories.__pulumiType, name, resourceInputs, opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dependabotOrganizationSecretRepositories.js","sourceRoot":"","sources":["../dependabotOrganizationSecretRepositories.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"dependabotOrganizationSecretRepositories.js","sourceRoot":"","sources":["../dependabotOrganizationSecretRepositories.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAa,wCAAyC,SAAQ,MAAM,CAAC,cAAc;IAC/E;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqD,EAAE,IAAmC;QACnJ,OAAO,IAAI,wCAAwC,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/F,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,wCAAwC,CAAC,YAAY,CAAC;IACzF,CAAC;IAmBD,YAAY,IAAY,EAAE,WAA0G,EAAE,IAAmC;QACrK,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwE,CAAC;YACvF,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,EAAE,UAAU,CAAC;YACjD,cAAc,CAAC,uBAAuB,CAAC,GAAG,KAAK,EAAE,qBAAqB,CAAC;SAC1E;aAAM;YACH,MAAM,IAAI,GAAG,WAAuE,CAAC;YACrF,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,qBAAqB,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACxD,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;aACxE;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,EAAE,qBAAqB,CAAC;SACzE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,wCAAwC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7F,CAAC;;AAjEL,4FAkEC;AApDG,gBAAgB;AACO,qDAAY,GAAG,gGAAgG,CAAC"}
|
package/dependabotSecret.d.ts
CHANGED
|
@@ -2,33 +2,15 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
/**
|
|
3
3
|
* ## Example Usage
|
|
4
4
|
*
|
|
5
|
-
* ```typescript
|
|
6
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
7
|
-
* import * as github from "@pulumi/github";
|
|
8
|
-
*
|
|
9
|
-
* const examplePublicKey = github.getDependabotPublicKey({
|
|
10
|
-
* repository: "example_repository",
|
|
11
|
-
* });
|
|
12
|
-
* const exampleSecretDependabotSecret = new github.DependabotSecret("exampleSecretDependabotSecret", {
|
|
13
|
-
* repository: "example_repository",
|
|
14
|
-
* secretName: "example_secret_name",
|
|
15
|
-
* plaintextValue: _var.some_secret_string,
|
|
16
|
-
* });
|
|
17
|
-
* const exampleSecretIndex_dependabotSecretDependabotSecret = new github.DependabotSecret("exampleSecretIndex/dependabotSecretDependabotSecret", {
|
|
18
|
-
* repository: "example_repository",
|
|
19
|
-
* secretName: "example_secret_name",
|
|
20
|
-
* encryptedValue: _var.some_encrypted_secret_string,
|
|
21
|
-
* });
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
5
|
* ## Import
|
|
25
6
|
*
|
|
26
7
|
* This resource can be imported using an ID made up of the `repository` and `secret_name`:
|
|
27
8
|
*
|
|
28
9
|
* ```sh
|
|
29
|
-
*
|
|
10
|
+
* $ pulumi import github:index/dependabotSecret:DependabotSecret example_secret example_repository/example_secret
|
|
30
11
|
* ```
|
|
31
|
-
*
|
|
12
|
+
* NOTE: the implementation is limited in that it won't fetch the value of the
|
|
13
|
+
* `plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.
|
|
32
14
|
*/
|
|
33
15
|
export declare class DependabotSecret extends pulumi.CustomResource {
|
|
34
16
|
/**
|
package/dependabotSecret.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.DependabotSecret = void 0;
|
|
@@ -8,33 +8,15 @@ const utilities = require("./utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* ## Example Usage
|
|
10
10
|
*
|
|
11
|
-
* ```typescript
|
|
12
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
-
* import * as github from "@pulumi/github";
|
|
14
|
-
*
|
|
15
|
-
* const examplePublicKey = github.getDependabotPublicKey({
|
|
16
|
-
* repository: "example_repository",
|
|
17
|
-
* });
|
|
18
|
-
* const exampleSecretDependabotSecret = new github.DependabotSecret("exampleSecretDependabotSecret", {
|
|
19
|
-
* repository: "example_repository",
|
|
20
|
-
* secretName: "example_secret_name",
|
|
21
|
-
* plaintextValue: _var.some_secret_string,
|
|
22
|
-
* });
|
|
23
|
-
* const exampleSecretIndex_dependabotSecretDependabotSecret = new github.DependabotSecret("exampleSecretIndex/dependabotSecretDependabotSecret", {
|
|
24
|
-
* repository: "example_repository",
|
|
25
|
-
* secretName: "example_secret_name",
|
|
26
|
-
* encryptedValue: _var.some_encrypted_secret_string,
|
|
27
|
-
* });
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
11
|
* ## Import
|
|
31
12
|
*
|
|
32
13
|
* This resource can be imported using an ID made up of the `repository` and `secret_name`:
|
|
33
14
|
*
|
|
34
15
|
* ```sh
|
|
35
|
-
*
|
|
16
|
+
* $ pulumi import github:index/dependabotSecret:DependabotSecret example_secret example_repository/example_secret
|
|
36
17
|
* ```
|
|
37
|
-
*
|
|
18
|
+
* NOTE: the implementation is limited in that it won't fetch the value of the
|
|
19
|
+
* `plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.
|
|
38
20
|
*/
|
|
39
21
|
class DependabotSecret extends pulumi.CustomResource {
|
|
40
22
|
/**
|
|
@@ -47,7 +29,7 @@ class DependabotSecret extends pulumi.CustomResource {
|
|
|
47
29
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
48
30
|
*/
|
|
49
31
|
static get(name, id, state, opts) {
|
|
50
|
-
return new DependabotSecret(name, state,
|
|
32
|
+
return new DependabotSecret(name, state, { ...opts, id: id });
|
|
51
33
|
}
|
|
52
34
|
/**
|
|
53
35
|
* Returns true if the given object is an instance of DependabotSecret. This is designed to work even
|
|
@@ -64,25 +46,25 @@ class DependabotSecret extends pulumi.CustomResource {
|
|
|
64
46
|
opts = opts || {};
|
|
65
47
|
if (opts.id) {
|
|
66
48
|
const state = argsOrState;
|
|
67
|
-
resourceInputs["createdAt"] = state
|
|
68
|
-
resourceInputs["encryptedValue"] = state
|
|
69
|
-
resourceInputs["plaintextValue"] = state
|
|
70
|
-
resourceInputs["repository"] = state
|
|
71
|
-
resourceInputs["secretName"] = state
|
|
72
|
-
resourceInputs["updatedAt"] = state
|
|
49
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
50
|
+
resourceInputs["encryptedValue"] = state?.encryptedValue;
|
|
51
|
+
resourceInputs["plaintextValue"] = state?.plaintextValue;
|
|
52
|
+
resourceInputs["repository"] = state?.repository;
|
|
53
|
+
resourceInputs["secretName"] = state?.secretName;
|
|
54
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
73
55
|
}
|
|
74
56
|
else {
|
|
75
57
|
const args = argsOrState;
|
|
76
|
-
if (
|
|
58
|
+
if (args?.repository === undefined && !opts.urn) {
|
|
77
59
|
throw new Error("Missing required property 'repository'");
|
|
78
60
|
}
|
|
79
|
-
if (
|
|
61
|
+
if (args?.secretName === undefined && !opts.urn) {
|
|
80
62
|
throw new Error("Missing required property 'secretName'");
|
|
81
63
|
}
|
|
82
|
-
resourceInputs["encryptedValue"] =
|
|
83
|
-
resourceInputs["plaintextValue"] =
|
|
84
|
-
resourceInputs["repository"] = args
|
|
85
|
-
resourceInputs["secretName"] = args
|
|
64
|
+
resourceInputs["encryptedValue"] = args?.encryptedValue ? pulumi.secret(args.encryptedValue) : undefined;
|
|
65
|
+
resourceInputs["plaintextValue"] = args?.plaintextValue ? pulumi.secret(args.plaintextValue) : undefined;
|
|
66
|
+
resourceInputs["repository"] = args?.repository;
|
|
67
|
+
resourceInputs["secretName"] = args?.secretName;
|
|
86
68
|
resourceInputs["createdAt"] = undefined /*out*/;
|
|
87
69
|
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
88
70
|
}
|