Open martinb3 opened 5 months ago
There should be no change.
The provider wants to update visibility from "private" to "internal" after refreshing state.
Terraform 1.5.6
github_repository
resource "github_repository" "main" { name = ... description = ... visibility = "internal"
Simply run an import and then apply. Here's the GitHub UI for the internal repo:
My organization doesn't allow changing repo visibility, even though it shouldn't need to be done.
Error: PATCH https://api.github.com/repos/my-org/my-repo: 422 Visibility can't be changed by this user. []
No response
Expected Behavior
There should be no change.
Actual Behavior
The provider wants to update visibility from "private" to "internal" after refreshing state.
Terraform Version
Terraform 1.5.6
Affected Resource(s)
github_repository
Terraform Configuration Files
Steps to Reproduce
Simply run an import and then apply. Here's the GitHub UI for the internal repo:
Error Output
My organization doesn't allow changing repo visibility, even though it shouldn't need to be done.
Debug Output
No response
Panic Output
No response
Code of Conduct