Skip to content

Commit 930b24d

Browse files
authored
Merge pull request #69 from stackitcloud/feat/add-gitleaks
feat(ci): add gitleaks as credential scanner to actions
2 parents 94c11ba + a9be38a commit 930b24d

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
@@ -15,6 +15,21 @@ on:
1515
workflow_dispatch:
1616

1717
jobs:
18+
gitleaks:
19+
name: Secret Scanner
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v6
24+
with:
25+
fetch-depth: 0 # Gitleaks needs the full history to scan properly
26+
27+
- name: Run Gitleaks
28+
uses: gitleaks/gitleaks-action@v3
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}
32+
1833
test:
1934
runs-on: ubuntu-latest
2035

0 commit comments

Comments
 (0)