Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT]: Add support for deployment protection rules #2225

Open
1 task done
cailen opened this issue Apr 10, 2024 · 1 comment
Open
1 task done

[FEAT]: Add support for deployment protection rules #2225

cailen opened this issue Apr 10, 2024 · 1 comment
Labels
Type: Feature New feature or request

Comments

@cailen
Copy link
Contributor

cailen commented Apr 10, 2024

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 in github_repository_environment_deployment_policy.

Documentation:

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
@cailen cailen added Status: Triage This is being looked at and prioritized Type: Feature New feature or request labels Apr 10, 2024
@cailen
Copy link
Contributor Author

cailen commented Apr 11, 2024

#2188 would resolve the go-github version.

@kfcampbell kfcampbell removed the Status: Triage This is being looked at and prioritized label Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants