Skip to content
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

[BUG]: github_branch_protection_v3 - invalid bypass_pull_request_allowances #2580

Open
1 task done
RobinOlofsson opened this issue Mar 4, 2025 · 1 comment
Open
1 task done
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented

Comments

@RobinOlofsson
Copy link

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

  • I agree to follow this project's Code of Conduct
@RobinOlofsson RobinOlofsson added Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented labels Mar 4, 2025
@github-project-automation github-project-automation bot moved this to 🆕 Triage in 🧰 Octokit Active Mar 4, 2025
@RobinOlofsson
Copy link
Author

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" .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented
Projects
None yet
Development

No branches or pull requests

1 participant