navjotdevops/Terraform Version Checker

Check Terraform versions in .terraform-version and .tf files and suggest upgrades to the latest stable version

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
directoryWhere to look for terraform files to check for version updates. The directory is relative to the repository's root. Multiple paths can be provided by splitting them with a new line. Example: directory: | /path/to/first/module /path/to/second/module no.
github-tokenGitHub token for PR creation and API access. Use secrets.GITHUB_TOKEN or a PAT.no${{ github.token }}
fail-on-updatesWhether to fail the action if outdated versions are found. Set to 'true' to fail the workflow when updates are available. nofalse
patches-behindNumber of patch versions behind the latest to target. For example, if latest is 1.14.4 and patches-behind is 2, the action will suggest 1.14.2 instead. no0
apply-updatesWhether to apply the suggested updates to the files. Set to 'true' to modify the files in-place. nofalse
create-prWhether to create a Pull Request with the version updates. Requires 'apply-updates' to be 'true'. nofalse
pr-titleTitle for the generated Pull Requestno
pr-bodyBody/Description for the generated Pull Requestno
namedescription
updates_foundWhether any outdated versions were found (true/false)
update_countNumber of version updates recommended
current_versionCurrent Terraform version(s) found in the repository
latest_versionTarget Terraform version (patches-behind from latest stable)
findingsJSON array of all findings with details