Skip to content

Commit 22e5b58

Browse files
authored
Merge pull request #230 from yazgoo/main
Fix vulnerabilty matching
2 parents 402c4c4 + c670cd3 commit 22e5b58

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)