Loading templates/gitlab-ci-testssl.yml +10 −1 Original line number Diff line number Diff line Loading @@ -153,6 +153,15 @@ stages: fi } function as_content() { file_or_content=$1 if [[ -f "${file_or_content}" ]]; then cat "${file_or_content}" else echo "${file_or_content}" fi } function install_ca_certs() { certs=$1 if [[ -z "$certs" ]] Loading @@ -164,7 +173,7 @@ stages: pushd "/tmp/certs" # import in system if echo "$certs" | csplit -b %02d.pem -sz - /-----BEGIN\ CERTIFICATE-----/ \{\*\} if as_content "$certs" | csplit -b %02d.pem -sz - /-----BEGIN\ CERTIFICATE-----/ \{\*\} then log_info "CA certificates imported in \\e[33;1m/tmp/certs\\e[0m" fi Loading Loading
templates/gitlab-ci-testssl.yml +10 −1 Original line number Diff line number Diff line Loading @@ -153,6 +153,15 @@ stages: fi } function as_content() { file_or_content=$1 if [[ -f "${file_or_content}" ]]; then cat "${file_or_content}" else echo "${file_or_content}" fi } function install_ca_certs() { certs=$1 if [[ -z "$certs" ]] Loading @@ -164,7 +173,7 @@ stages: pushd "/tmp/certs" # import in system if echo "$certs" | csplit -b %02d.pem -sz - /-----BEGIN\ CERTIFICATE-----/ \{\*\} if as_content "$certs" | csplit -b %02d.pem -sz - /-----BEGIN\ CERTIFICATE-----/ \{\*\} then log_info "CA certificates imported in \\e[33;1m/tmp/certs\\e[0m" fi Loading