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

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

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

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

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
52/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
node.js, typescript
Área
cli, security

Línea de trabajo

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.

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

Descripción

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)

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.