Skip to content

Commit 0472df9

Browse files
authored
Create gitleaks.yml
1 parent 83cb43d commit 0472df9

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/gitleaks.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Gitleaks Secret Scan
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
gitleaks:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Scan git commit history
19+
uses: gitleaks/gitleaks-action@v2
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
23+
- name: Scan codebase (working tree)
24+
uses: gitleaks/gitleaks-action@v2
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
GITLEAKS_SCAN_MODE: detect
28+
GITLEAKS_ENABLE_UPLOAD_ARTIFACT: "false"

0 commit comments

Comments
 (0)