Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: vulnerability scan: undo unused change #128

Merged
merged 1 commit into from
Jul 2, 2024
Merged
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
22 changes: 2 additions & 20 deletions bb.edn
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,10 @@
version-clj/version-clj {:mvn/version "2.0.2"}}
:tasks {;; setup
:requires ([babashka.fs :as fs]
[babashka.http-client :as http]
[clojure.edn :as edn]
[clojure.string :as string]
[lread.status-line :as status])

:enter (let [{:keys [name task-decoration] :as f} (current-task)]
(when-not (= :none task-decoration)
(status/line :head "TASK %s" name)))
:leave (let [{:keys [name task-decoration] :as f} (current-task)]
(when-not (= :none task-decoration)
(status/line :detail "\nTASK %s done." name)))
:enter (let [{:keys [name]} (current-task)] (status/line :head "TASK %s %s" name (string/join " " *command-line-args*)))
:leave (let [{:keys [name]} (current-task)] (status/line :detail "\nTASK %s done." name))

;; tasks
clean
Expand Down Expand Up @@ -54,17 +47,6 @@
lint
{:doc "Run all lints"
:depends [lint-kondo lint-eastwood]}
latest-release
{:doc "Return latest clojars release of given artifact"
:task-decoration :none
;; we use RELEASE for nvd-clojure, so use its version as our cache key
:task (let [artifact (first *command-line-args*)]
(-> (http/get (str "https://clojars.org/api/artifacts/" artifact)
{:headers {"Accept" "application/edn"}})
:body
edn/read-string
:latest_release
println))}
nvd-scan
{:doc "Check for security vulnerabilities in dependencies"
:task (let [cp (with-out-str (clojure "-Spath"))]
Expand Down