chnsz/Terraform Scripts Lint (Unified System)
Enhanced comprehensive linting tool for Terraform scripts using unified rules management system
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jul 10, 2026
- License
- Apache 2.0
Pinned Snippet
uses: chnsz/hcbp-scripts-lint@86d718e5d0ea8f75fafae91af9c762f4aeadb6e5 # v3.1.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| directory | Target directory to check Terraform files | no | . |
| fail-on-error | Whether to fail the workflow when errors are found | no | true |
| deep-check | Enable deep integration checks (SC.004 provider version probe; requires network + terraform) | no | false |
| ignore-rules | Comma-separated list of rule IDs to ignore (e.g., ST.001,ST.003) | no | "" |
| rule-categories | Comma-separated list of rule categories to execute (ST,IO,DC,SC). Default: all categories | no | ST,IO,DC,SC |
| include-paths | Comma-separated list of path patterns to include (e.g., modules/*,environments/*) | no | "" |
| exclude-paths | Comma-separated list of path patterns to exclude (e.g., examples/*,test/*) | no | "" |
| changed-files-only | If set to true, only check files changed in current commit/PR | no | false |
| base-ref | Base reference for git diff when checking changed files (e.g., origin/main, HEAD~1) | no | origin/main |
| performance-monitoring | Enable detailed performance monitoring and analytics (true/false, case-insensitive) | no | true |
| report-format | Output report format (text, json, or both) | no | text |
| report-file | Generate report files (default: console-only) | no | false |
| detailed-summary | Show detailed error information in GitHub Actions summary | no | true |
Outputs
| name | description |
|---|---|
| result | Lint result (success/failure) |
| error-count | Number of errors found |
| warning-count | Number of warnings found |
| violation-count | Total number of violations found |
| files-processed | Number of files processed |
| execution-time | Total execution time in seconds |
| rules-executed | Total number of rules executed |
| report-file | Path to the generated lint report file |
| performance-metrics | JSON string containing performance metrics |