From ab8f154bd4382426c6d23c5960a142edeaa3678c Mon Sep 17 00:00:00 2001 From: Ryo Hanafusa Date: Mon, 30 Oct 2023 11:53:58 +0900 Subject: [PATCH] fix template --- .github/ISSUE_TEMPLATE/trivy-results.tpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/trivy-results.tpl b/.github/ISSUE_TEMPLATE/trivy-results.tpl index 52b524b..f68e2ec 100644 --- a/.github/ISSUE_TEMPLATE/trivy-results.tpl +++ b/.github/ISSUE_TEMPLATE/trivy-results.tpl @@ -3,19 +3,19 @@ {{- range . -}} ## {{ .Target }} -### {{ .Type }} +### {{ .Type }} [{{ .Class }}] {{ if .Vulnerabilities -}} -| Title | Severity | CVE | Package Name | Installed Version | Fixed Version | References | +| Title | Severity | CVE | Package Name | Installed Version | Fixed Version | PrimaryURL | | :--: | :--: | :--: | :--: | :--: | :--: | :-- | {{- range .Vulnerabilities }} | {{ .Title -}} -| {{ get $d .Vulnerability.Severity }}{{ .Vulnerability.Severity -}} +| {{ get $d .Severity }}{{ .Severity -}} | {{ .VulnerabilityID -}} | {{ .PkgName -}} | {{ .InstalledVersion -}} | {{ .FixedVersion -}} -| {{ range $ref := .Vulnerability.References -}}- {{ $ref }}
{{- end -}} +| {{ .PrimaryURL -}} | {{- end }}