Bug: preserve LicenseRef-* custom license IDs through vg sbom format exports

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

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

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

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
typescript
Ambito
security

Direzione di ricerca

Start by tracing the CycloneDX and SPDX export paths invoked by vg sbom export, then locate their existing fixtures and tests. Add a fixture component with a LicenseRef- and verify supported exports preserve it, unsupported representations warn with the component name, and output is deterministic. Pull request #361 is already open for this issue.

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

Descrizione

bug

Context

Custom LicenseRef-* identifiers are valid in SPDX-oriented inventories. Adjacent SBOM converters have dropped them on format boundaries. vg sbom export should preserve custom license refs across CycloneDX and SPDX outputs when the source graph recorded them — deterministic, no silent strip.

Related but distinct from parse-failure diagnostics for malformed SPDX ids.

What to do

  • Audit CycloneDX and SPDX export paths for LicenseRef-* (and equivalent custom license expressions).
  • Preserve refs in both formats when present on a component; if a format cannot represent them, emit an actionable warning naming the component — do not drop quietly.
  • Add a fixture component with a LicenseRef- and assert round-trip or export stability.

Acceptance

  • Custom LicenseRef-* survives export for supported formats
  • Unsupported representation yields a visible warning, not a silent omit
  • Fixture/test covers at least one LicenseRef
  • Deterministic output for fixed input
  • DCO sign-off (git commit -s)
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.