File tree Expand file tree Collapse file tree 1 file changed +9
-17
lines changed Expand file tree Collapse file tree 1 file changed +9
-17
lines changed Original file line number Diff line number Diff line change 1
1
name : Gitleaks Security Scan
2
2
3
- on :
4
- push :
5
- branches :
6
- - main
7
- pull_request :
8
- branches :
9
- - main
3
+ on : [push, pull_request]
10
4
11
5
jobs :
12
6
gitleaks :
13
- name : Run Gitleaks Scan
14
7
runs-on : ubuntu-latest
15
8
steps :
16
- - name : Checkout repository
17
- uses : actions/checkout@v4
9
+ - name : Checkout code
10
+ uses : actions/checkout@v2
18
11
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
24
16
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
You can’t perform that action at this time.
0 commit comments