Skip to content

[BUG]: github_repository_collaborators shows the same user to be removed and addedΒ #2051

@PaulRudin

Description

@PaulRudin

Expected Behavior

The plan for github_repository_collaborators shows the same user to be both removed and added: (I redacted the username)

Terraform will perform the following actions:

  # github_repository_collaborators.foo will be updated in-place
  ~ resource "github_repository_collaborators" "foo" {
        id             = "foo"
      - user {
          - permission = "pull" -> null
          - username   = "xxx" -> null
        }
      + user {
          + permission = "pull"
          + username   = "xxx"
        }

        # (1 unchanged block hidden)
    }

I expect that this shouldn't show any change for the user xxx

Actual Behavior

I see a removal and addition.

Terraform Version

$ terraform -v
Terraform v1.6.5
on linux_amd64

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

Affected Resource(s)

github_repository_collaborators

Terraform Configuration Files

No response

Steps to Reproduce

No response

Debug Output

No response

Panic Output

No response

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Up for grabsIssues that are ready to be worked on by anyoneType: BugSomething isn't working as documented

    Type

    No type

    Projects

    Status

    πŸ”₯ Backlog

    Status

    On Deck

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions