File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 73
73
<th>Artifact type</th>
74
74
<th>Artifact version</th>
75
75
<th>Fixed version(s)</th>
76
+ <th>Locations(s)</th>
76
77
<tbody id="table-body">
77
78
{% for scan in scans %}
78
79
{% for vulnerability in scan.vulnerabilities %}
88
89
<td>{{ vulnerability.artifact_type }}</td>
89
90
<td>{{ vulnerability.artifact_version }}</td>
90
91
<td>{{ vulnerability.fixed_versions }}</td>
92
+ <td>
93
+ {% for location in vulnerability.locations %}
94
+ {{ location.path }}<br>
95
+ {% endfor %}
96
+ </td>
91
97
</tr>
92
98
{% endif %}
93
99
{% endfor %}
104
110
<th>Artifact type</th>
105
111
<th>Artifact version</th>
106
112
<th>Fixed version(s)</th>
113
+ <th>Locations(s)</th>
107
114
<tbody id="table-body">
108
115
{% for scan in scans %}
109
116
{% for vulnerability in scan.vulnerabilities %}
122
129
<td>{{ vulnerability.artifact_type }}</td>
123
130
<td>{{ vulnerability.artifact_version }}</td>
124
131
<td>{{ vulnerability.fixed_versions }}</td>
132
+ <td>
133
+ {% for location in vulnerability.locations %}
134
+ {{ location.path }}<br>
135
+ {% endfor %}
136
+ </td>
125
137
</tr>
126
138
{% endfor %}
127
139
{% endfor %}
200
212
vulnerability_entry ["fixed_versions" ] = "<br>" .join (
201
213
vulnerability .get ("fix" , {}).get ("versions" , [])
202
214
)
215
+ vulnerability_entry ["locations" ] = artifact .get ("locations" , [])
203
216
table_entry ["vulnerabilities" ].append (vulnerability_entry )
204
217
table_entry ["vulnerabilities" ] = sorted (
205
218
table_entry ["vulnerabilities" ],
You can’t perform that action at this time.
0 commit comments