Repository navigation
Conversation
Fail on critical advisories in runtime dependencies. Runs daily too, because new advisories appear without any code change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FPBJ9DRFq4u6eoLci23B6S
|
pnpm exec changesetto create a changeset. |
Coverage report
Test suite run success132 tests passing in 30 suites. Report generated by 🧪jest coverage report action from 2fd4d46 Show full coverage report
|
There was a problem hiding this comment.
🟢 Approval recommended
The workflow matches the intended triggers and audit scope, with no identified blocking issues.
No open issues 🎉
What changed in this PR
Adds automated checks for critical advisories in production dependencies, including newly published advisories that appear without code changes.
Changes:
- Runs on every pull request, daily at 06:17 UTC, and through manual dispatch.
- Uses pinned pnpm setup and Node.js 22.
- Audits the lockfile without installing dependencies; devDependencies are excluded.
| File | Description |
|---|---|
.github/workflows/audit.yml |
Adds the scheduled and per-PR production dependency audit. |
Review effort: Balanced
Part of INTER-2697.
Why
Catch critical advisories in runtime dependencies on every PR and daily, since new advisories appear without code changes.
Things to note
dependencies;dist/imports only Node built-ins (crypto,zlib,util,buffer). So--prodcurrently covers thedependenciesof the private workspace packagesexample/andtests/functional-tests/(dotenv). devDependencies are not checked.typescriptforopenapi-typescript,@types/nodeforvitest/vite) exist on main and are unchanged.Verification
Ran against the main lockfile in a scratch dir with no
node_modules:--prod --audit-level critical--audit-level criticalminimist@0.0.8added toexampledepsminimist@0.0.8added to root devDepsLocally:
pnpm lint,pnpm typecheck:source,pnpm test:dts,pnpm test(132 passed) andpnpm buildall pass.Change outline
.github/workflows/audit.yml(new): runspnpm audit --prod --audit-level criticalonpull_request, daily at 06:17 UTC and on manual dispatch. Uses the same pinnedpnpm/action-setupand Node 22 asfunctional_tests.yml. No install step; the audit readspnpm-lock.yaml.Generated by Claude Code