Filter artifact without CVE from top 5 dangerous artifacts (#19187)

Fixes #19186

Signed-off-by: stonezdj <daojunz@vmware.com>
This commit is contained in:
stonezdj(Daojun Zhang) 2023-08-17 09:29:23 +08:00 committed by GitHub
parent 0e9fe03e54
commit d98699b5fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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`