Skip to content
Snippets Groups Projects
Commit 64b8c342 authored by Cédric OLIVIER's avatar Cédric OLIVIER
Browse files

Merge branch '6-config-path-doesnt-exist' into 'master'

fix: replace obsolete --config-path= args by --config in gitleaks rules

Closes #6

See merge request to-be-continuous/gitleaks!12
parents 37b9286b 577e0c8b
No related branches found
No related tags found
No related merge requests found
......@@ -159,12 +159,12 @@ stages:
then
log_info "Using custom Gitleaks rules from project (\\e[33;1m.gitleaks.toml\\e[0m)"
cp .gitleaks.toml ./gitleaks/rules.toml
export gitleaks_rule_opts="--config-path=./gitleaks/rules.toml"
export gitleaks_rule_opts="--config ./gitleaks/rules.toml"
elif [[ "$GITLEAKS_RULES" ]]
then
log_info "Using Gitleaks rules from env (\\e[33;1m\$GITLEAKS_RULES\\e[0m)"
echo "$GITLEAKS_RULES" > ./gitleaks/rules.toml
export gitleaks_rule_opts="--config-path=./gitleaks/rules.toml"
export gitleaks_rule_opts="--config ./gitleaks/rules.toml"
else
log_info "No Gitleaks rules found: use default"
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment