CI audit is non-blocking and nothing gates a release on known advisories
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 78/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- github-actions, typescript
Direzione di ricerca
Leggi .github/workflows/ci.yml intorno alle righe 111–115, poi confronta i job di bundle e build in .github/workflows/release.yml e .github/workflows/publish.yml. Aggiungi ai percorsi di release l’audit bloccante delle dipendenze di produzione come descritto nell’issue, mantenendo indicativi gli audit delle PR. Verifica la modifica al workflow con un’esecuzione che mostri il nuovo comportamento; l’issue elenca anche npm run build && npm test e i comandi di typecheck e lint.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- TypeScript
- Stelle
- 1
- Fork
- 4
- Merge medio
- 3g 4h
- PR unite (30g)
- 4
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di TMHSDigital/screencast-mcp
-
dependencies effort: small good first issue priority: low
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
TMHSDigital/screencast-mcp#509 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
TMHSDigital/screencast-mcp#508 ·
I maintainer di solito rispondono entro 1 giorno
-
dependencies effort: small good first issue priority: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
TMHSDigital/screencast-mcp#490 ·
I maintainer di solito rispondono entro 1 giorno
-
effort: medium help wanted priority: low testing
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
TMHSDigital/screencast-mcp#503 ·
I maintainer di solito rispondono entro 1 giorno
-
effort: medium priority: low tech-debt
Difficoltà 4/5 3-5 giorni Idoneità per principianti 56/100
TMHSDigital/screencast-mcp#502 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di TMHSDigital/screencast-mcp
Issue simili
-
from-review tech-debt testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
blamechris/chroxy#9520 ·
I maintainer di solito rispondono entro 1 giorno
-
area:web complexity:S priority:P2 type:chore
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
nahuelcostac/agent-hub#104 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
snaglet-org/snaglet#78 ·
I maintainer di solito rispondono entro 1 giorno
-
agent/guide documentation help wanted stage/010-actionable
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
kubestellar/console-marketplace#1101 ·
I maintainer di solito rispondono entro 1 giorno
-
Java Edition Tests
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
JSPrismarine/JSPrismarine#4178 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno