Commit f5a474ea authored by Simon Cornet's avatar Simon Cornet
Browse files

feat(ci): added gitleaks

parent 04bc8084
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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"

.gitlab/gitleaks.yaml

0 → 100644
+16 −0
Original line number Diff line number Diff line
---

# gitleaks
gitleaks:
  stage: "gitleaks"
  image:
    name: "ghcr.io/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"