Skip to content

Commit f05ad42

Browse files
Update msdo-gitleaks.yml
Used a pinned version (v8.18.2) to make sure it works with SARIF. May look to change this to auto detect similiar to trufflehog if this works.
1 parent 8e83ef0 commit f05ad42

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/msdo-gitleaks.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,18 @@ jobs:
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'

0 commit comments

Comments
 (0)