Skip to content

[BUG]: Resource github_repository_ruleset inconsistence issue #2818

Closed

Description

@neptune19821220

Expected Behavior

We want to enable the feature "Automatically request Copilot code review" for our ruleset.
Since this feature is not supported by provider yet , we selected this option manually after we created a ruleset by terraform.
The provider should recognize that this ruleset is not changed in subsequent plan/apply run.

Actual Behavior

If I select the option "Automatically request Copilot code review", a new github_repository_ruleset resource will be created in next terraform plan.
But terraform failed to create the ruleset because of ruleset name duplication in next terraform apply.
Then I remove the selection of "Automatically request Copilot code review", terraform can recognize that this ruleset not changed and shows no change.

Terraform Version

Terraform v1.13.3
on darwin_arm64
Provider plugin: v6.7.0

Affected Resource(s)

  • github_repository_ruleset

Terraform Configuration Files

Steps to Reproduce

  1. terraform apply -> create a ruleset resource
  2. select the option "Automatically request Copilot code review"
  3. terraform plan -> shows terraform will create a new ruleset
  4. terraform apply -> failed to create because of ruleset name duplication
  5. Remove the selection "Automatically request Copilot code review"
  6. terraform plan -> show "no change"

Debug Output

Panic Output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added
    Type: Bug
    Status: Triage
    on Oct 27, 2025
  2. moved this from Backlog to In Progress in Terraform Provideron Oct 27, 2025
  3. moved this from 🆕 Triage to ✅ Done in 🧰 Octokit Activeon Oct 27, 2025
  4. moved this from In Progress to Done in Terraform Provideron Oct 27, 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: TriageType: Bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions