integrations / terraform-provider-github

Terraform GitHub provider
https://www.terraform.io/docs/providers/github/
MIT License
891 stars 736 forks source link

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

Open cailen opened 5 months ago

cailen commented 5 months ago

Describe the need

I propose support be added for deployment protection rules, specifically custom deployment protection rules. This was implemented in go-github here (https://github.com/google/go-github/pull/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:

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

cailen commented 5 months ago

https://github.com/integrations/terraform-provider-github/pull/2188 would resolve the go-github version.