Skip to content

Commit bafa663

Browse files
committed
trivy: Unify falier mode in run_hook_on_whole_repo as for per_dir_hook_unique_part
1 parent 48525b2 commit bafa663

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hooks/terraform_trivy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function run_hook_on_whole_repo {
6565
local -a -r args=("$@")
6666

6767
# pass the arguments to hook
68-
trivy conf "$(pwd)" "${args[@]}"
68+
trivy conf "$(pwd)" --exit-code=1 "${args[@]}"
6969

7070
# return exit code to common::per_dir_hook
7171
local exit_code=$?

0 commit comments

Comments
 (0)