Skip to content

Commit

Permalink
fix: Use the correct key for NVD API-Key from Maven Settings serverId (
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylong authored Nov 22, 2023
2 parents af344a2 + 1e16d88 commit 353c876
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2324,7 +2324,7 @@ protected void populateSettings() {
settings.setIntIfNotNull(Settings.KEYS.NVD_API_VALID_FOR_HOURS, nvdValidForHours);

if (nvdApiKey == null && nvdApiServerId != null) {
configureServerCredentialsApiKey(nvdApiServerId, Settings.KEYS.NVD_API_DATAFEED_PASSWORD);
configureServerCredentialsApiKey(nvdApiServerId, Settings.KEYS.NVD_API_KEY);
} else {
settings.setStringIfNotEmpty(Settings.KEYS.NVD_API_KEY, nvdApiKey);
}
Expand Down

0 comments on commit 353c876

Please sign in to comment.