File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Gitleaks Secret Scan
2+
3+ on :
4+ push :
5+ pull_request :
6+
7+ jobs :
8+ gitleaks :
9+ runs-on : ubuntu-latest
10+ permissions :
11+ contents : read
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@v4
15+ with :
16+ fetch-depth : 0
17+
18+ - name : Scan git commit history
19+ uses : gitleaks/gitleaks-action@v2
20+ env :
21+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
22+ GITLEAKS_LICENSE : ${{ secrets.GITLEAKS_LICENSE }} # Only required for Organizations, not personal accounts.
23+
24+ - name : Scan codebase (working tree)
25+ uses : gitleaks/gitleaks-action@v2
26+ env :
27+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28+ GITLEAKS_SCAN_MODE : detect
29+ GITLEAKS_LICENSE : ${{ secrets.GITLEAKS_LICENSE }} # Only required for Organizations, not personal accounts.
30+ GITLEAKS_ENABLE_UPLOAD_ARTIFACT : " false"
You can’t perform that action at this time.
0 commit comments