Skip to content

Commit

Permalink
Show basic CSAF vulnerability stats.
Browse files Browse the repository at this point in the history
Signed-off-by: Caroline Russell <[email protected]>
  • Loading branch information
cerrussell committed Oct 15, 2024
1 parent d8ae0b8 commit 7173ee2
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions custom_json_diff/lib/csaf_diff_template.j2
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
{% endif %}
{% if diff_vulnerabilities_1 or diff_vulnerabilities_2 %}
<tr>
<th>vulnerabilities</th>
<th>vulnerabilities<br><br>{{ diff_vulnerabilities_1 | length }}
vs {{ diff_vulnerabilities_2 | length }}</th>
<td>{% for item in diff_vulnerabilities_1 %}
<details>
<summary>{{ item['title'] }}</summary>
Expand Down Expand Up @@ -192,9 +193,11 @@
<li>
<details>
<summary>{{ k }}:</summary>
<ul>{% for a in v %}
<li>{{ a }}</li></ul>
{% endfor %}
<ul>
{% for a in v %}
<li>{{ a }}</li>
{% endfor %}
</ul>
</details>
</li>
{% endif %}
Expand Down Expand Up @@ -244,7 +247,7 @@
{% endif %}
{% if common_vulnerabilities|length > 0 %}
<tr>
<th>vulnerabilities</th>
<th>vulnerabilities ({{ common_vulnerabilities|length }})</th>
<td>{% for item in common_vulnerabilities %}
<details>
<summary>{{ item['title'] }}</summary>
Expand Down

0 comments on commit 7173ee2

Please sign in to comment.