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

Open Beginner friendly
#3,139 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript

Research direction

Start with .claude/skills/release/SKILL.md, comparing the v1 steps with the v2 PR 1 audit procedure, then check the v1 release issue checklist and ledger description. Add the audit in the specified order relative to v1-1 and v1-2, record the report and reachability decisions, and run npm run verify:skills; done when the v1 procedure, checklist, and ledger description meet the acceptance criteria.

Written by the indexing model from the issue text.

Description

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.
Dominant language
TypeScript
Stars
11.4k
Forks
1.6k
Avg merge
2h 27m
Merged PRs (30d)
121

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from modelcontextprotocol/inspector

All issues in modelcontextprotocol/inspector

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.