Closed derhally closed 7 months ago
Value for allows_force_pushes should remain constant after apply even if force_push_bypassers are set
allows_force_pushes sticks to false even though it is shows enabled in the GitHub console
Terraform v1.3.8 on linux_amd64
I tested this with terraform 1.6 and the github provider vs 5.52.0 as well.
github_branch_protection
resource "github_branch_protection" "this" { repository_id = github_repository.this.node_id pattern = "main" allows_force_pushes = true force_push_bypassers = [ "org/team1" ] }
Run terraform apply
Then run terraform plan and you should see terraform trying to change allows_force_pushes from false to true
No response
Expected Behavior
Value for allows_force_pushes should remain constant after apply even if force_push_bypassers are set
Actual Behavior
allows_force_pushes sticks to false even though it is shows enabled in the GitHub console
Terraform Version
Terraform v1.3.8 on linux_amd64
I tested this with terraform 1.6 and the github provider vs 5.52.0 as well.
Affected Resource(s)
github_branch_protection
Terraform Configuration Files
Steps to Reproduce
Run terraform apply
Then run terraform plan and you should see terraform trying to change allows_force_pushes from false to true
Debug Output
No response
Panic Output
No response
Code of Conduct