Bug: emit ecosystem-correct PURLs in SBOM exports

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

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Start at the vg sbom export entry point and follow the SBOM export and lockfile component helpers to see where ecosystem metadata is lost or PURLs are formed. Add fixtures for npm and at least two non-npm ecosystems, then run the relevant tests for both SPDX and CycloneDX where available. Done means unknown ecosystems are represented honestly, outputs are deterministic, and the acceptance criteria—including DCO sign-off—are met.

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

Descrizione

bug help wanted

Context

vg sbom export should not claim an ecosystem Vibgrate did not detect. If SPDX/CycloneDX helpers hard-code pkg:npm/... for non-npm packages, supply-chain evidence is wrong.

Separate from #151 (docs/example) and the outputs-contract docs issue.

What to do

  • Preserve ecosystem metadata through SBOM export
  • Emit ecosystem-correct PURLs for supported package managers
  • Use the same identity in CycloneDX and SPDX where both exist
  • If ecosystem cannot be identified safely, omit/NOASSERTION rather than guessing npm
  • Add fixtures for npm plus at least two non-npm ecosystems
  • Keep ordering and generated identifiers deterministic

Do not fabricate dependency relationships from a flat list unless the parser already exposes them.

Acceptance

  • npm packages still emit valid npm PURLs
  • Non-npm packages do not emit npm PURLs
  • Unknown ecosystems degrade honestly
  • Tests cover both formats (or document if only one ships)
  • Repeated export of a fixed artifact is byte-stable; DCO sign-off

Mentoring notes

Start from SBOM export / lockfile component helpers. fix: or feat: Conventional Commit as appropriate.

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.