Skip to content

Commit 7ea430a

Browse files
mfranzkeCopilot
andauthored
fix: trufflehog (#4674)
* fix: trufflehog * Update 00-scan-secrets.yml * Update README.md * Update .github/workflows/00-scan-secrets.yml Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
1 parent c14a549 commit 7ea430a

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,16 @@ jobs:
1212
with:
1313
fetch-depth: 0
1414

15-
- name: ↔ Extract branch name
16-
uses: ./.github/actions/extract-branch
17-
id: extract_branch
18-
15+
# https://github.com/marketplace/actions/trufflehog-oss#advanced-usage-scan-entire-branch
1916
- name: 🐷 TruffleHog OSS
2017
if: ${{ github.event.pull_request != null }} # only scan on pull-requests
2118
uses: trufflesecurity/trufflehog@main
2219
with:
23-
path: ./
24-
base: ${{ steps.extract_branch.outputs.branch-name }}
25-
head: HEAD
20+
# Setting base to an empty string scans the entire branch, per TruffleHog OSS advanced usage:
21+
# https://github.com/marketplace/actions/trufflehog-oss#advanced-usage-scan-entire-branch
22+
base: ""
23+
head: ${{ github.ref_name }}
24+
extra_args: --results=verified,unknown
2625

2726
- name: 💀 Killing me softly
2827
uses: ./.github/actions/cancel-workflow

0 commit comments

Comments
 (0)