Created
August 30, 2023 18:02
-
-
Save deangrant/45cffbc6f2a0da5eaf3000ae29d6ab06 to your computer and use it in GitHub Desktop.
Alias to return matching instances of a vulnerability type using the Snyk CLI
This file contains 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
# $ snykchecktype "SQL Injection" | |
snykchecktype() { | |
local type="$1" | |
local output=$(snyk code test .) | |
echo "$output" | grep -A2 "$type" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment