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

Abierto Apto para principiantes
#3,139 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
78/100
Tipo de issue
Documentación
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

Empieza con .claude/skills/release/SKILL.md, compara los pasos de v1 con el procedimiento de auditoría de v2 PR 1 y luego revisa la lista de verificación del issue de release de v1 y la descripción del ledger. Añade la auditoría en el orden especificado con respecto a v1-1 y v1-2, registra el informe y las decisiones de accesibilidad, y ejecuta npm run verify:skills; el trabajo estará terminado cuando el procedimiento de v1, la lista de verificación y la descripción del ledger cumplan los criterios de aceptación.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
TypeScript
Estrellas
11.4k
Forks
1.6k
Merge medio
2 h 27 min
PR fusionados (30 d)
121

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de modelcontextprotocol/inspector

Todos los issues de modelcontextprotocol/inspector

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.