Skip to content

Commit bbec612

Browse files
committed
Try v2 gitLeaks
1 parent c183c12 commit bbec612

File tree

1 file changed

+10
-25
lines changed

1 file changed

+10
-25
lines changed

.github/workflows/secret-scan.yml

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,14 @@
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]
113
jobs:
12-
gitleaks:
13-
name: Run Gitleaks Secrets Scan
4+
scan:
5+
name: gitleaks
146
runs-on: ubuntu-latest
15-
167
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
249
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}}

0 commit comments

Comments
 (0)