diff --git a/scan.sh b/scan.sh index 6ac05a9..6fe2c8b 100755 --- a/scan.sh +++ b/scan.sh @@ -33,7 +33,8 @@ for directory in "${repositories[@]}"; do # Need to move directories for Snyk to track the target correctly. cd ./_repos/$directory; - snyk test --dev --json --json-file-output=./_repos/security/snyk/$directory.json $current_dir/$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 :/ )