-
Notifications
You must be signed in to change notification settings - Fork 932
Closed as not planned
Closed as not planned
Copy link
Labels
Status: StaleUsed by stalebot to clean houseUsed by stalebot to clean houseStatus: Up for grabsIssues that are ready to be worked on by anyoneIssues that are ready to be worked on by anyoneType: BugSomething isn't working as documentedSomething isn't working as documentedhacktoberfestIssues for participation in HacktoberfestIssues for participation in Hacktoberfest
Description
Expected Behavior
If a github_repository resource has the pages block configured and deployed, but then the repository's Github Pages configuration is subsequently changed outside of Terraform, the Github Terraform provider should detect those changes on the next terraform plan/terraform apply/terraform refresh and update the underlying resource's configuration to what's reflected in the Terraform template.
Actual Behavior
If changes to a repository's Pages configuration are made outside Terraform those changes are not detected in the next terraform plan/terraform apply/terraform refresh and instead shows the following output:
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration and found no differences, so no changes are needed.
Terraform Version
Terraform v1.5.7
on darwin_amd64
- provider registry.terraform.io/integrations/github v5.37.0
Affected Resource(s)
github_repository
Terraform Configuration Files
resource "github_repository" "main" {
name = "test-repo"
auto_init = true
pages {
source {
branch = "master"
path = "/docs"
}
}
}Steps to Reproduce
- Deploy the
github_repositoryresource shown above, which will enable Github Pages - In the Github console, change one or more of the Github Pages configuration items specified in the deployed Terraform resource
- Run
terraform apply - Observe the
No changes. Your infrastructure matches the configurationoutput.
Debug Output
No response
Panic Output
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Status: StaleUsed by stalebot to clean houseUsed by stalebot to clean houseStatus: Up for grabsIssues that are ready to be worked on by anyoneIssues that are ready to be worked on by anyoneType: BugSomething isn't working as documentedSomething isn't working as documentedhacktoberfestIssues for participation in HacktoberfestIssues for participation in Hacktoberfest
Type
Projects
Status
✅ Done