docs/ci.md examples pin v0.2.2 but use features that are only on main
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 84/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- go
调研方向
阅读 docs/ci.md 中固定版本的示例,以及 docs/config.md 和 README.md 中相关的配置与 pre-commit 指引,并将其中的功能与 CHANGELOG.md 对照。凡是 v0.2.2 的示例或说明依赖尚未发布的行为之处,都添加“在 main 上”的备注;可将 tools/readme/main.go 中的检查作为后续工作考虑。完成标准是:每个提到的示例和说明都能在其固定版本中正常使用,或明确注明该功能仅在 main 上提供。
由索引模型根据 Issue 内容生成。
描述
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 withscanners:at@v0.2.2)docs/ci.md:265-273(GitLab CI job withSPACKLE_VERSION: "0.2.2"and--format gitlab-sast)docs/ci.md:36,docs/ci.md:68CHANGELOG.md:13-14(both features under "Unreleased")docs/config.md:95,docs/config.md:434([scan.semgrep] configand[[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] configand 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 lintbefore 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
- 主要语言
- Go
- 星标
- 0
- 派生
- 1
- 平均合并
- 8 小时 14 分钟
- 30 天内合并 PR
- 3
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
TMHSDigital/Spackle 的其他 Issue
-
ci good first issue severity: low
难度 2/5 1-3 小时 新手友好度 77/100
TMHSDigital/Spackle#206 ·
维护者通常 1 天内回复
-
ci severity: low
难度 2/5 1-3 小时 新手友好度 78/100
TMHSDigital/Spackle#205 ·
维护者通常 1 天内回复
-
bug good first issue severity: low
难度 2/5 1-3 小时 新手友好度 82/100
TMHSDigital/Spackle#199 ·
维护者通常 1 天内回复
-
bug good first issue severity: low
难度 2/5 1-3 小时 新手友好度 87/100
TMHSDigital/Spackle#195 ·
维护者通常 1 天内回复
-
documentation good first issue severity: medium
难度 1/5 1 小时以内 新手友好度 90/100
TMHSDigital/Spackle#188 ·
维护者通常 1 天内回复
查看 TMHSDigital/Spackle 的全部 Issue
相似的 Issue
-
bug effort:s impact:med raised-by:worker risk:low to:worker
难度 2/5 1-3 小时 新手友好度 78/100
medici-finance/assay#8120 · 1 条评论 ·
维护者通常 1 天内回复
-
factory:subtask
难度 1/5 1 小时以内 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
agent-substrate/substrate#4308 ·
维护者通常 2 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
celestiaorg/celestia-app#8877 ·
维护者通常 1 天内回复
-
sweep
难度 1/5 1 小时以内 新手友好度 84/100
bketelsen/truenas-mcp#112 ·
维护者通常 1 天内回复