Commit 3e8fec4a authored by Cédric OLIVIER's avatar Cédric OLIVIER
Browse files

Update gitlab-ci-defectdojo.yml

parent e83e6cf6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -442,7 +442,7 @@ variables:
      done
      log_info "$nb_new_vulns new vulnerabilities"

      if [[ ! -z "$DEFECTDOJO_SMTP_SERVER" && ${nb_new_vulns} -gt 0 ]]; then
      if [[ -n "$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