Skip to content

Commit 23c279a

Browse files
authored
fix: trufflehog (#660)
1 parent df3772a commit 23c279a

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
@@ -13,10 +13,13 @@ jobs:
1313
with:
1414
fetch-depth: 0
1515

16+
# https://github.com/marketplace/actions/trufflehog-oss#advanced-usage-scan-entire-branch
1617
- name: 🐷 TruffleHog OSS
1718
uses: trufflesecurity/[email protected]
1819
if: ${{ github.event.pull_request != null }} # only scan on pull-requests
1920
with:
20-
path: ./
21-
base: ${{ github.event.repository.default_branch }}
22-
head: HEAD
21+
# Setting base to an empty string scans the entire branch, per TruffleHog OSS advanced usage:
22+
# https://github.com/marketplace/actions/trufflehog-oss#advanced-usage-scan-entire-branch
23+
base: ""
24+
head: ${{ github.ref_name }}
25+
extra_args: --results=verified,unknown

0 commit comments

Comments
 (0)