From 86464e616d6b6db98df659af8ff90e9554bfdeb9 Mon Sep 17 00:00:00 2001 From: Clement Bois <clement.bois@orange.com> Date: Tue, 23 Jan 2024 14:36:54 +0000 Subject: [PATCH] fix: remove install_ca_certs --- templates/gitlab-ci-gitleaks.yml | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/templates/gitlab-ci-gitleaks.yml b/templates/gitlab-ci-gitleaks.yml index 3937082..57afa17 100644 --- a/templates/gitlab-ci-gitleaks.yml +++ b/templates/gitlab-ci-gitleaks.yml @@ -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}" -- GitLab