chnsz/Terraform Scripts Lint (Unified System)

Enhanced comprehensive linting tool for Terraform scripts using unified rules management system

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 10, 2026
License
Apache 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: chnsz/hcbp-scripts-lint@86d718e5d0ea8f75fafae91af9c762f4aeadb6e5 # v3.1.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
directoryTarget directory to check Terraform filesno.
fail-on-errorWhether to fail the workflow when errors are foundnotrue
deep-checkEnable deep integration checks (SC.004 provider version probe; requires network + terraform)nofalse
ignore-rulesComma-separated list of rule IDs to ignore (e.g., ST.001,ST.003)no""
rule-categoriesComma-separated list of rule categories to execute (ST,IO,DC,SC). Default: all categoriesnoST,IO,DC,SC
include-pathsComma-separated list of path patterns to include (e.g., modules/*,environments/*)no""
exclude-pathsComma-separated list of path patterns to exclude (e.g., examples/*,test/*)no""
changed-files-onlyIf set to true, only check files changed in current commit/PRnofalse
base-refBase reference for git diff when checking changed files (e.g., origin/main, HEAD~1)noorigin/main
performance-monitoringEnable detailed performance monitoring and analytics (true/false, case-insensitive)notrue
report-formatOutput report format (text, json, or both)notext
report-fileGenerate report files (default: console-only)nofalse
detailed-summaryShow detailed error information in GitHub Actions summarynotrue
namedescription
resultLint result (success/failure)
error-countNumber of errors found
warning-countNumber of warnings found
violation-countTotal number of violations found
files-processedNumber of files processed
execution-timeTotal execution time in seconds
rules-executedTotal number of rules executed
report-filePath to the generated lint report file
performance-metricsJSON string containing performance metrics