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+ name : ' Quality Monitor Dependency Check'
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request_target :
8+
9+ jobs :
10+ build :
11+ runs-on : [ubuntu-latest]
12+ name : Create dependency check report
13+
14+ steps :
15+ - name : Checkout project
16+ uses : actions/checkout@v6
17+ - name : Set up JDK
18+ uses : actions/setup-java@v5
19+ with :
20+ distribution : ' temurin'
21+ java-version : 25
22+ check-latest : true
23+ cache : ' maven'
24+ - name : Set up Maven
25+ uses : stCarolas/setup-maven@v5
26+ with :
27+ maven-version : 3.9.12
28+ - name : Cache the NVD database
29+ uses : actions/cache@v5
30+ with :
31+ path : ~/.m2/repository/org/owasp/dependency-check-data
32+ key : dependency-check
33+ - name : Build with Maven
34+ env :
35+ NVD_API_KEY : ${{ secrets.NVD_API_KEY }}
36+ OSS_INDEX_TOKEN : ${{ secrets.OSS_INDEX_TOKEN }}
37+ run : |
38+ mvn -V --color always -ntp validate -Pci -Powasp
39+ if [ "${PIPESTATUS[0]}" != "0" ]; then
40+ exit 1;
41+ fi
42+ mv -fv maven.log target/maven.log
43+ - name : Upload Quality Reports
44+ uses : actions/upload-artifact@v6
45+ with :
46+ name : quality-reports
47+ path : |
48+ **/target/**/*.json
49+
You can’t perform that action at this time.
0 commit comments