We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9a0232 commit 73c98b5Copy full SHA for 73c98b5
1 file changed
.github/workflows/cve-scanning-gradle.yml
@@ -13,6 +13,8 @@ on:
13
jobs:
14
scan:
15
runs-on: ubuntu-latest
16
+ env:
17
+ NVD_API_KEY: "${{ secrets.NVD_API_KEY }}"
18
steps:
19
- uses: actions/checkout@v4
20
- name: Set up JDK 17
@@ -22,6 +24,12 @@ jobs:
22
24
distribution: 'temurin'
23
25
- name: Build with Gradle
26
run: ./gradlew build
27
+ - name: Check env variable
28
+ run: >
29
+ if [[ -z "${NVD_API_KEY}" ]]; then
30
+ echo "[FAILURE] Missing NVD_API_KEY env variable" && exit 1
31
+ else
32
+ echo "[SUCCESS] NVD_API_KEY env variable exists"
33
+ fi
34
- name: CVEs
35
run: ./gradlew dependencyCheckAggregate
-
0 commit comments