Skip to content

Commit

Permalink
Fix duplicate CVE numbers showing up multiple times in because text /…
Browse files Browse the repository at this point in the history
… commit messages
  • Loading branch information
sambsnyd committed Sep 13, 2024
1 parent 76365f7 commit 83ffa46
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ private static String because(Collection<MinimumDepthVulnerability> reasons) {
.map(MinimumDepthVulnerability::getVulnerability)
.map(Vulnerability::getCve)
.filter(StringUtils::isNotEmpty)
.distinct()
.collect(Collectors.joining(", "));
return StringUtils.isBlank(because) ? null : because;
}
Expand Down

0 comments on commit 83ffa46

Please sign in to comment.