Skip to content

Commit

Permalink
pull
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylong committed Oct 24, 2020
2 parents 545538e + ffe3938 commit f83966e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
20 changes: 10 additions & 10 deletions ant/src/main/java/org/owasp/dependencycheck/taskdefs/Check.java
Original file line number Diff line number Diff line change
Expand Up @@ -1662,16 +1662,16 @@ public void execute() throws BuildException {
}
}
final ExceptionCollection exceptions = callExecuteAnalysis(engine);

for (String format : getReportFormats()) {
engine.writeReports(getProjectName(), new File(reportOutputDirectory), format, exceptions);
}

if (this.failBuildOnCVSS <= 10) {
checkForFailure(engine.getDependencies());
}
if (this.showSummary) {
DependencyCheckScanAgent.showSummary(engine.getDependencies());
if (exceptions == null || !exceptions.isFatal()) {
for (String format : getReportFormats()) {
engine.writeReports(getProjectName(), new File(reportOutputDirectory), format, exceptions);
}
if (this.failBuildOnCVSS <= 10) {
checkForFailure(engine.getDependencies());
}
if (this.showSummary) {
DependencyCheckScanAgent.showSummary(engine.getDependencies());
}
}
} catch (DatabaseException ex) {
final String msg = "Unable to connect to the dependency-check database; analysis has stopped";
Expand Down
10 changes: 10 additions & 0 deletions core/src/main/resources/dependencycheck-base-suppression.xml
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@
44. <cve>CVE-2020-10663</cve> is a ruby vulnerability
45. Facebook is not a dependency
46. gitlab is not a depenency #2567 and is built using ruby
47. DeleGate is a C-language application #2435
]]></notes>
<filePath regex="true">.*(\.(dll|jar|ear|war|pom|nupkg|nuspec|aar)|pom\.xml|package.json|packages.config)$</filePath>
<cpe>cpe:/a:sandbox:sandbox</cpe>
Expand Down Expand Up @@ -256,6 +257,7 @@
<cve>CVE-2020-10663</cve>
<cpe>cpe:/a:facebook:facebook</cpe>
<cpe>cpe:/a:gitlab:gitlab</cpe>
<cpe>cpe:/a:delegate:delegate</cpe>
</suppress>
<suppress base="true">
<notes><![CDATA[
Expand Down Expand Up @@ -3756,4 +3758,12 @@
<cpe>cpe:/a:gpg-pgp_project::gpg-pgp</cpe>
<cpe>cpe:/a:openpgp:openpgp</cpe>
</suppress>
<suppress base="true">
<notes><![CDATA[
False positive per #1749
JCraft's agentproxy is a proxy to ssh-agent and Pageant, not the pure-Java SSH2 implementation Jsch
]]></notes>
<packageUrl regex="true">^pkg:maven/com\.jcraft/jsch\.agentproxy.*$</packageUrl>
<cpe>cpe:/a:jcraft:jsch</cpe>
</suppress>
</suppressions>

0 comments on commit f83966e

Please sign in to comment.