Update vuln found event email to support multiple vulns notification
This commit is contained in:
parent
3813d0d23d
commit
9a2507724f
1 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,8 @@
|
|||
{% if event_data.vulnerabilities %}
|
||||
{{ event_data.vulnerabilities|length }} vulnerabilities were detected in tags
|
||||
{% else %}
|
||||
A <a href="{{ event_data.vulnerability.link }}">{{ event_data.vulnerability.priority }} vulnerability</a> ({{ 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 }}
|
Reference in a new issue