-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (42 loc) · 1.42 KB
/
nvd.yml
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
name: nvd-clojure
on:
schedule:
- cron: '0 2 * * 1'
pull_request:
jobs:
nvd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
lein: 2.9.1
- name: Cache local Maven repository # Caching NVD database can speed up the build a lot
uses: actions/cache/restore@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/project.clj') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Run nvd
working-directory: nvd
env:
NVD_API_TOKEN: ${{ secrets.NVD_API_TOKEN }}
run: lein with-profile -user run -m nvd.task.check "nvd-clojure.edn" "$(cd .. && lein classpath)"
- name: Save cache # cache@v4 has save-always, but it's broken. Save manually until it's fixed
if: always()
uses: actions/cache/save@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/project.clj') }}
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure()
with:
report_paths: 'nvd/target/nvd/dependency-check-junit.xml'
check_name: 'Vulnerability report'