Skip to content

Commit c78abbd

Browse files
committed
chore: add dep check gradle plugin & NVD api key
1 parent 4549555 commit c78abbd

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/cve.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ jobs:
77
depcheck:
88
runs-on: ubuntu-latest
99
name: depecheck
10+
env:
11+
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
1012
steps:
1113
- name: Checkout
1214
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6

build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
id 'com.diffplug.spotless' version '8.4.0' apply false
3+
id 'org.owasp.dependencycheck' version '12.2.0'
34
}
45

56
ext {
@@ -42,4 +43,7 @@ subprojects {
4243
finalizedBy jacocoTestReport
4344
}
4445
}
45-
}
46+
dependencyCheck {
47+
nvd.apiKey = System.getenv("NVD_API_KEY")
48+
}
49+
}

0 commit comments

Comments
 (0)