-
Notifications
You must be signed in to change notification settings - Fork 769
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
github_branch_protection is not creating restriction if only a single team is provided. #269
Comments
Hmm, I'm working on the same topic here - but seems to work here... Will post more info soon... |
For me some similar issue occurred: when a repo permissions for a team and a repo branch protection depending on the same team are created in the same run, the team is not listed in the branch protection. Deleting the protection and adding it (using terraform) again, works. The official documentation states: Thus I could image that their exists some kind of race-condition, because the team seems not to have the appropriate permissions during creation of the branch protection. Maybe an |
We have the same problem as @mmoscher, but with Terraform 0.12.16: If you assign a repository to a team, and want to use that team for branch protection, the assignment works, but the team is not set for branch protection (it actually is set in the state file, but not on GitHub). If you then unset the team for branch protection, apply, re-set it, and apply again, it's there. So yes, our impression is as well that there is a race condition. We have not yet tried to fix this with PS: Meanwhile we have tried it, and a |
👋 Hey Friends, this issue has been automatically marked as |
👋 Hey Friends, this issue has been automatically marked as |
Terraform Version
Terraform v0.12.3
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
GitHub Branch should show the admin team in "Restrict who can push to matching branches" session.
Actual Behavior
No team is displayed in the "Restrict who can push to matching branches" session.
Steps to Reproduce
terraform plan
terraform apply
Important Factoids
I'm running using remote runners from TFE.
If I run with more than one team the team is properly associate in the "Restrict who can push to matching branches" session".
The text was updated successfully, but these errors were encountered: