[BUG]: github_repository: 422 An enforced security configuration prevented modifying advanced security enablement. #2383
Labels
Status: Up for grabs
Issues that are ready to be worked on by anyone
Type: Bug
Something isn't working as documented
Expected Behavior
We have been using the
github_repository
resource for some time. We recently signed up for GHAS, and enabled enforcement on our repos.We expect that an
apply
of a plan like the following should succeed:Actual Behavior
The first time the terraform runs with an expected change, we get the following error:
After this run, manual inspection in the UI shows that the change is applied (in this case, allowing rebase and merge). The next run of the terraform rightfully detects that there are no changes:
Note that if I disabled enforcement of GHAS and run the
terraform apply
again when there are pending changes (in this example, toggling allow_rebase_merge between true and false), then the apply succeed with no errors.Terraform Version
Terraform v1.9.3
on darwin_amd64
Affected Resource(s)
Terraform Configuration Files
No response
Steps to Reproduce
$ terraform apply
Debug Output
No response
Panic Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: