[BUG]: github_branch_protection_v3 - invalid bypass_pull_request_allowances
Expected Behavior
I expect an empty bypass_pull_request_allowances to do nothing. I set it in a module, so i need the block to be there and contain values sometimes.
Actual Behavior
empty bypass_pull_request_allowances results in an error saying "Error: invalid bypass_pull_request_allowances" when running apply.
Terraform Version
OpenTofu v1.9.0 on darwin_arm64
- provider registry.opentofu.org/integrations/github v6.6.0
Affected Resource(s)
- github_branch_protection_v3
Terraform Configuration Files
Steps to Reproduce
No response
Debug Output
Panic Output
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
I managed to work around it with a bunch of conditions so that the block is never outputted if i don't have to output it, but i find it a bit odd that an empty list causes an error after apply. If i rerun apply a second time, after it seemingly failed, i just get "No changes" .
👋 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!