Skip to content

fix: clear npm audit vulnerabilities - #19

Merged
fishknowsss merged 1 commit into
mainfrom
codex/fix-npm-audit
Oct 31, 2026
Merged

fishknowsss merged 1 commit into
mainfrom
codex/fix-npm-audit

Conversation

@fishknowsss

Copy link
Copy Markdown
Owner

问题

npm audit --omit=optional 报告 27 条依赖审计项:26 条 moderate、1 条 high。根因是两条传递依赖漏洞:minimatch <11.0.1(GHSA-g3hv-75wg-m249)和 zod <4.6.6(GHSA-mrhx-c7xc-m3w5)。

修复

在 package.json 增加 npm overrides:

  • minimatch: 11.0.3
  • zod: 4.6.7

同时刷新 package-lock.json,保持 Electron、ESLint、TypeScript、Worker 工具链的现有直接版本不变。

验证

  • npm ci
  • npm audit --omit=optional:0 vulnerabilities
  • npm ls minimatch zod --all --depth=6
  • npm test:119 个测试文件,1152 个测试
  • npm run test:window
  • npm run typecheck
  • npm run typecheck:worker
  • npm run test:worker
  • npm run build:worker
  • npm run build
  • npm run lint
  • npm run format:check

Copilot AI balanced review requested due to automatic review settings October 31, 2026 08:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@fishknowsss
fishknowsss merged commit 9dfbac4 into main Oct 31, 2026
1 check passed
@fishknowsss
fishknowsss deleted the codex/fix-npm-audit branch October 31, 2026 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants