Created
May 19, 2020 11:51
-
-
Save konstruktoid/85fa7bf039a99f2aa342341759ffe464 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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