docs/ci.md examples pin v0.2.2 but use features that are only on main

Aperta Adatta ai principianti
#187 0 commenti 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
84/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
go
Ambito
documentation

Direzione di ricerca

Leggi gli esempi fissati in docs/ci.md e le indicazioni correlate sulla configurazione e su pre-commit in docs/config.md e README.md, confrontandone le funzionalità con CHANGELOG.md. Aggiungi una nota «su main» ovunque un esempio o un’istruzione per v0.2.2 dipenda da un comportamento non ancora rilasciato; valuta il controllo in tools/readme/main.go come attività successiva. Il lavoro è completato quando ogni esempio e istruzione citati funziona con la versione fissata oppure segnala chiaramente che la funzionalità è disponibile solo su main.

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

Descrizione

documentation good first issue severity: medium

Summary

Two copy-paste examples in docs/ci.md pin the v0.2.2 release and use a feature that the changelog lists under "Unreleased". One fails every run; the other silently does less than it says.

Where

  • docs/ci.md:204-207 (Action example with scanners: at @v0.2.2)
  • docs/ci.md:265-273 (GitLab CI job with SPACKLE_VERSION: "0.2.2" and --format gitlab-sast)
  • docs/ci.md:36, docs/ci.md:68
  • CHANGELOG.md:13-14 (both features under "Unreleased")
  • docs/config.md:95, docs/config.md:434 ([scan.semgrep] config and [[scope.auth]], also absent from v0.2.2)

Details

git show v0.2.2:action.yml has no scanners input and git show v0.2.2:internal/report/run.go has no GitLab renderer, while the v0.2.2 CLI already rejects an unknown report format. docs/ci.md tells readers to set uses: and version to the same tag, and marks other features with "new in v0.2.0", but says nothing for these two. README.md and docs/ci.md also recommend the pre-commit hook at rev: v0.2.2, while the fix for scans started from a git hook and the read-from-index behavior the page describes are only on main (not verified by running the hook at that tag).

Impact

The GitLab CI job as written fails every run with exit code 2 (unknown report format), so no SAST report is produced. The Action example at @v0.2.2 installs no scanner, because the input does not exist at that tag, so the scan runs the built-in rules alone while the reader believes three external scanners ran.

Suggested fix

Until a release contains them, mark both sections "on main, not in v0.2.2 yet" (as the page already does with "new in v0.2.0"), or cut the release and bump the pins. Consider extending the tools/readme version check so an example that pins a release cannot use an input or flag listed under "Unreleased".

Acceptance criteria

  • Each example that pins a release works at that release, or carries an "on main" note
  • The same note is on [[scope.auth]], [scan.semgrep] config and the pre-commit hook text until they are released

Related: #118

Getting started

  • Relevant files: docs/ci.md, docs/config.md, README.md, CHANGELOG.md, tools/readme/main.go
  • How to run tests: make test-short (Unix) or .\make.ps1 test-short (Windows PowerShell); make lint before you call it done
  • Related docs: CONTRIBUTING.md (release checklist)

Filed by repo-audit/full-audit at 50e92ec. Severity: medium. Effort: S. audit-key: documentation|docs/ci.md|unreleased-features-pinned-to-v0.2.2

Lingua principale
Go
Stelle
0
Fork
1
Merge medio
8h 14m
PR unite (30g)
3

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 TMHSDigital/Spackle

Tutte le issue di TMHSDigital/Spackle

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.