Move severity from VulnerabilityReference
to Vulnerability
and make it a list
#5598
Labels
advisor
About the advisor tool
Looking at all provider implementations it seems that having the severity as property of a reference is not necessary, because all
providers do create redundant entries:
ort/advisor/src/main/kotlin/advisors/VulnerableCode.kt
Lines 113 to 117 in 95902cc
ort/advisor/src/main/kotlin/advisors/OssIndex.kt
Lines 104 to 114 in 95902cc
ort/advisor/src/main/kotlin/advisors/Osv.kt
Lines 193 to 205 in 95902cc
ort/advisor/src/main/kotlin/advisors/NexusIq.kt
Lines 119 to 129 in 95902cc
So ORT's data structure isn't a good match for any of the above as in each case the mapping introduces redundancy.
Aligning ORT's data model with the one from OSV in this regard, would provide a good match in all of the four cases.
So I propose to align by doing the following:
VulnerabilityReference
toVulnerability
Vulnerability.severity
(tuples) into an array / list with same semantics as in OSV: severity represented in different scoring systems.Note: The current approach with severity next to URL was invented by [1]. The change in Vulnerabity / VulnereabilityReference is inspired by / aligns with the model of Vulnerable code.
[1] This is the origin of the current](#3823
The text was updated successfully, but these errors were encountered: