Skip to content

Commit 4c4f192

Browse files
committed
feat: add Gitleaks secrets scan workflow
1 parent 01e31d3 commit 4c4f192

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Secrets Scan
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
branches:
7+
- master
8+
push:
9+
branches:
10+
- master
11+
12+
jobs:
13+
secrets-scan:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- uses: gitleaks/gitleaks-action@v2
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE_KEY }}
24+
GITLEAKS_NOTIFY_USER_LIST: ${{ vars.GITLEAKS_NOTIFY_USER_LIST }}
25+
GITLEAKS_ENABLE_COMMENTS: 'true'
26+
GITLEAKS_ENABLE_UPLOAD_ARTIFACT: 'false'
27+

0 commit comments

Comments
 (0)