File tree Expand file tree Collapse file tree 1 file changed +10
-25
lines changed Expand file tree Collapse file tree 1 file changed +10
-25
lines changed Original file line number Diff line number Diff line change 1
- name : Gitleaks Secrets Scan
2
-
3
- on :
4
- pull_request :
5
- push :
6
- branches :
7
- - main
8
- - develop
9
- - release/*
10
-
1
+ name : gitleaks
2
+ on : [pull_request, push, workflow_dispatch]
11
3
jobs :
12
- gitleaks :
13
- name : Run Gitleaks Secrets Scan
4
+ scan :
5
+ name : gitleaks
14
6
runs-on : ubuntu-latest
15
-
16
7
steps :
17
- - name : Checkout code
18
- uses : actions/checkout@v4
19
-
20
- - name : Run Gitleaks
21
- uses : gitleaks/gitleaks-action@v2
22
- env :
23
- GITLEAKS_LICENSE : ${{ secrets.GITLEAKS_LICENSE }}
8
+ - uses : actions/checkout@v3
24
9
with :
25
- args : >
26
- detect
27
- --source .
28
- --exit-code 1
29
- --report-path gitleaks-report.json
10
+ fetch-depth : 0
11
+ - uses : zricethezav/[email protected]
12
+ env :
13
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
14
+ GITLEAKS_LICENSE : ${{ secrets.GITLEAKS_LICENSE}}
You can’t perform that action at this time.
0 commit comments