Skip to content

Commit c07aceb

Browse files
author
Niklas Burchhardt
committed
add gitleaks as credential scanner to actions
1 parent 4d9eef0 commit c07aceb

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,21 @@ on:
99
- main
1010

1111
jobs:
12+
gitleaks:
13+
name: Secret Scanner
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v6
18+
with:
19+
fetch-depth: 0 # Gitleaks needs the full history to scan properly
20+
21+
- name: Run Gitleaks
22+
uses: gitleaks/gitleaks-action@v3
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}
26+
1227
test:
1328
runs-on: ubuntu-latest
1429

0 commit comments

Comments
 (0)