Skip to content

Commit bc0d706

Browse files
committed
Revert "feat(Osv): Also pass the PURL if known"
This reverts commit 444a035 because some PURLs cause a bad request (HTTP code 400) with OSV. Fixes #7239. Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent 37f093f commit bc0d706

File tree

1 file changed

+1
-2
lines changed
  • advisor/src/main/kotlin/advisors

1 file changed

+1
-2
lines changed

advisor/src/main/kotlin/advisors/Osv.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,7 @@ private fun createRequest(pkg: Package): VulnerabilitiesForPackageRequest? {
156156
return VulnerabilitiesForPackageRequest(
157157
pkg = org.ossreviewtoolkit.clients.osv.Package(
158158
name = name,
159-
ecosystem = ecosystem,
160-
purl = pkg.purl.takeUnless { it.isEmpty() }
159+
ecosystem = ecosystem
161160
),
162161
version = pkg.id.version
163162
)

0 commit comments

Comments
 (0)