Skip to content
Snippets Groups Projects
Commit 86464e61 authored by Clement Bois's avatar Clement Bois
Browse files

fix: remove install_ca_certs

parent fc2cc9b5
Branches
Tags
No related merge requests found
......@@ -103,24 +103,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
......@@ -234,7 +216,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.
Please register or to comment