Skip to content
Snippets Groups Projects
Commit 4eb3e05e authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

Merge branch '5-invalid-argument-path' into 'master'

fix: update args to be compliant with new gitleaks version

Closes #5

See merge request to-be-continuous/gitleaks!11
parents 54697d59 59d39b70
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@ variables:
GITLEAKS_IMAGE: "zricethezav/gitleaks:latest"
GITLEAKS_ARGS: "--verbose"
GITLEAKS_QUICK_DEPTH: "10"
GITLEAKS_QUICK_ARGS: "--verbose"
# default production ref name (pattern)
PROD_REF: '/^(master|main)$/'
......@@ -209,7 +210,7 @@ gitleaks:
- mkdir -p ./gitleaks
- install_gitleaks_rules
script:
- gitleaks ${TRACE+--debug} --path=. $gitleaks_rule_opts --report=./gitleaks/gitleaks-report.json $GITLEAKS_ARGS
- gitleaks detect ${TRACE+--log-level debug} --source . $gitleaks_rule_opts --report-path ./gitleaks/gitleaks-report.json $GITLEAKS_ARGS
artifacts:
name: "$CI_JOB_NAME artifacts from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG"
when: always
......@@ -228,7 +229,7 @@ gitleaks-quick:
variables:
GIT_DEPTH: "${GITLEAKS_QUICK_DEPTH}"
script:
- gitleaks ${TRACE+--debug} --path=. $gitleaks_rule_opts --report=./gitleaks/gitleaks-report.json --depth=${GITLEAKS_QUICK_DEPTH} $GITLEAKS_QUICK_ARGS
- gitleaks detect ${TRACE+--log-level debug} --source . $gitleaks_rule_opts --report-path ./gitleaks/gitleaks-report.json --log-opts="-n ${GITLEAKS_QUICK_DEPTH}" $GITLEAKS_QUICK_ARGS
rules:
# exclude merge requests
- if: $CI_MERGE_REQUEST_ID
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment