Bug: surface actionable errors when license IDs fail SPDX-style parse (no silent drop)

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

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

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

Valutazione

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

Direzione di ricerca

Start by reproducing the malformed-license case with a fixture package, then trace the vg scan, report, and SBOM paths that parse license identifiers; the issue does not name specific files or tests. Add coverage for deterministic, actionable output that does not expose secrets, and verify the warning or finding is visible in human or machine-readable output.

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

Descrizione

bug

Context

If a package license string cannot be parsed into an SPDX-style identifier, silently omitting it from vg scan / report / SBOM paths hides data quality problems. Users should see an actionable message (what failed + what to do), consistent with local-first, no-secrets error style.

What to do

  1. Reproduce with a fixture package whose license field is malformed / non-SPDX.
  2. Ensure machine-readable and human output either include a structured warning/finding or a clear stderr note — never a quiet omission with no trace.
  3. Keep determinism: same fixture → same warning text/code every run.
  4. Never log registry tokens or file contents that look like secrets.

Acceptance

  • Malformed license is visible in output or as an explicit warning/finding
  • Message is actionable (failed parse + suggested next step)
  • Fixture + test cover the path
  • DCO sign-off

Refs: #213 (license source path) · #150 (actionable failures)

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.