Skip to content

Commit 98ac054

Browse files
committed
Add Gitleaks workflow for secret detection
1 parent c400a99 commit 98ac054

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

‎.github/workflows/gitleaks.yml‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: gitleaks
2+
3+
on:
4+
pull_request:
5+
push:
6+
7+
jobs:
8+
scan:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
- name: Run Gitleaks
15+
uses: gitleaks/gitleaks-action@v3
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
with:
19+
args: detect --verbose --redact --exit-code 1

0 commit comments

Comments
 (0)