File tree Expand file tree Collapse file tree 1 file changed +32
-16
lines changed
Expand file tree Collapse file tree 1 file changed +32
-16
lines changed Original file line number Diff line number Diff line change 1515jobs :
1616
1717 build-analyze :
18-
1918 runs-on : ubuntu-latest
2019
2120 env :
@@ -55,18 +54,35 @@ jobs:
5554 uses : github/codeql-action/analyze@v3
5655
5756 dependency-check :
58-
59- runs-on : ubuntu-latest
60-
61- steps :
62- - uses : actions/checkout@v4
63-
64- - name : Set up JDK 17
65- uses : actions/setup-java@v4
66- with :
67- java-version : ' 17'
68- distribution : ' corretto'
69- cache : maven
70-
71- - name : dependencyCheck
72- run : mvn dependency-check:check
57+ runs-on : ubuntu-latest
58+ steps :
59+ - name : Checkout
60+ uses : actions/checkout@v4
61+ - name : Set up JDK 17
62+ uses : actions/setup-java@v4
63+ with :
64+ java-version : ' 17'
65+ distribution : ' corretto'
66+ cache : maven
67+ - name : Build
68+ run : mvn -V -B clean package
69+ - name : Depcheck
70+ uses : dependency-check/Dependency-Check_Action@main
71+ id : Depcheck
72+ env :
73+ # actions/setup-java@v1 changes JAVA_HOME so it needs to be reset to match the depcheck image
74+ JAVA_HOME : /opt/jdk
75+ with :
76+ project : ' KeepTime'
77+ path : ' .'
78+ format : ' HTML'
79+ out : ' reports' # this is the default, no need to specify unless you wish to override it
80+ args : >
81+ --failOnCVSS 8.9
82+ --enableRetired
83+ - name : Upload Test results
84+ if : always()
85+ uses : actions/upload-artifact@v4
86+ with :
87+ name : Depcheck report
88+ path : ${{github.workspace}}/reports
You can’t perform that action at this time.
0 commit comments