feat(ci): added gitleaks
This commit is contained in:
parent
cbf83c2e85
commit
523f2e6719
2 changed files with 18 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
|||
stages:
|
||||
|
||||
# deployment
|
||||
- "gitleaks"
|
||||
- "linting"
|
||||
- "deployment"
|
||||
|
||||
|
|
@ -12,5 +13,6 @@ stages:
|
|||
include:
|
||||
|
||||
# deployment
|
||||
- local: ".gitlab/gitleaks.yaml"
|
||||
- local: ".gitlab/linting.yaml"
|
||||
- local: ".gitlab/deployment.yaml"
|
||||
|
|
|
|||
16
.gitlab/gitleaks.yaml
Normal file
16
.gitlab/gitleaks.yaml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
|
||||
# gitleaks
|
||||
gitleaks:
|
||||
stage: "gitleaks"
|
||||
image:
|
||||
name: "gitleaks/gitleaks:latest"
|
||||
rules:
|
||||
|
||||
# run only on push to default branch
|
||||
- if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
||||
- when: "never"
|
||||
|
||||
# start linting
|
||||
script:
|
||||
- "gitleaks detect --source . --verbose --redact"
|
||||
Loading…
Add table
Add a link
Reference in a new issue