Skip to content

[BUG]: github_organization_ruleset unable to remove bypassers  #1952

Closed

Description

Expected Behavior

When you set bypass_actors to null remove all bypassers.

Actual Behavior

It does not remove them. It also gets confused on every plan and it tries to swap existing bypassers for some reason!

Terraform Version

Terraform v1.6.1
on linux_amd64

  • provider registry.terraform.io/integrations/github v5.39.0

Affected Resource(s)

  • github_organization_ruleset

Terraform Configuration Files

No response

Steps to Reproduce

No response

Debug Output

# module.organization.github_organization_ruleset.this["pr_default"] will be updated in-place
  ~ resource "github_organization_ruleset" "this" {
        id          = "118285"
        name        = "Pull Request Default Ruleset"
        # (5 unchanged attributes hidden)

      ~ bypass_actors {
          ~ actor_id    = 5 -> 1
          ~ actor_type  = "RepositoryRole" -> "OrganizationAdmin"
            # (1 unchanged attribute hidden)
        }
      ~ bypass_actors {
          ~ actor_id    = 1 -> 5
          ~ actor_type  = "OrganizationAdmin" -> "RepositoryRole"
            # (1 unchanged attribute hidden)
        }

        # (4 unchanged blocks hidden)
    }

Panic Output

No response

Code of Conduct

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

Activity

  1. ghost added
    Status: Triage
    on Oct 12, 2023
  2. ghost added
    Type: Bug
    on Oct 12, 2023
  3. moved this from 🆕 Triage to No status in 🧰 Octokit Activeon Oct 16, 2023
  4. moved this to 🔥 Backlog in 🧰 Octokit Activeon Oct 16, 2023
  5. added
    Status: Up for grabs
    and removed
    Status: Triage
    on Oct 16, 2023
  6. stevehipwell commented on Nov 6, 2023

    @stevehipwell
    Collaborator

    We're seeing general churn for github_repository_ruleset resources.

  7. moved this from 🔥 Backlog to ✅ Done in 🧰 Octokit Activeon Jan 19, 2024
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: Up for grabsType: Bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions