Skip to content

Instantly share code, notes, and snippets.

@konstruktoid
Created May 19, 2020 11:51
Show Gist options
  • Save konstruktoid/85fa7bf039a99f2aa342341759ffe464 to your computer and use it in GitHub Desktop.
Save konstruktoid/85fa7bf039a99f2aa342341759ffe464 to your computer and use it in GitHub Desktop.
#!/bin/sh
# https://github.com/jeremylong/DependencyCheck
dependency-check -f JSON -o . -s . &&\
jq -r '. | .dependencies[].vulnerabilities[]?.severity + " " + .dependencies[].vulnerabilities[]?.vulnerableSoftware[].software.id + " " + .dependencies[].projectReferences[]?' dependency-check-report.json |\
awk '{print tolower($0)}' |\
grep -vE '/.*:".*"$|transitive$' |\
sort |\
uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment