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) }}
-
- Severity |
- {{.RawIssue.Severity}} |
-
- {{ end }}
-
- {{ if and .RawIssue.Cvss (ne .RawIssue.Cvss 0.0) }}
-
- CVSS |
- {{.RawIssue.Cvss}} |
-
- {{ end }}
-
- {{ if and .RawIssue.Confidence (ne .RawIssue.Confidence nil) }}
-
- Confidence |
- {{.RawIssue.Confidence}} |
-
- {{ end }}
-
- {{ if and .RawIssue.Type (ne .RawIssue.Type "") }}
-
- Type |
- {{.RawIssue.Type}} |
-
- {{ end }}
-
- {{ if and .RawIssue.Cve (ne .RawIssue.Cve "") }}
-
- CVE |
-
- {{.RawIssue.Cve}}
- |
-
- {{ end }}
-
- {{if gt (len .RawIssue.Cwe) 0}}
-
- CWE |
-
- {{range .RawIssue.Cwe}}
- {{ . }}
- {{end}}
- |
-
- {{end}}
-
- {{ if and .RawIssue.Target (ne .RawIssue.Target "") }}
-
- Target |
- {{.RawIssue.Target}} |
-
- {{ end }}
-
- {{ if and .RawIssue.Description (ne .RawIssue.Description "") }}
-
- Description |
-
- {{.RawIssue.Description}}
- |
-
- {{ end }}
-
- {{ if and .FirstSeen (ne .FirstSeen nil) }}
-
- First Seen |
- {{.FirstSeen | formatTime}} |
-
- {{ end }}
-
-
- Seen Before |
- {{.Count}} times |
-
-
- {{ if and .FalsePositive (ne .FalsePositive "") }}
-
- False Positive? |
- {{.FalsePositive}} |
-
- {{ end }}
-
- {{ if and .UpdatedAt (ne .UpdatedAt.Seconds 0) }}
-
- Last Updated |
- {{ .UpdatedAt | formatTime }} |
-
- {{ end }}
-
- {{ range $key,$element := .Annotations }}
-
- {{$key}} |
- {{$element}} |
-
- {{end}}
-
-
-
- {{ if .RawIssue.CycloneDXSBOM }}
-
-
SBOM for {{.RawIssue.Title}}
-
{{ .RawIssue.CycloneDXSBOM }}
+ {{range .}}
+
+
{{ .Finding.FindingInfo.Title }}
+
+
+ {{ if and .Finding.FindingInfo.ProductUid (ne .Finding.FindingInfo.ProductUid nil) }}
+
+ Tool |
+ {{.Finding.FindingInfo.ProductUid}} |
+
+ {{ end }}
+
+ {{ if and .Finding.Severity (ne .Finding.Severity nil) }}
+
+ Severity |
+ {{.Finding.Severity}} |
+
+ {{ end }}
+
+ {{ if and .Finding.Confidence (ne .Finding.Confidence nil) }}
+
+ Confidence |
+ {{.Finding.Confidence}} |
+
+ {{ end }}
+
+ {{ if and .Finding.TypeUid (ne .Finding.TypeUid nil) }}
+
+ Type |
+ {{.Finding.TypeUid}} |
+
+ {{ end }}
+
+ {{ if and .Finding.FindingInfo.DataSources (ne .Finding.FindingInfo.DataSources nil) }}
+
+ Target |
+ {{.Finding.FindingInfo.DataSources}} |
+
+ {{ end }}
+
+ {{ if and .Finding.FindingInfo.Message (ne .Finding.FindingInfo.Message nil) }}
+
+ Description |
+
+ {{.Finding.FindingInfo.Message}}
+ |
+
+ {{ end }}
+
+ {{ if and .Finding.FindingInfo.FirstSeenTime (ne .Finding.FindingInfo.FirstSeenTime nil) }}
+
+ First Seen |
+ {{.Finding.FindingInfo.FirstSeenTime}} |
+
+ {{ end }}
+
+
+ Seen Before |
+ {{.Finding.Count}} times |
+
+
+ {{ if and .Finding.FindingInfo.ModifiedTime (ne .Finding.FindingInfo.ModifiedTime nil) }}
+
+ Last Updated |
+ {{ .Finding.FindingInfo.ModifiedTime }} |
+
+ {{ end }}
+
+ {{ range $key,$element := .Finding.Vulnerabilities }}
+
+ {{$key}} |
+ {{$element}} |
+
+ {{end}}
+
+
- {{ end }}
-
{{end}}
-
-
-
- {{end}}