diff --git a/new-components/reporters/pdf/internal/reporter/template.html b/new-components/reporters/pdf/internal/reporter/template.html index 864123eda..154d98eec 100644 --- a/new-components/reporters/pdf/internal/reporter/template.html +++ b/new-components/reporters/pdf/internal/reporter/template.html @@ -150,27 +150,27 @@ } /*severities*/ - .SEVERITY_CRITICAL { + .SEVERITY_ID_CRITICAL { background-color: #f88691; } - .SEVERITY_HIGH { + .SEVERITY_ID_HIGH { background-color: #ffe3e3; } - .SEVERITY_MEDIUM { + .SEVERITY_ID_MEDIUM { background-color: #fde8cb; } - .SEVERITY_LOW { + .SEVERITY_ID_LOW { background-color: #fdf7bd; } - .SEVERITY_INFO { + .SEVERITY_ID_INFO { background-color: #dafbfb; } - .SEVERITY_UNSPECIFIED { + .SEVERITY_ID_UNSPECIFIED { background-color: #fbf7f1; } @@ -210,145 +210,97 @@

Smithy Report

{{range .}} - {{range .Issues}} - - {{.RawIssue.Title}} - {{.Count}} times - {{.RawIssue.Severity}} - - {{ end }} + + {{ .Finding.FindingInfo.Title }} + {{ .Finding.Count }} times + {{ .Finding.Severity }} + {{end}} - {{range .}}
-

{{.OriginalResults.ToolName}}

- {{ if and .OriginalResults.ScanInfo.ScanStartTime (ne .OriginalResults.ScanInfo.ScanStartTime.Seconds 0) }} -
-
{{.OriginalResults.ScanInfo.ScanStartTime | formatTime}}
-
- {{ end }} - {{range .Issues}} -
-

{{ .RawIssue.Title }}

- - - - {{ if and .RawIssue.Severity (ne .RawIssue.Severity nil) }} - - - - - {{ end }} - - {{ if and .RawIssue.Cvss (ne .RawIssue.Cvss 0.0) }} - - - - - {{ end }} - - {{ if and .RawIssue.Confidence (ne .RawIssue.Confidence nil) }} - - - - - {{ end }} - - {{ if and .RawIssue.Type (ne .RawIssue.Type "") }} - - - - - {{ end }} - - {{ if and .RawIssue.Cve (ne .RawIssue.Cve "") }} - - - - - {{ end }} - - {{if gt (len .RawIssue.Cwe) 0}} - - - - - {{end}} - - {{ if and .RawIssue.Target (ne .RawIssue.Target "") }} - - - - - {{ end }} - - {{ if and .RawIssue.Description (ne .RawIssue.Description "") }} - - - - - {{ end }} - - {{ if and .FirstSeen (ne .FirstSeen nil) }} - - - - - {{ end }} - - - - - - - {{ if and .FalsePositive (ne .FalsePositive "") }} - - - - - {{ end }} - - {{ if and .UpdatedAt (ne .UpdatedAt.Seconds 0) }} - - - - - {{ end }} - - {{ range $key,$element := .Annotations }} - - - - - {{end}} - -
Severity{{.RawIssue.Severity}}
CVSS{{.RawIssue.Cvss}}
Confidence{{.RawIssue.Confidence}}
Type{{.RawIssue.Type}}
CVE - {{.RawIssue.Cve}} -
CWE - {{range .RawIssue.Cwe}} - {{ . }} - {{end}} -
Target{{.RawIssue.Target}}
Description -
{{.RawIssue.Description}}
-
First Seen{{.FirstSeen | formatTime}}
Seen Before{{.Count}} times
False Positive?{{.FalsePositive}}
Last Updated{{ .UpdatedAt | formatTime }}
{{$key}}{{$element}}
- - {{ if .RawIssue.CycloneDXSBOM }} -
-
SBOM for {{.RawIssue.Title}}
-
{{ .RawIssue.CycloneDXSBOM }}
+ {{range .}} +
+

{{ .Finding.FindingInfo.Title }}

+ + + {{ if and .Finding.FindingInfo.ProductUid (ne .Finding.FindingInfo.ProductUid nil) }} + + + + + {{ end }} + + {{ if and .Finding.Severity (ne .Finding.Severity nil) }} + + + + + {{ end }} + + {{ if and .Finding.Confidence (ne .Finding.Confidence nil) }} + + + + + {{ end }} + + {{ if and .Finding.TypeUid (ne .Finding.TypeUid nil) }} + + + + + {{ end }} + + {{ if and .Finding.FindingInfo.DataSources (ne .Finding.FindingInfo.DataSources nil) }} + + + + + {{ end }} + + {{ if and .Finding.FindingInfo.Message (ne .Finding.FindingInfo.Message nil) }} + + + + + {{ end }} + + {{ if and .Finding.FindingInfo.FirstSeenTime (ne .Finding.FindingInfo.FirstSeenTime nil) }} + + + + + {{ end }} + + + + + + + {{ if and .Finding.FindingInfo.ModifiedTime (ne .Finding.FindingInfo.ModifiedTime nil) }} + + + + + {{ end }} + + {{ range $key,$element := .Finding.Vulnerabilities }} + + + + + {{end}} + +
Tool{{.Finding.FindingInfo.ProductUid}}
Severity{{.Finding.Severity}}
Confidence{{.Finding.Confidence}}
Type{{.Finding.TypeUid}}
Target{{.Finding.FindingInfo.DataSources}}
Description +
{{.Finding.FindingInfo.Message}}
+
First Seen{{.Finding.FindingInfo.FirstSeenTime}}
Seen Before{{.Finding.Count}} times
Last Updated{{ .Finding.FindingInfo.ModifiedTime }}
{{$key}}{{$element}}
- {{ end }} -
{{end}} - - -
- {{end}}