Skip to content

Commit

Permalink
Merge pull request #11 from clj-holmes/fail-on-result
Browse files Browse the repository at this point in the history
fail-on-result was failing in every execution
  • Loading branch information
mthbernardes authored Feb 11, 2022
2 parents 91fca0a + 0a45dbb commit 5e43eae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clj_watson/entrypoint.clj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
(defn -main [{:keys [fail-on-result output] :as opts}]
(let [vulnerabilities (scan opts)]
(controller.output/generate vulnerabilities output)
(if (and (-> vulnerabilities count (> 0))
(if (and (-> vulnerabilities :vulnerable-dependencies count (> 0))
fail-on-result)
(System/exit 1)
(System/exit 0))))
Expand Down

0 comments on commit 5e43eae

Please sign in to comment.