Skip to content

Commit dbed3d6

Browse files
authored
Merge pull request #180 from doubleSlashde/bugfix/fix_dependency_check
use dependency check action for faster execution (and to make it work)
2 parents eab713c + 42e7eba commit dbed3d6

File tree

1 file changed

+32
-16
lines changed

1 file changed

+32
-16
lines changed

.github/workflows/mavenCi.yml

Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ on:
1515
jobs:
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

0 commit comments

Comments
 (0)