mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 04:17:55 +08:00
feat(CVE): add CVE severity counters to returned images and CVE list calls (#2131)
For CLI output is similar to: CRITICAL 0, HIGH 1, MEDIUM 1, LOW 0, UNKNOWN 0, TOTAL 2 ID SEVERITY TITLE CVE-2023-0464 HIGH openssl: Denial of service by excessive resou... CVE-2023-0465 MEDIUM openssl: Invalid certificate policies in leaf... Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
This commit is contained in:
+7
-2
@@ -84,8 +84,13 @@ type Platform struct {
|
||||
}
|
||||
|
||||
type ImageVulnerabilitySummary struct {
|
||||
MaxSeverity string `json:"maxSeverity"`
|
||||
Count int `json:"count"`
|
||||
MaxSeverity string `json:"maxSeverity"`
|
||||
UnknownCount int `json:"unknownCount"`
|
||||
LowCount int `json:"lowCount"`
|
||||
MediumCount int `json:"mediumCount"`
|
||||
HighCount int `json:"highCount"`
|
||||
CriticalCount int `json:"criticalCount"`
|
||||
Count int `json:"count"`
|
||||
}
|
||||
|
||||
type LayerSummary struct {
|
||||
|
||||
Reference in New Issue
Block a user