trevor159/drift-fixer

Detect and automatically fix Terraform/OpenTofu configuration drift, then commit or open a PR with the fixes.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
pathPath to the Terraform/OpenTofu project directory.no.
tf-binTerraform/OpenTofu binary to use (e.g. tofu or terraform).notofu
verbosePrint every attribute and block change as it is applied.nofalse
modeWhat to do after fixing drift. Options: pr — open a pull request with the changes (default) commit — commit and push directly to the current branch dry-run — detect and report drift without writing any files or opening a PR nopr
pr-branchBranch name to use when mode is 'pr'. Defaults to drift-fixer/fix-<run_id>.no""
pr-titleTitle of the pull request when mode is 'pr'.nofix: sync Terraform config with infrastructure drift
commit-messageCommit message used for both 'commit' and 'pr' modes.nofix: sync Terraform config with infrastructure drift
tokenGitHub token used to push branches and open PRs. Defaults to the built-in GITHUB_TOKEN.no${{ github.token }}
namedescription
drift-detected'true' if any drift was found, 'false' otherwise.
pr-urlURL of the pull request opened when mode is 'pr' (empty otherwise).