feat: trivy HTML report: open links in new tab

This commit is contained in:
Stefan Reimer 2022-01-17 11:07:30 +01:00
parent e3b21a7703
commit 8a7d22a53f

View File

@ -107,7 +107,7 @@
<td>{{ escapeXML .FixedVersion }}</td> <td>{{ escapeXML .FixedVersion }}</td>
<td class="links" data-more-links="off"> <td class="links" data-more-links="off">
{{- range .Vulnerability.References }} {{- range .Vulnerability.References }}
<a href={{ escapeXML . | printf "%q" }}>{{ escapeXML . }}</a> <a href={{ escapeXML . | printf "%q" }} target="_blank" rel="noopener noreferrer">{{ escapeXML . }}</a>
{{- end }} {{- end }}
</td> </td>
</tr> </tr>
@ -132,7 +132,7 @@
<td class="link" data-more-links="off" style="white-space:normal;""> <td class="link" data-more-links="off" style="white-space:normal;"">
{{ escapeXML .Message }} {{ escapeXML .Message }}
<br> <br>
<a href={{ escapeXML .PrimaryURL | printf "%q" }}>{{ escapeXML .PrimaryURL }}</a> <a href={{ escapeXML .PrimaryURL | printf "%q" }} target="_blank" rel="noopener noreferrer">{{ escapeXML .PrimaryURL }}</a>
</br> </br>
</td> </td>
</tr> </tr>