-
Notifications
You must be signed in to change notification settings - Fork 927
Open
Labels
Type: FeatureNew feature or requestNew feature or request
Milestone
Description
Describe the need
I propose support be added for deployment protection rules, specifically custom deployment protection rules. This was implemented in go-github here (google/go-github#3050). This allows for Github Apps configured with the correct permissions to be used as a gate for Github Environment deployments. The only resources I currently see as of v6.2.1 are:
github_repository_environment_deployment_policy- This only sets policies for what branch is allowed to deploy a specific environment.github_repository_environment- This only allows you to set who is allows to review a specific environment and toggles for if it can only be deployed on protected branches or custom branch policies defined ingithub_repository_environment_deployment_policy.
Documentation:
- https://docs.github.com/en/enterprise-cloud@latest/actions/deployment/protecting-deployments/creating-custom-deployment-protection-rules
- https://docs.github.com/en/enterprise-cloud@latest/actions/deployment/protecting-deployments/configuring-custom-deployment-protection-rules
API:
go-github:
Thanks!
SDK Version
go-github v59.0.0+; terraform-provider-github v6.2.1
API Version
REST 2022-11-28
Relevant log output
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
zMeadz, shreya-verma-mck, caevv, dion-gionet, austinpray-mixpanel and 4 more
Metadata
Metadata
Assignees
Labels
Type: FeatureNew feature or requestNew feature or request
Type
Projects
Status
✅ Done
Status
Done