File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <suppressions xmlns =" https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.3.xsd" >
3+ <suppress >
4+ <notes ><![CDATA[
5+ file name: java-tron-1.0.0.zip: quartz-2.3.2.jar
6+ ]]> </notes >
7+ <packageUrl regex =" true" >^pkg:maven/org\.quartz-scheduler/quartz@.*$</packageUrl >
8+ <cve >CVE-2023-39017</cve >
9+ </suppress >
10+ <suppress >
11+ <notes ><![CDATA[
12+ file name: plugins-1.0.0.zip: leveldbjni-all-1.18.2.jar
13+ ]]> </notes >
14+ <packageUrl regex =" true" >^pkg:maven/io\.github\.tronprotocol/leveldbjni-all@.*$</packageUrl >
15+ <cve >CVE-2018-10906</cve >
16+ </suppress >
17+ <suppress >
18+ <notes ><![CDATA[
19+ file name: java-tron-1.0.0.zip: ini4j-0.5.4.jar
20+ ]]> </notes >
21+ <packageUrl regex =" true" >^pkg:maven/org\.ini4j/ini4j@.*$</packageUrl >
22+ <vulnerabilityName >CVE-2022-41404</vulnerabilityName >
23+ </suppress >
24+ <suppress >
25+ <notes ><![CDATA[
26+ This suppresses all CVE entries that have a score below CVSS 7.
27+ ]]> </notes >
28+ <cvssBelow >7</cvssBelow >
29+ </suppress >
30+ </suppressions >
Original file line number Diff line number Diff line change 1+ name : " Dependency Check"
2+
3+ on :
4+ push :
5+ branches : [ 'develop', 'master', 'release_**' ]
6+ pull_request :
7+ branches : [ 'develop', "release_**" ]
8+ schedule :
9+ - cron : ' 0 6 * * *'
10+
11+ jobs :
12+ dependency-check :
13+ name : Dependency Check
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - name : Checkout repository
18+ uses : actions/checkout@v4
19+
20+ - name : Cache ODC data
21+ uses : actions/cache@v3
22+ with :
23+ path : ~/.dependency-check/data
24+ key : ${{ runner.os }}-odc-data-${{ hashFiles('**/build.gradle') }}
25+ restore-keys : |
26+ ${{ runner.os }}-odc-data-
27+
28+ - name : Set up JDK 8
29+ uses : actions/setup-java@v3
30+ with :
31+ java-version : ' 8'
32+ distribution : ' temurin'
33+
34+ - name : Gradlew build
35+ run : ./gradlew --no-daemon -S -Dorg.gradle.dependency.verification=off -Dorg.gradle.warning.mode=none build -x test
36+
37+ - name : Dependency Check
38+ uses : dependency-check/Dependency-Check_Action@1.1.0
39+ env :
40+ # actions/setup-java@v1 changes JAVA_HOME, so it needs to be reset to match the depcheck image
41+ JAVA_HOME : /opt/jdk
42+ with :
43+ project : ' java-tron'
44+ path : ' .'
45+ format : ' HTML'
46+ out : ' reports'
47+ # failOnCVSS: 8
48+ suppression : ' .github/dependency-check-suppressions.xml'
49+
50+ - name : Upload report
51+ if : always()
52+ uses : actions/upload-artifact@v4
53+ with :
54+ name : dependency-check-report
55+ path : ${{github.workspace}}/reports
You can’t perform that action at this time.
0 commit comments