release skill: add an npm audit step to the v1 procedure

未关闭 适合新手
#3,139 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript

调研方向

从 .claude/skills/release/SKILL.md 开始,将 v1 步骤与 v2 PR 1 的审计流程进行比较,然后检查 v1 release issue 清单和 ledger 描述。按照相对于 v1-1 和 v1-2 的指定顺序添加审计,记录报告和可达性决策,并运行 npm run verify:skills;当 v1 流程、清单和 ledger 描述满足验收标准时,即为完成。

由索引模型根据 Issue 内容生成。

描述

documentation v2

Problem

The v1 release procedure (.claude/skills/release/SKILL.md, "The v1 line", steps v1-1 to v1-7) has no npm audit step. The v2 procedure runs one in PR 1 on every release: it audits each install, reports only (never npm audit fix), and fixes deliberately before the bump.

On v1, findings show up only incidentally. Releasing 1.0.8 (#3122), npm ci on the bump branch printed 34 vulnerabilities (16 moderate, 13 high, 5 critical). The procedure had no step to triage them, so they were neither looked at nor recorded anywhere durable.

Proposed change

Add an audit step to the v1 procedure, before or alongside v1-1, mirroring v2's PR 1:

  • Run npm audit --audit-level=high on v1/main (one install: v1 is a single npm workspace with one lockfile) and record the report in the v1 release ledger.
  • Same rules as v2: report only. Never run npm audit fix (it downgrades silently), with or without --force. Fix deliberately with a direct bump or an overrides entry, each as its own PR against v1/main, merged before the bump (v1-2).
  • v1 takes security fixes only, so a finding needs a reachability call: fix one that is reachable from a shipped package; for one that is not (dev-only, or never on a shipped code path), record why in the ledger rather than fix it. This follows the precedent of #2074 and #2938.
  • Add the step to the v1 release issue's checklist, so it can't be skipped silently.

Acceptance

  • release skill's v1 section has the audit step, with its place in the order relative to v1-1 / v1-2 stated.
  • The v1 ledger description names the audit report as one of the things it records.
  • npm run verify:skills passes.
主要语言
TypeScript
星标
11.4k
派生
1.6k
平均合并
2 小时 27 分钟
30 天内合并 PR
121

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

modelcontextprotocol/inspector 的其他 Issue

查看 modelcontextprotocol/inspector 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。