Skip to content

Commit 0049518

Browse files
authored
fix: trufflehog (#1211)
1 parent e0dbfea commit 0049518

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
@@ -16,13 +16,16 @@ jobs:
1616
uses: ./.github/actions/extract-branch
1717
id: extract_branch
1818

19+
# https://github.com/marketplace/actions/trufflehog-oss#advanced-usage-scan-entire-branch
1920
- name: 🐷 TruffleHog OSS
2021
uses: trufflesecurity/trufflehog@main
2122
if: ${{ github.event.pull_request != null }} # only scan on pull-requests
2223
with:
23-
path: ./
24-
base: ${{ steps.extract_branch.outputs.branch-name }}
25-
head: HEAD
24+
# Setting base to an empty string scans the entire branch, per TruffleHog OSS advanced usage:
25+
# https://github.com/marketplace/actions/trufflehog-oss#advanced-usage-scan-entire-branch
26+
base: ""
27+
head: ${{ github.ref_name }}
28+
extra_args: --results=verified,unknown
2629

2730
- name: 💀 Killing me softly
2831
uses: ./.github/actions/cancel-workflow

0 commit comments

Comments
 (0)