actions-marketplace-validations/terraform-validate

Validate a Terraform configuration directory

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-validate@4cef5d8a4b92bcd88486e41e22a42942a382c9d6 # no releases — HEAD as of 2026-07-10

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

namedescriptionrequireddefault
pathThe path to the Terraform module to validateno.
workspaceTerraform workspace to use for the `terraform.workspace` value while validating. Note that for remote operations in a cloud backend, this is always `default`. Also used for discovering the Terraform version to use, if 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 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. Paths should be relative to the GitHub Actions workspace This is used for discovering the Terraform version to use, if not otherwise specified. See [dflook/terraform-version](https://github.com/dflook/terraform-github-actions/tree/main/terraform-version#terraform-version-action) for details. no""
namedescription
failure-reasonWhen the job outcome is `failure` because the validation failed, this will be set to 'validate-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 validate fails.