Loading jobs/gitleaks/gitleaks.yml +5 −8 Original line number Diff line number Diff line Loading @@ -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 Loading
jobs/gitleaks/gitleaks.yml +5 −8 Original line number Diff line number Diff line Loading @@ -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