Skip to content

Commit 22749c1

Browse files
committed
Fix vulnerability matching
1 parent 5a403eb commit 22749c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sbt-plugin/src/main/scala/ch/epfl/scala/AnalyzeDependencyGraph.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ object AnalyzeDependencyGraph {
6868
private def analyzeCves(state: State, vulnerabilities: Seq[Vulnerability]): Unit = {
6969
val artifacts = getAllArtifacts(state)
7070
vulnerabilities.foreach { v =>
71-
val (goodMatches, badMatches) = vulnerabilityMatchesArtifacts(v, artifacts)
71+
val (badMatches, goodMatches) = vulnerabilityMatchesArtifacts(v, artifacts)
7272
println(v.toString)
7373
if (goodMatches.nonEmpty || badMatches.nonEmpty) {
7474
goodMatches.foreach(m => println(s" 🟢 ${m.replaceAll(".*@", "")}"))

0 commit comments

Comments
 (0)