Bug: actionable error when --package-manifest path is missing or unreadable

Aperta
#283 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

  • #328 di @vibgrate-team — chiusa senza merge

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
node.js, typescript
Ambito
cli, security

Direzione di ricerca

Start by tracing how vg scan --vulns --package-manifest <path> loads the manifest, focusing on paths that fail or return empty data. Add focused coverage for missing and unreadable paths; done means a deterministic error names the path and gives a hint, exits non-zero, and reveals no secret material.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

Context

Offline vg scan --vulns --package-manifest <path> (see #239 for docs) should fail closed with an actionable error when the path is missing, unreadable, or not a usable manifest — not a cryptic stack or empty success. CI and assistants need a stable message + non-zero exit.

What to do

  1. Find load paths for --package-manifest that dump stacks or succeed with empty data on bad paths.
  2. Emit a deterministic user-facing error (path + hint); never echo secret material from nearby env/files.
  3. Add a focused test for missing and unreadable cases.

Acceptance

  • Missing/unreadable manifest → actionable error + non-zero exit
  • No secret material in the message
  • Test coverage; DCO
Lingua principale
TypeScript
Stelle
4
Fork
3
Merge medio
1g 22h
PR unite (30g)
76

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di vibgrate/cli

Tutte le issue di vibgrate/cli

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.