mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-06 05:44:37 +00:00
30 lines
607 B
Plaintext
30 lines
607 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# bun-audit
|
|
|
|
> Check installed packages for known security vulnerabilities.
|
|
> More information: <https://bun.com/docs/pm/cli/audit>.
|
|
|
|
- Audit all dependencies in a project with a `bun.lock` file:
|
|
|
|
`bun audit`
|
|
|
|
- Show only vulnerabilities at or above a specific severity level:
|
|
|
|
`bun audit --audit-level {{low|moderate|high|critical}}`
|
|
|
|
- Audit only production dependencies:
|
|
|
|
`bun audit --prod`
|
|
|
|
- Ignore a specific CVE ID:
|
|
|
|
`bun audit --ignore {{CVE-XXXX-YYYY}}`
|
|
|
|
- Output the raw JSON report:
|
|
|
|
`bun audit --json`
|