From 9a2507724f4c7f66ca10b886114b5f7c966a78ce Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Fri, 10 Mar 2017 11:29:37 -0500 Subject: [PATCH] Update vuln found event email to support multiple vulns notification --- events/vulnerability_found.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/events/vulnerability_found.html b/events/vulnerability_found.html index fd75df641..89cfd28a7 100644 --- a/events/vulnerability_found.html +++ b/events/vulnerability_found.html @@ -1,4 +1,8 @@ +{% if event_data.vulnerabilities %} +{{ event_data.vulnerabilities|length }} vulnerabilities were detected in tags +{% else %} A {{ event_data.vulnerability.priority }} vulnerability ({{ event_data.vulnerability.id }}) was detected in tags +{% endif %} {{ 'tags' | icon_image }} {% for tag in event_data.tags[0:3] %}{%if loop.index > 1 %}, {% endif %}{{ (event_data.repository, tag) | repository_tag_reference }}{% endfor %} {% if event_data.tags|length > 3 %}(and {{ event_data.tags|length - 3 }} more) {% endif %} in - repository {{ event_data.repository | repository_reference }} + repository {{ event_data.repository | repository_reference }} \ No newline at end of file