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

Aberta Para iniciantes
#187 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
84/100
Tipo de issue
Documentação
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
go
Domínio
documentation

Direção de pesquisa

Leia os exemplos fixados em docs/ci.md e as orientações relacionadas sobre configuração e pre-commit em docs/config.md e README.md, comparando os recursos com CHANGELOG.md. Adicione uma nota “na main” sempre que um exemplo ou uma instrução para v0.2.2 depender de um comportamento ainda não lançado; considere a verificação em tools/readme/main.go como uma tarefa de acompanhamento. O trabalho estará concluído quando cada exemplo e instrução mencionados funcionar na versão fixada ou indicar claramente que o recurso está disponível somente na main.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
Go
Estrelas
0
Forks
1
Merge médio
8h 14min
PRs com merge (30d)
3

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de TMHSDigital/Spackle

Todas as issues de TMHSDigital/Spackle

Issues semelhantes

Mais issues de Go

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.