Docs: refresh GitHub Actions examples to the current image-tag pin and document summary outputs

Aperta Adatta ai principianti
#415 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à
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
74/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github-actions

Direzione di ricerca

Inizia dal valore predefinito di image-tag e dalle definizioni degli output in action.yml, poi confrontali con i valori fissati in examples/github-actions/README.md e con eventuali esempi di workflow correlati. Aggiorna i pin di calendario in modo che corrispondano, descrivi drift-score, risk-level, score-delta e summary-file (vuoto quando l'immagine è troppo vecchia) e aggiungi uno snippet che li legga in uno step if: always(). È completato quando non rimane nessun pin vecchio e lo snippet non richiede segreti né accesso alla rete.

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

Descrizione

documentation good first issue

Context

action.yml pins the default scanner image-tag to 2026.1007.1 and exposes CI-friendly outputs from vg scan --summary-out: drift-score, risk-level, score-delta, and summary-file. Older images skip --summary-out with a notice and leave those outputs empty.

examples/github-actions/README.md still documents the pin as 2026.1005.1 in several places (install step, pins table, composite Action example). Newcomers copying that file gate on a stale scanner and never learn how to read the summary outputs in a later job step.

What to do

  • Update every calendar pin in examples/github-actions/ (and any sibling workflow comments that hard-code the old default) so they match the current image-tag default in action.yml. Prefer one shared wording such as "the image-tag default in action.yml" plus the current value.
  • Document the Action outputs: what each field means, that an unmeasured score is empty/null (never 0), and that an older image-tag leaves them empty with a notice.
  • Add a short workflow snippet that writes the summary (default vibgrate-summary.json or the summary: input) and prints drift-score / risk-level / score-delta in a follow-up step with if: always().
  • Keep examples local-first: no DSN required, no secrets in the sample.

Acceptance

  • examples/github-actions/README.md (and checked-in workflow samples that hard-code a calendar pin) match the current action.yml image-tag default
  • Outputs drift-score, risk-level, score-delta, and summary-file are described, including the older-image empty case
  • A copy-paste snippet shows reading those outputs after the scan step
  • No network calls, tokens, or private docs referenced
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.