integrations / integrations/terraform-provider-github

[BUG]: Deleting `github_repository_collaborators` fails when repository was archived

Open
#3,283 1 comment 0 reactions 0 assignees View on GitHub
r/repository_collaborators Status: Triage Type: Bug
Dominant language
Go
Stars
1.2k
Forks
1k
Avg merge
1d 14h
Merged PRs (30d)
8

Description

### 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

```hcl

```

### Steps to Reproduce

_No response_

### Debug Output

```shell

```

### Panic Output

```shell

```

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.