shared-actions/terraform-validate
Michael Seele 4030dee789
All checks were successful
validate-shared-actions / validate-shared-actions (pull_request) Successful in 44s
Aikido Security PR Check / Aikido Security Scan (pull_request) Successful in 56s
feat: add caching for pnpm store and Terraform providers
2026-05-05 13:06:35 +00:00
..
action.yml feat: add caching for pnpm store and Terraform providers 2026-05-05 13:06:35 +00:00
README.md feat: add terraform-validate action 2026-04-30 14:30:34 +02:00

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, and terraform validate.
  • Sets TF_WORKSPACE during validate if workspace is provided.
  • Sets TF_TOKEN_schmalz_jfrog_io on both init and validate steps if jfrog-token is provided.