Skip to content

Commit

Permalink
ci: vulnerability scan tweaks
Browse files Browse the repository at this point in the history
- Replace config.json with nvd-clojure.edn.
- Bump dependency-check
- Increase nvd max retry count from 10 to 30. The idea here is that if
the NIST data feeds are struggling (as they happen to be now), more
retries might just allow us to successfully download and cache a db.
Subsequent runs would then use the cached db and avoid the costly
attempt to retry re-downloading the entire db again.
  • Loading branch information
lread committed Nov 22, 2024
1 parent fc99103 commit 87802fb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bb.edn
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
:task (let [cp (with-out-str (clojure "-Spath"))]
(clojure {:dir "./nvd_check_helper_project"}
"-J-Dclojure.main.report=stderr -M -m nvd.task.check"
"./config.json"
"./nvd-clojure.edn"
cp))}
pubcheck
{:doc "run only publish checks (without publishing)"
Expand Down
2 changes: 0 additions & 2 deletions nvd_check_helper_project/config.json

This file was deleted.

2 changes: 1 addition & 1 deletion nvd_check_helper_project/deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#_:clj-kondo/ignore
{:mvn/version "RELEASE"}
;; temporarily try bumping transitive dep to current release
org.owasp/dependency-check-core {:mvn/version "11.0.0"}}}
org.owasp/dependency-check-core {:mvn/version "11.1.0"}}}
3 changes: 3 additions & 0 deletions nvd_check_helper_project/nvd-clojure.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{:delete-config? false
:nvd {:nvd-api {:max-retry-count 30}}
:suppression-file "./suppressions.xml"}

0 comments on commit 87802fb

Please sign in to comment.