Skip to content

Commit

Permalink
Additional flags to ensure Trufflehog fails the check
Browse files Browse the repository at this point in the history
Pass failure exit code on found secrets, and also ignore the update
check.

Signed-off-by: Eric Searcy <[email protected]>
  • Loading branch information
emsearcy committed Feb 7, 2025
1 parent b0d8107 commit 2eda209
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/image-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,7 @@ jobs:
run: |
curl -sSfL https://raw.githubusercontent.com/trufflesecurity/trufflehog/main/scripts/install.sh \
| sh -s -- -b /usr/local/bin
- run: |
trufflehog --github-actions filesystem "${RUNNER_TEMP}/image.tar"
- name: Run trufflehog on image.tar
run: |
trufflehog --fail --no-update --github-actions \
filesystem "${RUNNER_TEMP}/image.tar"

0 comments on commit 2eda209

Please sign in to comment.