Skip to content

Commit 3924291

Browse files
authored
Update gitleaks.yml
1 parent e9b2a59 commit 3924291

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

.github/workflows/gitleaks.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,18 @@
11
name: Gitleaks Security Scan
22

3-
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
8-
branches:
9-
- main
3+
on: [push, pull_request]
104

115
jobs:
126
gitleaks:
13-
name: Run Gitleaks Scan
147
runs-on: ubuntu-latest
158
steps:
16-
- name: Checkout repository
17-
uses: actions/checkout@v4
9+
- name: Checkout code
10+
uses: actions/checkout@v2
1811

19-
- name: Install Gitleaks
20-
run: |
21-
wget https://github.com/gitleaks/gitleaks/releases/latest/download/gitleaks-linux-amd64 -O gitleaks
22-
chmod +x gitleaks
23-
sudo mv gitleaks /usr/local/bin/
12+
- name: Download Gitleaks binary
13+
run: |
14+
wget https://github.com/gitleaks/gitleaks/releases/download/v8.24.2/gitleaks-linux-amd64 -O gitleaks
15+
chmod +x gitleaks
2416
25-
- name: Run Gitleaks
26-
run: gitleaks detect --source . --verbose --exit-code 1
17+
- name: Run Gitleaks
18+
run: ./gitleaks detect --source . --verbose --report-path gitleaks-report.json

0 commit comments

Comments
 (0)