[BUG]: github_repository_environment resouce fails when reviewers (users or teams) are passed to GHE 3.10 #2457
Labels
Status: Triage
This is being looked at and prioritized
Type: Bug
Something isn't working as documented
Expected Behavior
Environment should be created on Github Enterprise 3.10 regardless of the fact if reviewers are passed or not.
Actual Behavior
Environment fail to be created on GH Enterprise 3.10 when I use reviewers block with teams or users.
It turns out the GHE 3.10 doesn't have that tick available - https://i0.wp.com/user-images.githubusercontent.com/25389593/275635597-ad54403a-5898-4e20-b2bd-c4677ba95d5d.png
If no reviewers are provided, the
prevent_self_review
key is accepted.The actual problem is when you pass reviewers - then
prevent_self_review
is not expected.The error:
│ Error: PUT https://github-instance.net/api/v3/repos/ORG/test-repo/environments/PRODUCTION: 422 Invalid request.
│
│ Invalid input: "prevent_self_review" is not a permitted key. []
Terraform Version
OpenTofu v1.8.5
on darwin_amd64
terragrunt version 0.66.0
GitHub Enterprise Server 3.10
Affected Resource(s)
Terraform Configuration Files
Steps to Reproduce
terragrunt apply
Debug Output
Panic Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: