File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 2424
2525 - name : Run Gitleaks
2626 run : |
27- wget -q https://github.com/gitleaks/gitleaks/releases/latest/download/gitleaks-linux-amd64 -O gitleaks
27+ echo "Downloading Gitleaks..."
28+ curl -sSL https://github.com/gitleaks/gitleaks/releases/download/v8.18.2/gitleaks_8.18.2_linux_x64.tar.gz -o gitleaks.tar.gz
29+ tar -xzf gitleaks.tar.gz gitleaks
2830 chmod +x gitleaks
29- ./gitleaks detect --source=. --report-format sarif --report-path=gitleaks.sarif --exit-code 0
31+ ./gitleaks version
32+
33+ echo "🔍 Running Gitleaks scan..."
34+ ./gitleaks detect \
35+ --source=. \
36+ --report-format sarif \
37+ --report-path=gitleaks.sarif \
38+ --exit-code 0
3039
3140 - name : Upload SARIF to GitHub Code Scanning
3241 if : github.repository_visibility == 'public'
You can’t perform that action at this time.
0 commit comments