Skip to content

Commit 0f2a5b8

Browse files
authored
Merge pull request #45 from stackitcloud/feat/add-gitleaks
feat(ci): add gitleaks as credential scanner to actions
2 parents 4d9eef0 + c07aceb commit 0f2a5b8

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)