generated from nhcarrigan/template
fix: no snyk
This commit is contained in:
parent
6b66b0617c
commit
546ac3efa4
8
scan.sh
8
scan.sh
@ -3,7 +3,6 @@ rm -r ./gitleaks;
|
||||
rm -r ./trivy;
|
||||
rm -r ./grype;
|
||||
rm -r ./syft;
|
||||
rm -r ./snyk;
|
||||
rm -r ./deps;
|
||||
rm ./index.html;
|
||||
|
||||
@ -12,7 +11,6 @@ mkdir ./gitleaks;
|
||||
mkdir ./trivy;
|
||||
mkdir ./grype;
|
||||
mkdir ./syft;
|
||||
mkdir ./snyk;
|
||||
mkdir ./deps;
|
||||
|
||||
# List of repositories to scan.
|
||||
@ -31,12 +29,6 @@ for directory in "${repositories[@]}"; do
|
||||
grype -o json --file ./grype/$directory.json ./_repos/$directory;
|
||||
syft scan ./_repos/$directory -o json=./syft/$directory.json;
|
||||
|
||||
# Need to move directories for Snyk to track the target correctly.
|
||||
cd ./_repos/$directory;
|
||||
snyk monitor --dev --project-name=$directory --remote-repo-url=$(git remote get-url origin) $current_dir/_repos/$directory;
|
||||
snyk test --dev --json --json-file-output=./snyk/$directory.json $current_dir/_repos/$directory;
|
||||
cd $current_dir;
|
||||
|
||||
# Manual dependency version checks (no reliable package to do this for us :/ )
|
||||
echo "No supported package manager found in this project." > $current_dir/deps/$directory.txt;
|
||||
if [ -f ./_repos/$directory/package.json ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user