Skip to content

Commit

Permalink
Respect overrideTransitive=false in DependencyVulnerabilityCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Dec 5, 2024
1 parent adabc83 commit b61703e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public TreeVisitor<?, ExecutionContext> getVisitor(Accumulator acc) {
.getVisitor(acc.getDependencyAcc())
.visitNonNull(t, ctx);
String because = null;
if (t2 == t) {
if (t2 == t && overrideTransitive != null && overrideTransitive) {
because = because(vulnerabilities);
t2 = new UpgradeTransitiveDependencyVersion(gav.getGroupId(), gav.getArtifactId(), versionToRequest, scope, null, null, null, because, null, null, true)
.getVisitor(acc.getTransitiveAcc())
Expand Down

0 comments on commit b61703e

Please sign in to comment.