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

Merge branch 'fix/remove-ca-certs' into 'master'

fix: remove install_ca_certs

Closes #16

See merge request to-be-continuous/gitleaks!48
parents 438e4bf9 86464e61
No related branches found
No related tags found
No related merge requests found
......@@ -125,24 +125,6 @@ stages:
fi
}
function install_ca_certs() {
certs=$1
if [[ -z "$certs" ]]
then
return
fi
# import in system
if echo "$certs" >> /etc/ssl/certs/ca-certificates.crt
then
log_info "CA certificates imported in \\e[33;1m/etc/ssl/certs/ca-certificates.crt\\e[0m"
fi
if echo "$certs" >> /etc/ssl/cert.pem
then
log_info "CA certificates imported in \\e[33;1m/etc/ssl/cert.pem\\e[0m"
fi
}
function unscope_variables() {
_scoped_vars=$(env | awk -F '=' "/^scoped__[a-zA-Z0-9_]+=/ {print \$1}" | sort)
if [[ -z "$_scoped_vars" ]]; then return; fi
......@@ -256,7 +238,6 @@ gitleaks:
GIT_DEPTH: 0
before_script:
- !reference [.gitleaks-scripts]
- install_ca_certs "${CUSTOM_CA_CERTS:-$DEFAULT_CA_CERTS}"
- mkdir -p -m 777 reports
- install_gitleaks_rules
- git config --global --add safe.directory "${CI_PROJECT_DIR}"
......
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