From f523e6cd92543e6cb22fbfbc01a7e4fe1902188d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatrice=20Dellac=C3=A0?= Date: Sun, 9 Mar 2025 11:17:30 +0100 Subject: [PATCH] add api key --- .drone.yml | 5 ++++- pom.xml | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 3fb8f1a..03b9882 100644 --- a/.drone.yml +++ b/.drone.yml @@ -29,7 +29,10 @@ steps: - name: dependency-check image: maven:3-eclipse-temurin-21 commands: - - mvn dependency-check:check --no-transfer-progress -B -V + - mvn dependency-check:check --no-transfer-progress -B -V -DnvdApiKey=$NVD_API_KEY + environment: + NVD_API_KEY: + from_secret: nvd_api_key # run code analysis - name: code-analysis diff --git a/pom.xml b/pom.xml index 23bdeed..bb2e81c 100644 --- a/pom.xml +++ b/pom.xml @@ -147,6 +147,7 @@ 12.1.0 8 + ${nvdApiKey} html json