File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1- name : Secret Scan
1+ name : TruffleHog Secret Scan
22
33on :
44 push :
5- branches : [ main, develop, '**' ] # Customize your branches here
5+ branches : [ main, '**' ]
66 pull_request :
7- branches : [ main, develop, '**' ]
7+ branches : [ main, '**' ]
88
99jobs :
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 }}
You can’t perform that action at this time.
0 commit comments