Skip to content

Commit 1ae55ac

Browse files
authored
chore(build): add gitleaks secret scanning workflow (#8)
1 parent 49f5f42 commit 1ae55ac

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/gitleaks.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Gitleaks
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
gitleaks:
11+
runs-on: ubuntu-latest
12+
env:
13+
HAS_GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE != '' }}
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- uses: gitleaks/gitleaks-action@ff98106e4c7b2bc287b24eaf42907196329070c7
19+
if: ${{ env.HAS_GITLEAKS_LICENSE == 'true' }}
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}

0 commit comments

Comments
 (0)