terraform-provider-github
terraform-provider-github copied to clipboard
[BUG]: encountering issues with Terraform attempting a hard replacement even when using the repository name as specified in the documentation
Expected Behavior
no replacement or changes should be happen when using repository name instead of repository id as specified in the documentation.
Actual Behavior
encountering issues with Terraform attempting a hard replacement even when using the repository name as specified in the documentation
Terraform Version
Terraform v1.5.6 on darwin_amd64
- provider registry.terraform.io/integrations/github v5.33.0
Affected Resource(s)
-github_branch_protection
Terraform Configuration Files
resource "github_branch_protection" "example" {
repository_id = "example-service"
pattern = "master"
enforce_admins = false
allows_deletions = false
required_status_checks {
contexts = ["default"]
}
required_pull_request_reviews {
dismiss_stale_reviews = true
require_code_owner_reviews = true
}
}
Steps to Reproduce
import example-service from existing repo run terraform apply
Debug Output
if i changed the repo name with id it works properly and i get what expected
Panic Output
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct