mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-24 01:27:49 +01:00
Filter artifact without CVE from top 5 dangerous artifacts (#19187)
Fixes #19186 Signed-off-by: stonezdj <daojunz@vmware.com>
This commit is contained in:
parent
0e9fe03e54
commit
d98699b5fc
@ -44,6 +44,7 @@ from artifact a,
|
||||
scan_report s
|
||||
where a.digest = s.digest
|
||||
and s.registration_uuid = ?
|
||||
and s.critical_cnt+s.high_cnt+s.medium_cnt+s.low_cnt > 0
|
||||
order by s.critical_cnt desc, s.high_cnt desc, s.medium_cnt desc, s.low_cnt desc
|
||||
limit 5`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user