CI audit is non-blocking and nothing gates a release on known advisories
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
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- github-actions, typescript
Línea de trabajo
Lee .github/workflows/ci.yml alrededor de las líneas 111–115 y luego compara los trabajos de bundle y build en .github/workflows/release.yml y .github/workflows/publish.yml. Añade la auditoría bloqueante de dependencias de producción a las rutas de release, tal como se describe en el issue, y mantén las auditorías de PR como informativas. Verifica el cambio del workflow con una ejecución que muestre el nuevo comportamiento; el issue también incluye npm run build && npm test y los comandos de typecheck y lint.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
CI audit is non-blocking and nothing gates a release on known advisories. The reasoning for PRs is sound, but the same leniency applies to the release path, where the .mcpb freezes the lockfile's production tree into an artifact users install. A critical advisory in shipped dependencies is currently visible only to someone who opens a green job's log. The project works directly on main with no PR review step, so nobody is prompted to look.
Where
.github/workflows/ci.yml:111.github/workflows/ci.yml:114.github/workflows/publish.yml:26.github/workflows/release.yml:126scripts/build-mcpb.mjs:41
Details
The only audit step is
# Report advisories in shipped (non-dev) dependencies without blocking
# the build; a new upstream advisory should not fail an unrelated PR.
- name: npm audit (production deps)
continue-on-error: true
run: npm audit --omit=dev --audit-level=high
(ci.yml:111-115). It fails today (a cross-spawn advisory with a fix available) and the job stays green. publish.yml (build job: npm ci, build, test, pack, lines 26-34) and release.yml (bundle job: npm ci, build, build-mcpb.mjs, lines 124-128) run no audit at all, and build-mcpb.mjs:41 passes --no-audit to the npm ci that fills the bundle's node_modules.
Impact
The reasoning for PRs is sound, but the same leniency applies to the release path, where the .mcpb freezes the lockfile's production tree into an artifact users install. A critical advisory in shipped dependencies is currently visible only to someone who opens a green job's log. The project works directly on main with no PR review step, so nobody is prompted to look.
How to see it
Open any recent CI run: the "npm audit (production deps)" step shows a failure annotation while the job passes; release 0.60.0's bundle was built from the same lockfile.
Suggested fix
Keep the PR step advisory, and add a blocking npm audit --omit=dev --audit-level=high to the release bundle job (release.yml, before build-mcpb.mjs) and to publish.yml's build job, or make the CI step blocking on push to main only (continue-on-error: ${{ github.event_name == 'pull_request' }}).
Acceptance criteria
- The workflow change is in place and a run shows the new behavior
Getting started
- Relevant files:
.github/workflows/ci.yml,.github/workflows/publish.yml,.github/workflows/release.yml,scripts/build-mcpb.mjs - How to run tests:
npm run build && npm test(alsonpm run typecheckandnpm run lint) - Related docs:
CONTRIBUTING.md,AGENTS.md
Filed by repo-audit/full-audit at b8156ef. Severity: medium. Effort: S. audit-key: ci|.github/workflows/ci.yml|npm-audit-continue-on-error
- Lenguaje dominante
- TypeScript
- Estrellas
- 1
- Forks
- 4
- Merge medio
- 3 d 4 h
- PR fusionados (30 d)
- 4
Preparar el entorno
- Sin Dockerfile ni 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 TMHSDigital/screencast-mcp
-
dependencies effort: small good first issue priority: low
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
TMHSDigital/screencast-mcp#509 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
TMHSDigital/screencast-mcp#508 ·
Los mantenedores suelen responder en 1 día
-
dependencies effort: small good first issue priority: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
TMHSDigital/screencast-mcp#490 ·
Los mantenedores suelen responder en 1 día
-
effort: medium help wanted priority: low testing
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
TMHSDigital/screencast-mcp#503 ·
Los mantenedores suelen responder en 1 día
-
effort: medium priority: low tech-debt
Dificultad 4/5 3-5 días Aptitud para principiantes 56/100
TMHSDigital/screencast-mcp#502 ·
Los mantenedores suelen responder en 1 día
Todos los issues de TMHSDigital/screencast-mcp
Issues similares
-
from-review tech-debt testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
blamechris/chroxy#9520 ·
Los mantenedores suelen responder en 1 día
-
area:web complexity:S priority:P2 type:chore
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
nahuelcostac/agent-hub#104 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
snaglet-org/snaglet#78 ·
Los mantenedores suelen responder en 1 día
-
agent/guide documentation help wanted stage/010-actionable
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
kubestellar/console-marketplace#1101 ·
Los mantenedores suelen responder en 1 día
-
Java Edition Tests
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
JSPrismarine/JSPrismarine#4178 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día