docs(templates): escape description in junit.tmpl (#2088)

Signed-off-by: Felix Bünemann <Felix.Buenemann@gmail.com>
This commit is contained in:
Felix Bünemann 2024-08-29 14:20:37 +02:00 committed by GitHub
parent 95430bbbff
commit aacf153a17
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,7 +7,7 @@
</properties>
{{- range .Matches }}
<testcase classname="{{ .Artifact.Name }}-{{ .Artifact.Version }} ({{ .Artifact.Type }})" name="[{{ .Vulnerability.Severity }}] {{ .Vulnerability.ID }}">
<failure message="{{ .Artifact.Name }}: {{ .Vulnerability.ID }}" type="description">{{ .Vulnerability.Description }} {{ .Artifact.CPEs }} {{ .Vulnerability.DataSource }}</failure>
<failure message="{{ .Artifact.Name }}: {{ .Vulnerability.ID }}" type="description">{{html .Vulnerability.Description }} {{ .Artifact.CPEs }} {{ .Vulnerability.DataSource }}</failure>
</testcase>
{{- end }}
</testsuite>