$ npm install @socketsecurity/bun-security-scannerOfficial Socket Security scanner for Bun's package installation process. Protects your projects from malicious packages, typosquatting, and other supply chain attacks.
bun add -d @socketsecurity/bun-security-scanner
Add to your bunfig.toml:
[install.security]
scanner = "@socketsecurity/bun-security-scanner"
For enhanced scanning with your Socket organization settings, set the SOCKET_API_KEY environment variable:
export SOCKET_API_KEY="xyz"
bun install
Note: required scope
packages
The scanner will automatically read your token from:
SOCKET_API_KEY environment variableWithout a token, the scanner runs in free mode using Socket's public API.