Docs: document machine-readable scan, report, and SBOM output contracts

Aperta
#163 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à
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
node.js, typescript
Ambito
documentation

Direzione di ricerca

Read the README and inspect the shipped CLI help or implementation for vg scan, vg report, and vg sbom export to verify supported formats, fields, exit behavior, and upload defaults. Add docs/OUTPUTS.md (or an equivalent reference) with accurate, sanitized examples; it is done when CI users can choose a format and exit behavior from the docs without undocumented stability promises.

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

Descrizione

documentation good first issue

Context

The README shows vg scan, SARIF upload, SBOM export, and report generation, but there is no focused reference explaining the output contracts. CI users need stable expectations for formats, exit codes, and what may vary.

Related but separate: #151 covers a minimal SBOM/VEX end-to-end example. This issue is the contract reference.

What to do

Add a concise docs/OUTPUTS.md (or equivalent) covering:

  • vg scan --format json|sarif|md (verify shipped flags)
  • vg report (if shipped)
  • vg sbom export formats actually supported
  • schemaVersion / stable fields vs intentionally variable fields (e.g. timestamps)
  • exit codes and --fail-on (if present)
  • that network upload/--push is explicit and opt-in
  • one small sanitized example per important format

Document only currently shipped behaviour.

Acceptance

  • A CI user can pick format + exit behaviour without reading source
  • Examples are valid and copy-pasteable
  • Local-first / opt-in network behaviour stated accurately
  • No undocumented stability guarantees claimed

Mentoring notes

Docs-only. Prefer vg. Conventional Commit docs: + DCO (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.