skills/bun-pm-security-scanner-api/SKILL.md
Security Scanner API
npx skillsauth add jarle/bun-skills Bun Security Scanner APIInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Bun's package manager can scan packages for security vulnerabilities before installation, helping protect your applications from supply chain attacks and known vulnerabilities.
Configure a security scanner in your bunfig.toml:
[install.security]
scanner = "@acme/bun-security-scanner"
When configured, Bun will:
Security scanners analyze packages during bun install, bun add, and other package operations. They can detect:
Scanners report issues at two severity levels:
fatal - Installation stops immediately, exits with non-zero codewarn - In interactive terminals, prompts to continue; in CI, exits immediatelyMany security companies publish Bun security scanners as npm packages that you can install and use immediately.
Install a security scanner from npm:
bun add -d @acme/bun-security-scanner
<Note>
Consult your security scanner's documentation for their specific package name and installation instructions. Most
scanners will be installed with `bun add`.
</Note>
After installation, configure it in your bunfig.toml:
[install.security]
scanner = "@acme/bun-security-scanner"
Some enterprise scanners might support authentication and/or configuration through environment variables:
# This might go in ~/.bashrc, for example
export SECURITY_API_KEY="your-api-key"
# The scanner will now use these credentials automatically
bun install
Consult your security scanner's documentation to learn which environment variables to set and if any additional configuration is required.
For a complete example with tests and CI setup, see the official template: github.com/oven-sh/security-scanner-template
development
Using TypeScript with Bun, including type definitions and compiler options
development
Learn how to write tests using Bun's Jest-compatible API with support for async tests, timeouts, and various test modifiers
testing
Learn how to use snapshot testing in Bun to save and compare output between test runs
testing
Learn about Bun test's runtime integration, environment variables, timeouts, and error handling