| .. | ||
| action.yml | ||
| README.md | ||
terraform-validate
Validate Terraform configuration files using the official Terraform CLI.
Inputs
| Input | Required | Default | Description |
|---|---|---|---|
terraform-dir |
No | terraform |
Directory containing .tf files |
terraform-version |
No | ~1.15 |
Terraform version to use |
workspace |
No | "" |
Terraform workspace to use |
jfrog-token |
No | "" |
JFrog Artifactory token for the Terraform provider registry (TF_TOKEN_schmalz_jfrog_io) |
Usage
- uses: https://schmalz-git.git.onstackit.cloud/schmalz/shared-actions/terraform-validate@terraform-validate-v1
with:
workspace: stage
jfrog-token: ${{ secrets.JFROG_TOKEN }}
Notes
- Runs
terraform init -backend=false,terraform fmt -check -recursive, andterraform validate. - Sets
TF_WORKSPACEduring validate ifworkspaceis provided. - Sets
TF_TOKEN_schmalz_jfrog_ioon bothinitandvalidatesteps ifjfrog-tokenis provided.