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

Ouverte Adaptée aux débutants
#187 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
2/5
Temps estimé
1-3 heures
Accessibilité débutants
84/100
Type d'issue
Documentation
Clarté
Clairement spécifiée
Activité
Active
Stack technique
go
Domaine
documentation

Piste de recherche

Lisez les exemples épinglés dans docs/ci.md ainsi que les indications associées sur la configuration et pre-commit dans docs/config.md et README.md, puis comparez leurs fonctionnalités avec CHANGELOG.md. Ajoutez une note « sur main » partout où un exemple ou une instruction pour v0.2.2 repose sur un comportement non encore publié ; envisagez le contrôle dans tools/readme/main.go comme une tâche de suivi. Le travail est terminé lorsque chaque exemple et instruction mentionnés fonctionne avec la version épinglée ou indique clairement que la fonctionnalité est disponible uniquement sur main.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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

Langage dominant
Go
Étoiles
0
Forks
1
Merge moyen
8 h 14 min
PR mergées (30 j)
3

Préparer son environnement

Ouvrir dans Codespaces

Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de TMHSDigital/Spackle

Toutes les issues de TMHSDigital/Spackle

Issues similaires

Plus d'issues Go

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.