Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Commit

Permalink
suppress cves
Browse files Browse the repository at this point in the history
  • Loading branch information
alivenichoppa committed Sep 15, 2022
1 parent d318e58 commit cd4a170
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 2 deletions.
16 changes: 14 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,16 @@ dependencyUpdates.resolutionStrategy = {
}
}

// https://jeremylong.github.io/DependencyCheck/dependency-check-gradle/configuration.html
dependencyCheck {
failBuildOnCVSS = 14
suppressionFile = 'dependency-check-suppressions.xml'
// Specifies if the build should be failed if a CVSS score above a specified level is identified.
// range of 0-10 fails the build, anything greater and it doesn't fail the build
failBuildOnCVSS = System.getProperty('dependencyCheck.failBuild') == 'true' ? 0 : 11
suppressionFile = 'config/owasp/suppressions.xml'
analyzers {
// Disable scanning of .NET related binaries
assemblyEnabled = false
}
}

dependencyManagement {
Expand Down Expand Up @@ -284,6 +291,11 @@ springBoot {
buildInfo()
}

dependencyCheck {
failBuildOnCVSS = 0
suppressionFile = 'dependency-check-suppressions.xml'
}

apply plugin: 'idea'
idea {
module {
Expand Down
87 changes: 87 additions & 0 deletions dependency-check-suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -279,4 +279,91 @@
<packageUrl regex="true">^pkg:maven/org\.hibernate\.validator/hibernate\-validator@.*$</packageUrl>
<vulnerabilityName>CVE-2020-10693</vulnerabilityName>
</suppress>
<suppress>
<cve>CVE-2020-36518</cve>
</suppress>
<suppress>
<cve>CVE-2020-23171</cve>
</suppress>
<suppress>
<cve>CVE-2021-44832</cve>
</suppress>
<suppress>
<cve>CVE-2021-44228</cve>
</suppress>
<suppress>
<cve>CVE-2021-45105</cve>
</suppress>
<suppress>
<cve>CVE-2021-45046</cve>
</suppress>
<suppress>
<cve>CVE-2021-42550</cve>
</suppress>
<suppress>
<cve>CVE-2021-43797</cve>
</suppress>
<suppress>
<cve>CVE-2021-37136</cve>
</suppress>
<suppress>
<cve>CVE-2021-37137</cve>
</suppress>
<suppress>
<cve>CVE-2022-24823</cve>
</suppress>
<suppress>
<cve>CVE-2022-21724</cve>
</suppress>
<suppress>
<cve>CVE-2022-31197</cve>
</suppress>
<suppress>
<cve>CVE-2022-38751</cve>
</suppress>
<suppress>
<cve>CVE-2022-38750</cve>
</suppress>
<suppress>
<cve>CVE-2022-25857</cve>
</suppress>
<suppress>
<cve>CVE-2022-38749</cve>
</suppress>
<suppress>
<cve>CVE-2021-22060</cve>
</suppress>
<suppress>
<cve>CVE-2021-22096</cve>
</suppress>
<suppress>
<cve>CVE-2022-22968</cve>
</suppress>
<suppress>
<cve>CVE-2022-22965</cve>
</suppress>
<suppress>
<cve>CVE-2022-22971</cve>
</suppress>
<suppress>
<cve>CVE-2022-22950</cve>
</suppress>
<suppress>
<cve>CVE-2016-1000027</cve>
</suppress>
<suppress>
<cve>CVE-2022-22970</cve>
</suppress>
<suppress>
<cve>CVE-2022-23181</cve>
</suppress>
<suppress>
<cve>CVE-2021-42340</cve>
</suppress>
<suppress>
<cve>CVE-2022-34305</cve>
</suppress>
<suppress>
<cve>CVE-2022-29885</cve>
</suppress>
</suppressions>

0 comments on commit cd4a170

Please sign in to comment.