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

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

parent 37b9286b
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.
Finish editing this message first!
Please register or to comment