Skip to content

Instantly share code, notes, and snippets.

@ridwanbejo
Created January 25, 2025 02:27
Show Gist options
  • Save ridwanbejo/12d54a1c319c282290f4754088cf6546 to your computer and use it in GitHub Desktop.
Save ridwanbejo/12d54a1c319c282290f4754088cf6546 to your computer and use it in GitHub Desktop.
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.96.2 # Get the latest from: https://github.com/antonbabenko/pre-commit-terraform/releases
hooks:
- id: terraform_fmt
args:
- --args=-recursive
- id: terraform_docs
- id: terraform_tflint
- id: terraform_validate
- id: terraform_providers_lock
args:
- --hook-config=--mode=only-check-is-current-lockfile-cross-platform
- id: terraform_trivy
files: _*\.tf$
args:
- --args=--skip-dirs="**/.terraform,**/tests,**/scripts,**/playbooks,**/examples"
- --args=--severity=HIGH,CRITICAL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment