Skip to content

Commit

Permalink
Ensure exit with failire code in hog
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Dec 31, 2024
1 parent 872c7d2 commit 8c7e61e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/git-hooks-pre-push/pre-push.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
while read -r local_ref _local_oid remote_ref _remote_oid; do
# - trufflehog pre-commit hook having crucial limitations. https://github.com/trufflesecurity/trufflehog/blob/v3.88.0/README.md?plain=1#L628-L629
# - Adding `--since-commit main` made 10x slower... :<
trufflehog git "file://${PWD}" --results='verified,unknown' --branch "$local_ref"
trufflehog git "file://${PWD}" --results='verified,unknown' --branch "$local_ref" --fail

# Git ref is not a file path, but avoiding a typos bug for slash
# https://github.com/crate-ci/typos/issues/758
Expand Down

0 comments on commit 8c7e61e

Please sign in to comment.