diff --git a/sbt-plugin/src/main/scala/ch/epfl/scala/AnalyzeDependencyGraph.scala b/sbt-plugin/src/main/scala/ch/epfl/scala/AnalyzeDependencyGraph.scala index 948f815..bca9cae 100644 --- a/sbt-plugin/src/main/scala/ch/epfl/scala/AnalyzeDependencyGraph.scala +++ b/sbt-plugin/src/main/scala/ch/epfl/scala/AnalyzeDependencyGraph.scala @@ -164,14 +164,14 @@ object AnalyzeDependencyGraph { alert: Vulnerability, artifacts: Seq[String] ): (Seq[String], Seq[String]) = { - val alertMavenPath = s"pkg:maven/${alert.packageId.replace(":", "/")}@" - artifacts - .filter(_.startsWith(alertMavenPath)) - .partition { artifact => - val version = artifact.replaceAll(".*@", "") - versionMatchesRange(version, alert.vulnerableVersionRange) - } - } + val alertMavenPath = s"pkg:maven/${alert.packageId.replace(":", "/")}@" + artifacts + .filter(_.startsWith(alertMavenPath)) + .partition { artifact => + val version = artifact.replaceAll(".*@", "") + versionMatchesRange(version, alert.vulnerableVersionRange) + } + } def getGitHubRepo: Option[String] = { val remoteUrl = "git config --get remote.origin.url".!!.trim