release:notes: add --advisory to list GHSA fixes and credit their reporters
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 54/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- github, node.js, typescript
- Área
- release
Línea de trabajo
Start with scripts/release-notes.mjs and its tests in scripts/release-notes.test.mjs; read the release skill’s step 3a for the documented workflow. Trace how the helper gathers release notes and contributor credits, then implement and test --advisory lookup, validation, draft warnings, security bullets, and reporter merging. Done when the acceptance cases pass and previewing version 2.12.0 reproduces its published security section and Thanks list.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Found while preparing the v2.12.0 release notes (#2764).
Problem
npm run release:notes (scripts/release-notes.mjs, #2550) has no way to put security advisories in a release's notes. This leaves two gaps, and v2.12.0 hits both:
- Advisory fixes never appear under What's Changed. A GHSA fix lands on
v2/mainas a Merge commit from fork from the advisory's private fork, not as a PR.releases/generate-noteslists only PRs, so the fix is missing from the generated list. In v2.12.0 that is three fixes: GHSA-q978-78c7-phqw, GHSA-vcc9-3xgm-p9v4 and GHSA-m5pj-3536-3xcp. - Advisory reporters are never thanked. The Thanks section credits the community authors of issues that listed PRs close. An advisory reporter files no issue, so they are left out, and so is their place in the release's Contributors strip.
The workaround right now is a hand-spliced preview: save the helper's output, paste a ### Security fixes section and the reporters in, and create the Release with gh release create --notes-file. That bypasses the helper's version/target guards, which is exactly what #2550 was written to remove. The v1 line's 1.0.3 notes (release) were written by hand in the same shape, and they are the format to match.
Proposal
A repeatable --advisory "<GHSA-id>: <markdown>" option. The markdown is the maintainer's one-line description of the fix. The advisory's own summary describes the vulnerability, not what changed, so it isn't a substitute. For each advisory, the helper:
- Renders a bullet under a
### Security fixesheading inside What's Changed, ending in the advisory link, matching 1.0.3:* **<desc>** ([GHSA-…](https://github.com/<repo>/security/advisories/GHSA-…)). - Credits its reporters from
security-advisories/{ghsa_id}credits_detailed, in every credit state. A reporter whose credit is stillpendingis credited too, which is the maintainer's call for 2.12.0. Each person is merged into the existing Thanks list, one line per person, with the GHSA ids alongside any issue numbers:* @user (#123, GHSA-…). The section is no longer omitted when advisory reporters exist even though no issue reporters do. - Checks the advisory covers this release. Fail if no
vulnerabilities[].patched_versionsnames the version being released, since a wrong id would link and credit an unrelated advisory. - Warns, but does not fail, while the advisory is a
draft. Its link 404s until it is published. The intended order is to publish the Release and then the advisories, so this is a reminder rather than an error.
The same fail-fast rule applies: a failed advisory lookup aborts the run, and is never skipped and never read as "no reporters".
Optional, and fine to split off: a generic --section "<markdown>" for the hand-written "New configuration" block that 1.0.3 and 2.12.0 both carry.
Acceptance
-
--advisoryrenders the Security fixes bullets and links, and credits reporters in all credit states, merged with issue reporters - Fails when the advisory does not list the release version as patched; warns when it is a draft
- An advisory lookup failure aborts the run
-
scripts/release-notes.test.mjscovers each branch; thereleaseskill's step 3a documents the option - Previewing
--version 2.12.0with that release's three advisories reproduces its published security section and Thanks list
- Lenguaje dominante
- TypeScript
- Estrellas
- 11.1k
- Forks
- 1.6k
- Merge medio
- 5 h 32 min
- PR fusionados (30 d)
- 153
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de modelcontextprotocol/inspector
-
chore(deps): upgrade the MCP TypeScript SDK to 2.4.0Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertochore dependencies v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
modelcontextprotocol/inspector#2784 ·
Los mantenedores suelen responder en 1 día
-
Sort tools listing by selector or titlePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoenhancement v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
modelcontextprotocol/inspector#2782 ·
Los mantenedores suelen responder en 1 día
-
CLI tests seed the developer's real ~/.mcp-inspector/mcp.json (cli.test.ts, completion.test.ts)Abiertobug v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
modelcontextprotocol/inspector#2765 ·
Los mantenedores suelen responder en 1 día
-
chore v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
modelcontextprotocol/inspector#2752 ·
Los mantenedores suelen responder en 1 día
-
SSE transport: connection succeeds then marked 'Failed' after first event, works fine with raw curlAbierto
Dificultad 4/5 1-2 días Aptitud para principiantes 53/100
modelcontextprotocol/inspector#2783 ·
Los mantenedores suelen responder en 1 día
Todos los issues de modelcontextprotocol/inspector
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
awesome-dsh-plugin/awesome-dsh-plugin#9184 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
farion1231/cc-switch#8829 ·
Los mantenedores suelen responder en 1 día
-
[core-client] Remove unused hand-maintained transport helpers after the definition-table cutoverAbiertodoc-audit enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100