From 42531626144fb8cdca3d5750c7206393f501feb4 Mon Sep 17 00:00:00 2001 From: Maksym Vlasov Date: Fri, 15 Sep 2023 18:44:09 +0300 Subject: [PATCH] fix: Run `terraform_tfsec` only on terraform code changes (#571) --- .pre-commit-hooks.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 4f554ea..7b5152b 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -90,6 +90,7 @@ description: Static analysis of Terraform templates to spot potential security issues. require_serial: true entry: hooks/terraform_tfsec.sh + files: \.tf(vars)?$ language: script - id: checkov