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.
###
[
](#authoring-your-own-scanner)
Authoring your own scanner
For a complete example with tests and CI setup, see the official template: [github.com/oven-sh/security-scanner-template](https://github.com/oven-sh/security-scanner-template)
##
[
](#related)
Related
* [Configuration (bunfig.toml)](../../runtime/bunfig/index.md#install-security-scanner)
* [Package Manager](../../installation/index.md)
* [Security Scanner Template](https://github.com/oven-sh/security-scanner-template)
Was this page helpful?
[Suggest edits](https://github.com/oven-sh/bun/edit/main/docs/pm/security-scanner-api.mdx)[Raise issue](<https://github.com/oven-sh/bun/issues/new?title=Issue on docs&body=Path: /pm/security-scanner-api>)
[
Overrides and resolutions
Previous
](../overrides/index.md)[
.npmrc support
Next
](../npmrc/index.md)