Skip to content

Commit b238631

Browse files
authored
fix: trufflehog
1 parent 2fd0fc7 commit b238631

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/00-scan-secrets.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,16 @@ jobs:
2020
uses: ./.github/actions/extract-branch
2121
id: extract_branch
2222

23+
# https://github.com/marketplace/actions/trufflehog-oss#advanced-usage-scan-entire-branch
2324
- name: 🐷 TruffleHog OSS
2425
uses: trufflesecurity/trufflehog@main
2526
if: ${{ github.event.pull_request != null }} # only scan on pull-requests
2627
with:
27-
path: ./
28-
base: ${{ steps.extract_branch.outputs.branch-name }}
29-
head: HEAD
28+
# Setting base to an empty string scans the entire branch, per TruffleHog OSS advanced usage:
29+
# https://github.com/marketplace/actions/trufflehog-oss#advanced-usage-scan-entire-branch
30+
base: ""
31+
head: ${{ github.ref_name }}
32+
extra_args: --results=verified,unknown
3033

3134
- name: 💀 Killing me softly
3235
uses: ./.github/actions/cancel-workflow

0 commit comments

Comments
 (0)