Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[BUG]: updating `github_repository_ruleset #2459

Open
1 task done
scadu opened this issue Nov 13, 2024 · 0 comments · May be fixed by #2460
Open
1 task done

[BUG]: updating `github_repository_ruleset #2459

scadu opened this issue Nov 13, 2024 · 0 comments · May be fixed by #2460
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented

Comments

@scadu
Copy link

scadu commented Nov 13, 2024

Expected Behavior

Provider does not attempt to update/create attributes, github_repository_ruleset in this case, when repository is archived.

Actual Behavior

Provider attempts to update/create github_repository_ruleset, failing with 403 received from GitHub API.

Terraform Version

Terraform v1.0.11 on linux_amd64 + provider registry.terraform.io/integrations/github versions matching v6.3.0

Affected Resource(s)

  • github_repository_ruleset

Terraform Configuration Files

No response

Steps to Reproduce

Create repository with github_team_repository resource. In the next step, set archived = true and apply changes.
Then, try to add github_repository_ruleset.

While it wouldn't be an issue using standalone resources, using these resources within Terraform modules results in pipeline failures.
The workaround is to unarchive affected repositories, roll out changes related to github_repository_ruleset and archive them again. Rather time-consuming process when handling hundreds of repositories.

Debug Output

No response

Panic Output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@scadu scadu added Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented labels Nov 13, 2024
@scadu scadu linked a pull request Nov 13, 2024 that will close this issue
4 tasks
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant