Skip to content

Commit 2eda209

Browse files
committed
Additional flags to ensure Trufflehog fails the check
Pass failure exit code on found secrets, and also ignore the update check. Signed-off-by: Eric Searcy <[email protected]>
1 parent b0d8107 commit 2eda209

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/image-scan.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,7 @@ jobs:
3333
run: |
3434
curl -sSfL https://raw.githubusercontent.com/trufflesecurity/trufflehog/main/scripts/install.sh \
3535
| sh -s -- -b /usr/local/bin
36-
- run: |
37-
trufflehog --github-actions filesystem "${RUNNER_TEMP}/image.tar"
36+
- name: Run trufflehog on image.tar
37+
run: |
38+
trufflehog --fail --no-update --github-actions \
39+
filesystem "${RUNNER_TEMP}/image.tar"

0 commit comments

Comments
 (0)