Commit eb2b4beb authored by FulcrandG's avatar FulcrandG
Browse files

Adding gitleaks job

parent ace8df79
Loading
Loading
Loading
Loading
+5 −8
Original line number Diff line number Diff line
@@ -4,13 +4,10 @@ stages:
# From https://github.com/pmarlow/ci_secrets/blob/master/example.gitlab-ci.yml

gitleaks:
  stage: static_tests
  image: 
    name: zricethezav/gitleaks:v6.1.2
    name: "zricethezav/gitleaks:v6.1.2"
    entrypoint: [""]
  stage: static_tests
  script:
    - if [ ! -z ${CI_MERGE_REQUEST_ID} ]; then
    -   gitleaks --since origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME --log INFO
    - else
    -   gitleaks --since $CI_COMMIT_BEFORE_SHA --log INFO
    - fi
    - gitleaks -v --pretty --repo-path . --commit-from=$CI_COMMIT_SHA --commit-to=$CI_COMMIT_BEFORE_SHA --branch=$CI_COMMIT_BRANCH