By default, this scanner loads affected package versions directly from the GitHub csv folder and then checks your node_modules.
- Download the script
curl -L -o check.js https://raw.githubusercontent.com/OpenForgeProject/supply-chain-scanner/main/check.js
- Options to run it in your target project
node check.jsnode check.js -rnode check.js /path/to/scan -r
node check.js --csv-github-url https://github.com/OWNER/REPO/tree/main/csv
node check.js --help
By default, only found packages are shown in the detailed overview, including compromised and safe installed versions.
Use verbose mode to also list packages that are not installed:
node check.js --verbose
or
node check.js -r --verbose
Use a bearer token in the Authorization header:
curl -H "Authorization: Bearer YOUR_TOKEN" https://api.github.com/user
Or run the scanner with GITHUB_TOKEN:
GITHUB_TOKEN=YOUR_TOKEN node check.js