mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2025-10-15 17:38:54 +02:00
feat: Added terraform_checkov (run per folder), deprecated checkov hook (#290)
This commit is contained in:
parent
b35dc171d8
commit
e3a98345bb
3 changed files with 93 additions and 6 deletions
|
|
@ -93,7 +93,7 @@
|
|||
language: script
|
||||
|
||||
- id: checkov
|
||||
name: Checkov
|
||||
name: checkov (deprecated, use "terraform_checkov")
|
||||
description: Runs checkov on Terraform templates.
|
||||
entry: checkov -d .
|
||||
language: python
|
||||
|
|
@ -103,6 +103,16 @@
|
|||
exclude: \.terraform\/.*$
|
||||
require_serial: true
|
||||
|
||||
- id: terraform_checkov
|
||||
name: Checkov
|
||||
description: Runs checkov on Terraform templates.
|
||||
entry: hooks/terraform_checkov.sh
|
||||
language: script
|
||||
always_run: false
|
||||
files: \.tf$
|
||||
exclude: \.terraform\/.*$
|
||||
require_serial: true
|
||||
|
||||
- id: terrascan
|
||||
name: terrascan
|
||||
description: Runs terrascan on Terraform templates.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue