Skip to content

Commit fa54ad5

Browse files
committed
Skip Trivy in githook/auto-format-and-lint.sh
1 parent 90d8503 commit fa54ad5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

githook/auto-format-and-lint.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ if [[ "${N_TERRAFORM_FILES}" -gt 0 ]]; then
5050
tflint --recursive --chdir=.
5151
fi
5252

53-
N_DOCKER_FILES=$(find . -maxdepth "${MAX_DEPTH}" -type f -name 'Dockerfile' | wc -l)
54-
if [[ "${N_DOCKER_FILES}" -gt 0 ]] || [[ "${N_TERRAFORM_FILES}" -gt 0 ]]; then
55-
trivy filesystem --scanners vuln,secret,misconfig --skip-dirs .venv --skip-dirs .terraform --skip-dirs .terragrunt-cache --skip-dirs .git .
56-
fi
53+
# N_DOCKER_FILES=$(find . -maxdepth "${MAX_DEPTH}" -type f -name 'Dockerfile' | wc -l)
54+
# if [[ "${N_DOCKER_FILES}" -gt 0 ]] || [[ "${N_TERRAFORM_FILES}" -gt 0 ]]; then
55+
# trivy filesystem --scanners vuln,secret,misconfig --skip-dirs .venv --skip-dirs .terraform --skip-dirs .terragrunt-cache --skip-dirs .git .
56+
# fi

0 commit comments

Comments
 (0)