[BUG]: Drift detected for allow_squash_merge, allow_update_branch delete_branch_on_merge despite no change
Expected Behavior
No drift
Actual Behavior
Drift detected for allow_squash_merge, allow_update_branch delete_branch_on_merge despite no change.
! resource "github_repository" "repo" {
! allow_squash_merge = false -> true
! allow_update_branch = false -> true
! delete_branch_on_merge = false -> true
+ merge_commit_message = "PR_TITLE"
+ merge_commit_title = "MERGE_MESSAGE"
+ squash_merge_commit_message = "PR_BODY"
+ squash_merge_commit_title = "PR_TITLE"
}
Terraform Version
v1.8.1
Affected Resource(s)
- github_repository repo
Terraform Configuration Files
No response
Steps to Reproduce
No response
Debug Output
No response
Panic Output
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Hello!
We ran into the same issue; on every plan, we have drift in random repositories, making it challenging to track real code changes and what the plan says.
Just to make sure, have you read the documentation?
Hi!
Yes, in our case, we are using GitHub App auth, but I can't find that information in the docs (Terraform registry).
https://registry.terraform.io/providers/integrations/github/latest/docs#github-app-installation
Edit:
I found it...
https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository
Thanks!
Edit 2:
I can confirm that after updating the app permissions, the drift disappeared.
Thanks @garysassano!
👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!
Thank you @garysassano I'll give that a go.