Skip to content

[BUG]: updating `github_repository_ruleset #2459

Closed

Description

@scadu

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

Activity

  1. added
    Status: Triage
    Type: Bug
    on Nov 13, 2024
  2. moved this from 🆕 Triage to 🔥 Backlog in 🧰 Octokit Activeon Dec 23, 2024
  3. github-actions commented on Aug 11, 2025

    @github-actions

    👋 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!

  4. added
    Status: Stale
    on Aug 11, 2025
  5. moved this from 🔥 Backlog to ✅ Done in 🧰 Octokit Activeon Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: StaleStatus: TriageType: Bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions