santosr2/TerraTidy
Run TerraTidy to lint, format, and enforce style in your Terraform/Terragrunt code
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| version | TerraTidy version to use (e.g., v0.2.0, latest) | no | latest |
| config | Path to TerraTidy configuration file | no | .terratidy.yaml |
| profile | Configuration profile to use | no | "" |
| format | Output format (text, table, json, json-compact, sarif, html, junit, markdown, github) | no | text |
| parallel | Run engines in parallel for faster execution (defaults to false here for deterministic CI ordering, unlike the CLI which is parallel by default) | no | false |
| working-directory | Working directory to run TerraTidy in | no | . |
| skip-fmt | Skip formatting checks | no | false |
| skip-style | Skip style checks | no | false |
| skip-lint | Skip linting checks | no | false |
| skip-policy | Skip policy checks | no | false |
| exclude | Glob patterns to exclude (comma-separated, e.g., '**/*.generated.tf,vendor/**') | no | "" |
| no-recurse | Disable recursive directory traversal (scan only specified directories) | no | false |
| absolute-paths | Output absolute file paths instead of relative | no | false |
| fail-on-error | Fail the action if errors are found | no | true |
| fail-on-warning | Fail the action if warnings are found | no | false |
| github-token | GitHub token for PR annotations | no | "" |
| changed | Only check files changed in git | no | false |
| severity-threshold | Minimum severity level to report (info, warning, error) | no | "" |
Outputs
| name | description |
|---|---|
| findings-count | Total number of findings (accurate for json/json-compact, or when fail-on-warning is enabled) |
| errors-count | Number of error-level findings (accurate for json/json-compact, or when fail-on-warning is enabled) |
| warnings-count | Number of warning-level findings (accurate for json/json-compact, or when fail-on-warning is enabled) |
| sarif-file | Path to SARIF output file (if sarif format used) |