Docs and CI examples pin v0.1.0, whose action.yml does not load and which lacks most documented features
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 半天
- 新手友好度
- 35/100
- Issue 类型
- 文档
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- github-actions, go
- 领域
- ci-cd, documentation, release
调研方向
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 内容生成。
描述
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(versiondefaults tolatest, which is v0.1.0)README.md:39,README.md:53(go install ...@latestresolves 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.mdfailsspackle doctorwith "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-baseorspackle-dirinput and nohas-sarifoutput, thoughdocs/ci.md:55-73lists 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
git show v0.1.0:action.yml > a.yml && python -c "import yaml; yaml.safe_load(open('a.yml'))": parse error at line 24.- Use the workflow at
README.md:267-281in any repository: the job fails while loading the action. go install github.com/TMHSDigital/spackle/cmd/spackle@latest, copy thedocs/config.md"every key" block intospackle.toml, runspackle doctor: exit 2, unknown keys.
Suggested fix
- Publish the pending release (the v0.1.1 draft, or a new tag cut from
main). - Move every
@v0.1.0andversion: v0.1.0inREADME.md,docs/ci.mdanddocs/index.htmlto the new tag. - Until releases keep pace with
main, say at the top ofdocs/config.md,docs/ci.mdanddocs/mcp.mdthat the pages describemain, and link the docs at the latest tag. Or mark each post-release key, flag, input and MCP tool "(after vX.Y.Z)", asdocs/ci.md:131already does. - Add a release-checklist step or CI check that loads
action.ymlfrom 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.ymldoes 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
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
TMHSDigital/Spackle 的其他 Issue
-
enhancement good first issue severity: low
难度 2/5 半天 新手友好度 72/100
TMHSDigital/Spackle#139 ·
-
enhancement good first issue severity: low
难度 2/5 1-3 小时 新手友好度 72/100
TMHSDigital/Spackle#138 ·
-
documentation good first issue severity: low
难度 2/5 1-3 小时 新手友好度 78/100
TMHSDigital/Spackle#135 ·
-
bug good first issue severity: low
难度 2/5 1-3 小时 新手友好度 72/100
TMHSDigital/Spackle#131 ·
-
bug good first issue severity: low
难度 2/5 1-3 小时 新手友好度 78/100
TMHSDigital/Spackle#129 ·
查看 TMHSDigital/Spackle 的全部 Issue
相似的 Issue
-
bug raised-by:reviewer
难度 2/5 1-3 小时 新手友好度 66/100
medici-finance/assay#7655 ·
维护者通常 1 天内回复
-
helm chart: make DaemonSet pod affinity configurable via values.yaml可能已有人在做 @Young-Zen 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
flannel-io/flannel#2632 ·
维护者通常 6 天内回复
-
go-vulnerability security-scan
难度 1/5 1 小时以内 新手友好度 72/100
teslashibe/agent-go#36 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 72/100
nwverse/persona#15194 · 1 条评论 ·
维护者通常 1 天内回复
-
bug flaky-test
难度 2/5 1-3 小时 新手友好度 78/100
rosskukulinski/tailworks#411 ·
维护者通常 1 天内回复