Skip to content

Commit 84bc96a

Browse files
committed
Fix command error
1 parent c0005d2 commit 84bc96a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/secret-scan.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
name: Secret Scan
1+
name: TruffleHog Secret Scan
22

33
on:
44
push:
5-
branches: [ main, develop, '**' ] # Customize your branches here
5+
branches: [ main, '**' ]
66
pull_request:
7-
branches: [ main, develop, '**' ]
7+
branches: [ main, '**' ]
88

99
jobs:
10-
trufflehog-scan:
11-
name: Run TruffleHog Secret Scan
10+
trufflehog:
1211
runs-on: ubuntu-latest
1312

1413
steps:
1514
- name: Checkout code
1615
uses: actions/checkout@v4
1716

18-
- name: Run TruffleHog
17+
- name: Run TruffleHog on PR diff
1918
uses: trufflesecurity/trufflehog@v3.76.0
2019
with:
21-
scanAllBranches: false
22-
scanUncommitted: true # Checks changes in this PR/commit only
20+
path: .
21+
base: ${{ github.event.pull_request.base.sha || github.event.before }}
22+
head: ${{ github.sha }}

0 commit comments

Comments
 (0)