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

Abierto
#255 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

  • #361 de @vibgrate-team — cerrado sin fusionar

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
typescript
Área
security

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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)
Lenguaje dominante
TypeScript
Estrellas
4
Forks
3
Merge medio
1 d 22 h
PR fusionados (30 d)
76

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de vibgrate/cli

Todos los issues de vibgrate/cli

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.