Skip to content

Commit

Permalink
Filter artifact without CVE from top 5 dangerous artifacts (#19187)
Browse files Browse the repository at this point in the history
Fixes #19186

Signed-off-by: stonezdj <[email protected]>
  • Loading branch information
stonezdj authored Aug 17, 2023
1 parent 0e9fe03 commit d98699b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pkg/securityhub/dao/security.go
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down

0 comments on commit d98699b

Please sign in to comment.