Skip to content

Commit 0bc66d8

Browse files
Add Gitleaks workflow for secret scanning
1 parent 9c01fa5 commit 0bc66d8

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/gitleaks.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Gitleaks protection
2+
permissions:
3+
contents: read
4+
on:
5+
pull_request:
6+
push:
7+
workflow_dispatch:
8+
schedule:
9+
- cron: '0 4 * * *' # run once a day at 4 AM
10+
jobs:
11+
scan:
12+
name: gitleaks
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- uses: gitleaks/gitleaks-action@v2.3.7
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}}

0 commit comments

Comments
 (0)