Skip to content

Commit 4253162

Browse files
authored
fix: Run terraform_tfsec only on terraform code changes (antonbabenko#571)
1 parent ea0b9e3 commit 4253162

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.pre-commit-hooks.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
description: Static analysis of Terraform templates to spot potential security issues.
9191
require_serial: true
9292
entry: hooks/terraform_tfsec.sh
93+
files: \.tf(vars)?$
9394
language: script
9495

9596
- id: checkov

0 commit comments

Comments
 (0)