feat(detector, contrib/trivy-to-vuls): collect vendor severity and cvss (#1921)
This commit is contained in:
11
tui/tui.go
11
tui/tui.go
@@ -945,10 +945,13 @@ func detailLines() (string, error) {
|
||||
refsMap[ref.Link] = ref
|
||||
}
|
||||
}
|
||||
if conts, found := vinfo.CveContents[models.Trivy]; found {
|
||||
for _, cont := range conts {
|
||||
for _, ref := range cont.References {
|
||||
refsMap[ref.Link] = ref
|
||||
|
||||
for _, ctype := range models.GetCveContentTypes(string(models.Trivy)) {
|
||||
if conts, found := vinfo.CveContents[ctype]; found {
|
||||
for _, cont := range conts {
|
||||
for _, ref := range cont.References {
|
||||
refsMap[ref.Link] = ref
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user