Skip to content

[BUG]: Deleting github_repository_collaborators fails when repository was archived #3283

@deiga

Description

@deiga

Expected Behavior

When the repository linked in github_repository_collaborators is archived or deleted, deleting the github_repository_collaborators should not fail, but succeed.
It should remove the resource from state and not try to do the deleltion on the API

  1. Have a github_repository_collaborators linked to a repository
  2. Archive the repository
  3. Remove the github_repository_collaborators configuration
  4. Deletion succeeds

Actual Behavior

  1. Have a github_repository_collaborators linked to a repository
  2. Archive the repository
  3. Remove the github_repository_collaborators configuration
  4. Deletion fails due to repo archived

Terraform Version

Terraform v1.14.1

Affected Resource(s)

  • github_repository_collaborators

Terraform Configuration Files

Steps to Reproduce

No response

Debug Output

Panic Output

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis is being looked at and prioritizedType: BugSomething isn't working as documented

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions