0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-23 22:27:35 -05:00
zot/pkg/extensions/search/cve
Andrei Aaron 92afd86cbb
feat(cve): better distinguish max severity on an image (#918)
Values returned now by GetCVESummaryForImage
// not scannable / error during scan  - max severity ""            - cve count 0   - Errors
// scannable no issues found          - max severity "NONE"        - cve count 0   - no Errors
// scannable issues found             - max severity from Scanner  - cve count >0  - no Errors

Before this change the max severity in case #1 and #2 was "UNKNOWN" which is also possible value
for case #3. To better distinguish them return different max severities.

This feature would be consumed by the UI.

Signed-off-by: Andrei Aaron <andaaron@cisco.com>
2022-10-24 12:27:26 -07:00
..
model Include image vulnerability information in ImageSummary (#798) 2022-09-28 11:39:54 -07:00
trivy refactor(digests): standardise representation of digests to digest.Digest (#898) 2022-10-22 13:46:13 -07:00
cve.go feat(cve): better distinguish max severity on an image (#918) 2022-10-24 12:27:26 -07:00
cve_test.go feat(cve): better distinguish max severity on an image (#918) 2022-10-24 12:27:26 -07:00