add gitleaks scan for CI/CD

This commit is contained in:
2025-09-24 20:32:50 -04:00
parent 1a4884da33
commit 08eb1eee60
2 changed files with 42 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
---
gitleaks_scan:
image:
name: zricethezav/gitleaks:latest
entrypoint: [""]
stage: test
tags: [gitleaks, scan]
script:
- gitleaks detect --source=. --config=gitleaks.toml --report-format=json --report-path=gitleaks-report.json
allow_failure: false
only: [main, testing, merge_requests]
artifacts:
when: always
paths:
- gitleaks-report.json
expire_in: 1 week