integrations / integrations/terraform-provider-github
[BUG]: Deleting `github_repository_collaborators` fails when repository was archived
- 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
Assessment
This issue has not been assessed yet.