Skip to content

Commit 1e38e38

Browse files
authored
Merge pull request #205 from stackitcloud/feature/add-gitleaks
feat(ci): add gitleaks to github actions
2 parents 77835a3 + b1e2574 commit 1e38e38

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
@@ -14,6 +14,21 @@ 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@v3
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}
31+
1732
test:
1833
strategy:
1934
matrix:

0 commit comments

Comments
 (0)