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

オープン
#118 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
半日
初心者へのやさしさ
35/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
活発
技術スタック
github-actions, go

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Go
スター
0
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

TMHSDigital/Spackle のほかの issue

TMHSDigital/Spackle の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。