Repository navigation
chore(ci): add dependency audit and Dependabot - #140
jeffdupont wants to merge 3 commits into
Conversation
- Add `make audit` (yarn audit, runtime deps only) and a CI job that runs it. - Add dependabot.yml: npm daily at the workspace root, github-actions weekly, 7-day cooldown, matching go-ai-sdk. - Re-resolve vulnerable transitive deps under @openai/agents -> @modelcontextprotocol/sdk (MCP SDK, proxy-addr, fast-uri, hono, ip-address, qs) within their existing ranges: 44 advisories -> 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
directory '/' covers .github/workflows only, so actions/setup-node in the build, ci and setup-release-node composite actions never got update PRs. List .github/actions/* as well. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Take main's yarn.lock, since the dependabot merges replaced this branch's bumps. Audit only high and critical advisories, keep the audit job non-blocking on pull requests with a weekly scheduled run, and ignore vitest major updates, since vitest 5 needs vite as a peer and Yarn 1 doesn't install it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Merged main in (e25b9a5):
Locally, |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit e25b9a5. Configure here.
|
|
||
| # Report known high or critical vulnerabilities in runtime (non-dev) dependencies | ||
| audit: | ||
| yarn audit --groups dependencies --level high |
There was a problem hiding this comment.
Audit level does not fail CI
Medium Severity
Yarn 1 yarn audit --level only filters printed advisories and does not change the exit code. make audit still fails on low or moderate runtime findings, so pushes to main and the weekly cron go red even with --level high. Those lower-severity advisories are also omitted from the job log, which hides why the gate failed.
Reviewed by Cursor Bugbot for commit e25b9a5. Configure here.


What
make audittarget (yarn audit --groups dependencies, runtime deps only) and aDependency auditCI job that runs it..github/dependabot.ymlwithnpmdaily at the workspace root (oneyarn.lockcovers everypackages/*workspace) andgithub-actionsweekly, both with a 7-day cooldown. Same shape as go-ai-sdk (go-ai-sdk#3) and python-ai-sdk (python-ai-sdk#176).@launchdarkly/ai-openai-agents→@openai/agents→@modelcontextprotocol/sdk. Each package was re-resolved within its existing range, and nopackage.jsonchanged:yarn auditon runtime deps: 44 advisories (2 critical, 17 high) → 0.Not in this PR
GitHub still shows 8 alerts after this lands, all in test and build tooling:
vitest/@vitest/mocker4.1.9 (fixed in 4.1.11),source-map-jsvia vite → postcss,sprintf-jsvia@microsoft/api-extractor(no fix yet), andesbuild0.27.7 (low). The new job skips dev dependencies on purpose. These can go in a follow-up PR, or wait for Dependabot to open them.Verified locally
yarn audit --groups dependencies→0 vulnerabilities foundyarn install --frozen-lockfile, core build,yarn typecheck,yarn test(all workspaces) passbiome lint,biome check) passNot verified: the CI run itself (this PR's checks will show it).
🤖 Generated with Claude Code
Note
Overview
Adds automated dependency maintenance and runtime security checks without changing application code.
Dependabot (
.github/dependabot.yml): daily npm updates at the Yarn workspace root and weekly GitHub Actions updates (workflows + composite actions), both with a 7-day cooldown. Majorvitestbumps are ignored to avoid the Yarn 1 / vite issue noted in #52.CI: a weekly Monday cron so advisories can fail CI even when
mainhasn’t changed. A new Dependency audit job runsmake auditafter a frozenyarn install; it usescontinue-on-erroron pull requests so new advisories don’t block every PR, while push and scheduled runs still fail the workflow.Makefile: new
audittarget —yarn audit --groups dependencies --level high(runtime deps only, high/critical).Reviewed by Cursor Bugbot for commit e25b9a5. Bugbot is set up for automated code reviews on this repo. Configure here.