OpenTofu-managed configuration for all jonathanmorley/* repositories.
- Repository settings (auto-merge, features, merge strategies)
- Drift detection via daily scheduled runs
- Automated enforcement via PR merges
tofu init
tofu plan # Preview changes
tofu apply # Apply changes- Discovery: Automatically finds all repos in the
jonathanmorleynamespace - Defaults: Applies uniform settings from
variables.tf - Exclusions: Skip repos via
excluded_reposvariable - Overrides: Per-repo exceptions via
repo_overridesvariable (future)
This repo uses Octo STS for short-lived GitHub credentials. The trust policy is at jonathanmorley/.github/.github/chainguard/terraform.sts.yaml.
State is ephemeral — each workflow run imports all repos fresh from GitHub. No state persistence needed.
New repos are automatically discovered. No action needed.
Add the repo name to the excluded_repos variable in variables.tf:
variable "excluded_repos" {
default = ["repo-to-skip"]
}Use the repo_overrides variable (coming soon):
variable "repo_overrides" {
default = {
"special-repo" = {
allow_auto_merge = false
}
}
}