File tree Expand file tree Collapse file tree 2 files changed +14
-11
lines changed
Expand file tree Collapse file tree 2 files changed +14
-11
lines changed Original file line number Diff line number Diff line change 1- name : TruffleHog Secret Scan
1+ name : GitLeaks Security Scan
22
33on :
44 push :
5- branches : [ main, '* *' ]
5+ branches : [ ' *' ]
66 pull_request :
7- branches : [ main, '* *' ]
7+ branches : [ ' *' ]
88
99jobs :
10- trufflehog :
10+ gitleaks :
11+ name : Secret Detection
1112 runs-on : ubuntu-latest
12-
13+
1314 steps :
1415 - name : Checkout code
1516 uses : actions/checkout@v4
16-
17- - name : Run TruffleHog on PR diff
18- uses : trufflesecurity/trufflehog@v3.76.0
1917 with :
20- path : .
21- base : ${{ github.event.pull_request.base.sha || github.event.before }}
22- head : ${{ github.sha }}
18+ fetch-depth : 0
19+
20+ - name : Run GitLeaks
21+ uses : gitleaks/gitleaks-action@v2
22+ env :
23+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
24+ GITLEAKS_LICENSE : ${{ secrets.GITLEAKS_LICENSE }}
Original file line number Diff line number Diff line change 1+ eef9e35c47b95f2024383738859791d3d33d57bd:.github/workflows/secret-scan.yml:generic-api-key:26
You can’t perform that action at this time.
0 commit comments