Skip to content

Commit

Permalink
Osv: Add a FIXME for parsing the input severity list
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Viernau <[email protected]>
  • Loading branch information
fviernau committed Jul 12, 2022
1 parent 9a3f197 commit 71d2fc0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions advisor/src/main/kotlin/advisors/Osv.kt
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ private fun createRequest(pkg: Package): VulnerabilitiesForPackageRequest? {
}

private fun Vulnerability.toOrtVulnerability(): org.ossreviewtoolkit.model.Vulnerability {
// FIXME: Clarify which entry is relevant and pick the right one instead.
var (scoringSystem, score) = severity.firstOrNull()?.let {
it.type.name to it.score
} ?: null to null
Expand Down

0 comments on commit 71d2fc0

Please sign in to comment.