dflook/terraform-validate
Validate a Terraform configuration directory
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Maintainedlast commit Jan 13, 2026
- License
- None
Pinned Snippet
uses: dflook/terraform-validate@4cef5d8a4b92bcd88486e41e22a42942a382c9d6 # v2.2.3tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| path | The path to the Terraform module to validate | no | . |
| workspace | Terraform 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. | no | default |
| backend_config | List 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_file | List 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 | "" |
Outputs
| name | description |
|---|---|
| failure_reason | When 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. |
| failure-reason | When 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. |