Skip to content

Commit be8619a

Browse files
authored
fix: trufflehog (#3101)
According to trufflehogs documentation, to scan an entire branch, it's only necessary to provide some simple configuration: https://github.com/marketplace/actions/trufflehog-oss#advanced-usage-scan-entire-branch
1 parent 34a1480 commit be8619a

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

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

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

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

2725
- name: 💀 Killing me softly
2826
uses: ./.github/actions/cancel-workflow

0 commit comments

Comments
 (0)