Loading templates/gitlab-ci-defectdojo.yml +3 −3 Original line number Diff line number Diff line Loading @@ -117,7 +117,7 @@ variables: log_info "jq installed" # Download and configure SSMTP if we are sending mails if [[ ! -z "$DEFECTDOJO_SMTP_SERVER" ]]; then if [[ "$DEFECTDOJO_SMTP_SERVER" ]]; then write_ssmtp_conf fi Loading Loading @@ -148,7 +148,7 @@ variables: fi log_info "dd_product_pk: ${dd_product_pk}" if [[ ! -z "$DEFECTDOJO_SMTP_SERVER" ]]; then if [[ "$DEFECTDOJO_SMTP_SERVER" ]]; then prepare_mail_template fi Loading Loading @@ -437,7 +437,7 @@ variables: done log_info "$nb_new_vulns new vulnerabilities" if [[ ! -z $DEFECTDOJO_SMTP_SERVER && ${nb_new_vulns} -gt 0 ]]; then if [[ $DEFECTDOJO_SMTP_SERVER && ${nb_new_vulns} -gt 0 ]]; then log_info "set nb in mail template" sed -i 's/<<nb>>/'$nb_new_vulns'/' /tmp/mail.txt ssmtp "$GITLAB_USER_EMAIL" < /tmp/mail.txt Loading Loading
templates/gitlab-ci-defectdojo.yml +3 −3 Original line number Diff line number Diff line Loading @@ -117,7 +117,7 @@ variables: log_info "jq installed" # Download and configure SSMTP if we are sending mails if [[ ! -z "$DEFECTDOJO_SMTP_SERVER" ]]; then if [[ "$DEFECTDOJO_SMTP_SERVER" ]]; then write_ssmtp_conf fi Loading Loading @@ -148,7 +148,7 @@ variables: fi log_info "dd_product_pk: ${dd_product_pk}" if [[ ! -z "$DEFECTDOJO_SMTP_SERVER" ]]; then if [[ "$DEFECTDOJO_SMTP_SERVER" ]]; then prepare_mail_template fi Loading Loading @@ -437,7 +437,7 @@ variables: done log_info "$nb_new_vulns new vulnerabilities" if [[ ! -z $DEFECTDOJO_SMTP_SERVER && ${nb_new_vulns} -gt 0 ]]; then if [[ $DEFECTDOJO_SMTP_SERVER && ${nb_new_vulns} -gt 0 ]]; then log_info "set nb in mail template" sed -i 's/<<nb>>/'$nb_new_vulns'/' /tmp/mail.txt ssmtp "$GITLAB_USER_EMAIL" < /tmp/mail.txt Loading