mirror of
https://github.com/anchore/grype
synced 2024-11-10 06:34:13 +00:00
fe7027f9e9
Signed-off-by: Yevhenii Pokhvalii <yevhenii_pokhvalii@epam.com>
14 lines
No EOL
799 B
XML
14 lines
No EOL
799 B
XML
<?xml version="1.0" ?>
|
|
<testsuites name="grype-junit">
|
|
{{- $failures := len $.Matches }}
|
|
<testsuite tests="{{ $failures }}" failures="{{ $failures }}" name="{{ $.Distro.Name }}:{{ $.Distro.Version }}" errors="0" skipped="0">
|
|
<properties>
|
|
<property name="type" value="{{ $.Distro.Name }}"></property>
|
|
</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>
|
|
</testcase>
|
|
{{- end }}
|
|
</testsuite>
|
|
</testsuites> |