#7835: CI: add dependency security audit job
stale
## Summary
- Add `security-audit` job to CI workflow
- Runs `pnpm audit --audit-level=high` on every push/PR
- Fails CI if high/critical vulnerabilities are found
- Shows audit results in GitHub Step Summary
## Why
Currently there's no automated check for vulnerable dependencies.
This catches known CVEs in dependencies before they reach production.
## Test Plan
- [x] Tested locally with `pnpm build && pnpm check`
- [x] Verified YAML syntax
- [x] CI job runs successfully (will verify after PR creation)
## AI Assistance
Built with Claude. Reviewed and tested the changes manually.
---
🤖 Generated with AI assistance
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
Adds a new `security-audit` CI job to run `pnpm audit --audit-level=high` on pushes/PRs and write a short result into the GitHub Step Summary.
This fits into the existing CI workflow as an additional gate alongside install/lint/test/protocol/secret scanning jobs, intended to prevent merges with known high/critical dependency vulnerabilities.
<h3>Confidence Score: 4/5</h3>
- This PR is generally safe to merge; it adds an isolated CI job with low blast radius.
- The change is confined to a GitHub Actions workflow and doesn’t affect runtime code. Main risks are CI flakiness and false positives/negatives depending on submodule checkout and install flags, which are addressable with small workflow tweaks.
- .github/workflows/ci.yml
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#15794: docs(security): comprehensive security audit report
by kinder-world · 2026-02-13
76.1%
#8988: fix: resolve security vulnerabilities in dependencies
by fotorpics · 2026-02-04
75.1%
#21979: chore: add knip dependency check and remove unused dependencies
by chansuke · 2026-02-20
73.9%
#15757: feat(security): add hardening gap audit checks
by saurabhsh5 · 2026-02-13
73.1%
#2416: chore: add detect-secrets baseline and loc check
by zeroslashagency · 2026-01-26
72.9%
#3973: fix: enhance npm package integrity checks and include critical files
by YeSuX · 2026-01-29
72.0%
#11048: fix: address repository issues (env, author, CI comments, security ...
by cavula · 2026-02-07
72.0%
#11032: fix(security): block plugin install/load on critical source scan fi...
by coygeek · 2026-02-07
71.2%
#8075: fix(skills): add --ignore-scripts to all package managers
by yubrew · 2026-02-03
71.1%
#13169: security: add --ignore-scripts to npm install during plugin/hook in...
by RamiNoodle733 · 2026-02-10
70.8%