Skip to content

Commit 98bf40e

Browse files
author
Niklas Burchhardt
committed
add gitleaks action to pipeline
1 parent 49b4a52 commit 98bf40e

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,20 @@ on:
1414
workflow_dispatch:
1515

1616
jobs:
17+
gitleaks:
18+
name: Secret Scanner
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v6
23+
with:
24+
fetch-depth: 0 # Gitleaks needs the full history to scan properly
25+
26+
- name: Run Gitleaks
27+
uses: gitleaks/gitleaks-action@v2
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
1731
test:
1832
strategy:
1933
matrix:

0 commit comments

Comments
 (0)