Skip to content

Commit

Permalink
feat(osv): Add the missing handling for the Hackage ecosystem
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Viernau <[email protected]>
  • Loading branch information
fviernau committed Nov 10, 2023
1 parent a702a3c commit 2147b4f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions clients/osv/src/main/kotlin/Model.kt
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ object Ecosystem {
const val DEBIAN = "Debian"

Check warning on line 111 in clients/osv/src/main/kotlin/Model.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Unused symbol

Property "DEBIAN" is never used
const val GIHUB_ACTIONS = "GitHub Actions"

Check warning on line 112 in clients/osv/src/main/kotlin/Model.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Unused symbol

Property "GIHUB_ACTIONS" is never used
const val GO = "Go"
const val HACKAGE = "Hackage"
const val HEX = "Hex"

Check warning on line 115 in clients/osv/src/main/kotlin/Model.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Unused symbol

Property "HEX" is never used
const val LINUX = "Linux"

Check warning on line 116 in clients/osv/src/main/kotlin/Model.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Unused symbol

Property "LINUX" is never used
const val MAVEN = "Maven"
Expand Down
1 change: 1 addition & 0 deletions plugins/advisors/osv/src/funTest/kotlin/OsvFunTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class OsvFunTest : StringSpec({
"Composer:thorsten:phpmyfaq:3.0.7",
"Gem::rack:2.0.4",
"Go::github.com/nats-io/nats-server/v2:2.1.0",
"Hackage::xml-conduit:0.5.0",
"Maven:com.jfinal:jfinal:1.4",
"NPM::rebber:1.0.0",
"NuGet::Bunkum:4.0.0",
Expand Down
1 change: 1 addition & 0 deletions plugins/advisors/osv/src/main/kotlin/Osv.kt
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ private fun createRequest(pkg: Package): VulnerabilitiesForPackageRequest? {
"Crate" -> Ecosystem.CRATES_IO
"Gem" -> Ecosystem.RUBY_GEMS
"Go" -> Ecosystem.GO
"Hackage" -> Ecosystem.HACKAGE
"NPM" -> Ecosystem.NPM
"NuGet" -> Ecosystem.NUGET
"Maven" -> Ecosystem.MAVEN
Expand Down

0 comments on commit 2147b4f

Please sign in to comment.