actions-marketplace-validations/terraform-fmt-check

Check that OpenTofu configuration files are in canonical format

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Jan 13, 2026
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: actions-marketplace-validations/dflook_terraform-fmt-check@59168426e242f665bf7b70644d706224e665056a # no releases — HEAD as of 2026-07-10

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
pathThe path containing Terraform files to check the formatting of.no.
workspaceTerraform workspace to inspect when discovering the Terraform version to use, if the version is not otherwise specified. See [dflook/terraform-version](https://github.com/dflook/terraform-github-actions/tree/main/terraform-version#terraform-version-action) for details. nodefault
backend_configList of Terraform backend config values, one per line. This is used for discovering the Terraform version to use, if the version is not otherwise specified. See [dflook/terraform-version](https://github.com/dflook/terraform-github-actions/tree/main/terraform-version#terraform-version-action) for details. no""
backend_config_fileList of Terraform backend config files to use, one per line. This is used for discovering the Terraform version to use, if the version is not otherwise specified. See [dflook/terraform-version](https://github.com/dflook/terraform-github-actions/tree/main/terraform-version#terraform-version-action) for details. Paths should be relative to the GitHub Actions workspace no""
namedescription
failure-reasonWhen the job outcome is `failure` because the format check failed, this will be set to 'check-failed'. If the job fails for any other reason this will not be set. This can be used with the Actions expression syntax to conditionally run a step when the format check fails.