Skip to content

Commit 8b019c4

Browse files
authored
Merge pull request #3 from switchboard-xyz/lele/gha-add-gitleaks
GHA: add basic Gitleaks GitHub Action
2 parents 49f4ccf + 2cfbfe1 commit 8b019c4

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/gitleaks.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Check for potential GitLeaks
2+
3+
on:
4+
pull_request:
5+
push:
6+
workflow_dispatch:
7+
8+
jobs:
9+
scan:
10+
name: GitLeaks
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- uses: gitleaks/gitleaks-action@v2
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}

0 commit comments

Comments
 (0)