-
-
Notifications
You must be signed in to change notification settings - Fork 27
48 lines (44 loc) · 1.19 KB
/
dependency-check.yml
File metadata and controls
48 lines (44 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: 'Dependency Check'
on:
push:
branches:
- main
pull_request_target:
jobs:
build:
runs-on: [ubuntu-latest]
name: Create report
steps:
- name: Checkout project
uses: actions/checkout@v6
- name: Set up JDK
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: 25
check-latest: true
cache: 'maven'
- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.12
- name: Cache the NVD database
uses: actions/cache@v5
with:
path: ~/.m2/repository/org/owasp/dependency-check-data
key: dependency-check
- name: Build with Maven
env:
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
OSS_INDEX_TOKEN: ${{ secrets.OSS_INDEX_TOKEN }}
run: |
mvn -V --color always -ntp verify -Pci -Powasp
if [ "${PIPESTATUS[0]}" != "0" ]; then
exit 1;
fi
- name: Upload Dependency Report
uses: actions/upload-artifact@v7
with:
name: dependency-report
path: |
**/target/dependency-check-report.json