This repository was archived by the owner on May 16, 2026. It is now read-only.
Fix SECURITY.md commit_message drift#271
Merged
Merged
Conversation
Update commit_message from "Add SECURITY.md" to "Update SECURITY.md" to match state, and restore template_repo for terraform-aws-org-governance which was genuinely created from a template. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
State
|
| Success | Add | 🟡 Change | Destroy |
|---|---|---|---|
| ✅ | 0 | 2 | 0 |
Affected resources by action
| Action | Resources |
|---|---|
| 🟡 | module.repos["terraform-aws-org-governance"].github_repository_file.security_md[0] |
| 🟡 | module.template_terraform_module.github_repository_file.security_md[0] |
STDOUT
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# module.repos["terraform-aws-org-governance"].github_repository_file.security_md[0] will be updated in-place
~ resource "github_repository_file" "security_md" {
~ commit_message = "Add SECURITY.md" -> "Update SECURITY.md"
id = "terraform-aws-org-governance/SECURITY.md"
# (7 unchanged attributes hidden)
}
# module.template_terraform_module.github_repository_file.security_md[0] will be updated in-place
~ resource "github_repository_file" "security_md" {
~ commit_message = "Add SECURITY.md" -> "Update SECURITY.md"
id = "terraform-module-template/SECURITY.md"
# (7 unchanged attributes hidden)
}
Plan: 0 to add, 2 to change, 0 to destroy.
─────────────────────────────────────────────────────────────────────────────
Saved the plan to: tf.plan
To perform exactly these actions, run the following command to apply:
terraform apply "tf.plan"
metadata
eyJzMzovL2luZnJhaG91c2UtZ2l0aHViLWNvbnRyb2wtc3RhdGUvdGVycmFmb3JtLnRmc3RhdGUiOiB7InN1Y2Nlc3MiOiB0cnVlLCAiYWRkIjogMCwgImNoYW5nZSI6IDIsICJkZXN0cm95IjogMH19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
commit_messagefrom"Add SECURITY.md"to"Update SECURITY.md"to match Terraform state and eliminate drift across 48 repostemplate_repoforterraform-aws-org-governancewhich was genuinely created from a templateContext
Depends on #270. After the template drift fix, 49 resources still showed drift — 48
security_mdresources with a cosmeticcommit_messagemismatch and 1 repo (org-governance) that shouldn't have had its template removed.Expected plan after both PRs
2 changes: no-op commits to
terraform-aws-org-governanceandterraform-module-templateto sync their commit_message in state. After that, plans will be clean.Test plan
security_mdcommit_message changes (org-governance + template repo)🤖 Generated with Claude Code