File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Secret Scan
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - main
10+ workflow_dispatch :
11+
12+ jobs :
13+ gitleaks :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout code
17+ uses : actions/checkout@v3
18+
19+ - name : Install Gitleaks
20+ run : |
21+ curl -sSfL https://github.com/zricethezav/gitleaks/releases/download/v8.2.0/gitleaks_8.2.0_linux_x64.tar.gz | tar -xz -C /usr/local/bin gitleaks
22+
23+ - name : Run Gitleaks
24+ run : gitleaks detect --source . --report-path gitleaks-report.json
25+
26+ trufflehog :
27+ if : github.event_name == 'workflow_dispatch'
28+ runs-on : ubuntu-latest
29+ steps :
30+ - name : Checkout code
31+ uses : actions/checkout@v3
32+
33+ - name : Install TruffleHog
34+ run : |
35+ pip install truffleHog
36+
37+ - name : Run TruffleHog
38+ run : trufflehog git --repo-path . --json > trufflehog-report.json
You can’t perform that action at this time.
0 commit comments