Skip to content

Commit

Permalink
Merge pull request #230 from yazgoo/main
Browse files Browse the repository at this point in the history
Fix vulnerabilty matching
  • Loading branch information
adpi2 authored Nov 27, 2024
2 parents 402c4c4 + c670cd3 commit 22e5b58
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ object AnalyzeDependencyGraph {
private def analyzeCves(state: State, vulnerabilities: Seq[Vulnerability]): Unit = {
val artifacts = getAllArtifacts(state)
vulnerabilities.foreach { v =>
val (goodMatches, badMatches) = vulnerabilityMatchesArtifacts(v, artifacts)
val (badMatches, goodMatches) = vulnerabilityMatchesArtifacts(v, artifacts)
println(v.toString)
if (goodMatches.nonEmpty || badMatches.nonEmpty) {
goodMatches.foreach(m => println(s" 🟢 ${m.replaceAll(".*@", "")}"))
Expand Down

0 comments on commit 22e5b58

Please sign in to comment.