Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion nvd-clojure.edn
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{ ;; This file is part of the integration test suite.
:suppression-file ".github/example_nvd_suppressions.xml"
:analyzer {:ossindex-warn-only-on-remote-errors true}
:analyzer {:ossindex-warn-only-on-remote-errors true
:ossindex {:user nil
:token nil}}
:a-custom-change 42}
9 changes: 7 additions & 2 deletions resources/nvd_clojure/default_config_content.edn
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@
;; according to an API key that you can obtain in https://nvd.nist.gov/developers/request-an-api-key
:nvd-api {:key nil}

#_:analyzer ;; Analyzer options, which are mostly advanced/internal
#_{:ossindex-warn-only-on-remote-errors
:analyzer ;; Analyzer options, which are mostly advanced/internal
{:ossindex
{;; Sonatype requires authentication, see https://ossindex.sonatype.org/doc/auth-required
:username nil
:token nil}

#_#_:ossindex-warn-only-on-remote-errors
;; Occasionally necessary for not making HTTP 500 errors from OSS Index (one of the multiple analyzers internally used)
;; a reason for execution to fail.
;; Please only enable this carefully since it can mean false negatives.
Expand Down
4 changes: 3 additions & 1 deletion src/nvd/config.clj
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@
Settings$KEYS/NVD_API_VALID_FOR_HOURS [:nvd-api :valid-for-hours]
Settings$KEYS/NVD_API_DATAFEED_URL [:nvd-api :datafeed :url]
Settings$KEYS/NVD_API_DATAFEED_USER [:nvd-api :datafeed :user]
Settings$KEYS/NVD_API_DATAFEED_PASSWORD [:nvd-api :datafeed :password]})
Settings$KEYS/NVD_API_DATAFEED_PASSWORD [:nvd-api :datafeed :password]
Settings$KEYS/ANALYZER_OSSINDEX_USER [:analyzer :ossindex :username]
Settings$KEYS/ANALYZER_OSSINDEX_PASSWORD [:analyzer :ossindex :token]})

(def ^:private boolean-mappings
{Settings$KEYS/ANALYZER_ARCHIVE_ENABLED [:analyzer :archive-enabled]
Expand Down