Docs and CI examples pin v0.1.0, whose action.yml does not load and which lacks most documented features

Aberta
#118 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
Meio dia
Facilidade para iniciantes
35/100
Tipo de issue
Documentação
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
github-actions, go

Direção de pesquisa

Start with action.yml around line 24, where the upload-sarif description breaks YAML, and with the CHANGELOG.md entry for the Unreleased fix. Then find every uses: TMHSDigital/[email protected] and version: v0.1.0 pin in README.md, docs/ci.md and docs/index.html. Done when the release that the pins name has a parseable action.yml, and the docs either point at that tag or flag post-release features. Cutting the release itself is maintainer work.

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

Descrição

documentation severity: high

Summary

Every CI example the project publishes pins TMHSDigital/[email protected], and every install path resolves to v0.1.0. The action.yml at that tag is not valid YAML, so the documented workflow fails before it scans anything. The user docs on main also describe many features, flags, config keys and Action inputs that v0.1.0 does not have. Most of this is fixed by cutting the pending release and moving the pins.

Where

  • README.md:278, docs/ci.md:28, docs/ci.md:36, docs/ci.md:79, docs/ci.md:90, docs/index.html:485 (uses: TMHSDigital/[email protected])
  • action.yml:15-18 (version defaults to latest, which is v0.1.0)
  • README.md:39, README.md:53 (go install ...@latest resolves to v0.1.0)
  • docs/config.md, docs/ci.md, docs/mcp.md (features documented as current)
  • CHANGELOG.md:77 (the action.yml fix is listed under Unreleased)

Details

git show v0.1.0:action.yml, line 24:

  upload-sarif:
    description: Upload the SARIF report to GitHub code scanning. Needs "security-events: write".

The unquoted : inside a plain scalar makes the file invalid YAML (mapping values are not allowed here, line 24, column 89). The CHANGELOG already records the fix ("The GitHub Action could not be loaded: action.yml was not valid YAML"), but only main has it. The only published release is v0.1.0; v0.1.1 is still a draft.

The docs on main also present Unreleased features as available. Only docs/ci.md:131 marks one as newer than v0.1.0 (diff-base / --since). A v0.1.0 binary built from the tag rejects the rest:

  • The "every key" block in docs/config.md fails spackle doctor with "unknown keys: output.fail_on_confidence, scan, scan.disable_rules, scan.exclude, scan.include".
  • spackle runs, spackle rules: unknown command.
  • scan --changed, scan --fail-on-confidence, report --finding: flag not defined.
  • The v0.1.0 action has no fail-on-confidence, diff-base or spackle-dir input and no has-sarif output, though docs/ci.md:55-73 lists them alongside the released ones.

Impact

This is the main adoption path. Anyone who copies the CI workflow from the README, docs/ci.md or the Pages site gets a job that fails while loading the action. A user who installs the documented way and follows docs/config.md, docs/ci.md or docs/mcp.md hits exit-2 usage errors with no hint that the feature is newer than their binary. The documented --changed pre-commit hook blocks every commit, and setting fail-on-confidence in the Action makes every run exit 2.

Steps to reproduce

  1. git show v0.1.0:action.yml > a.yml && python -c "import yaml; yaml.safe_load(open('a.yml'))": parse error at line 24.
  2. Use the workflow at README.md:267-281 in any repository: the job fails while loading the action.
  3. go install github.com/TMHSDigital/spackle/cmd/spackle@latest, copy the docs/config.md "every key" block into spackle.toml, run spackle doctor: exit 2, unknown keys.

Suggested fix

  1. Publish the pending release (the v0.1.1 draft, or a new tag cut from main).
  2. Move every @v0.1.0 and version: v0.1.0 in README.md, docs/ci.md and docs/index.html to the new tag.
  3. Until releases keep pace with main, say at the top of docs/config.md, docs/ci.md and docs/mcp.md that the pages describe main, and link the docs at the latest tag. Or mark each post-release key, flag, input and MCP tool "(after vX.Y.Z)", as docs/ci.md:131 already does.
  4. Add a release-checklist step or CI check that loads action.yml from the tag the docs pin.

Acceptance criteria

  • A published release contains a parseable action.yml.
  • Every uses: TMHSDigital/Spackle@... in the docs and on the Pages site points at a tag whose action loads.
  • Every flag, key, input and tool documented as current exists in the release that the default install path gives.
  • A check fails when the pinned tag's action.yml does not parse.

Getting started

  • Relevant files: README.md, docs/ci.md, docs/config.md, docs/mcp.md, docs/index.html, action.yml, CHANGELOG.md
  • How to run tests: make test-short (Windows: .\make.ps1 test-short)
  • Related docs: CONTRIBUTING.md

Related: #104 (stale hand-pinned version on the Pages site)


Filed by repo-audit/full-audit at fffef43. Severity: high. Effort: S. audit-key: documentation|README.md|action-pin-v0.1.0

Linguagem predominante
Go
Estrelas
0
Forks
1
Métricas de merge de PRs
Nenhum PR com merge em 30d

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.