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

未关闭 适合新手
#187 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
84/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
go
领域
documentation

调研方向

阅读 docs/ci.md 中固定版本的示例,以及 docs/config.md 和 README.md 中相关的配置与 pre-commit 指引,并将其中的功能与 CHANGELOG.md 对照。凡是 v0.2.2 的示例或说明依赖尚未发布的行为之处,都添加“在 main 上”的备注;可将 tools/readme/main.go 中的检查作为后续工作考虑。完成标准是:每个提到的示例和说明都能在其固定版本中正常使用,或明确注明该功能仅在 main 上提供。

由索引模型根据 Issue 内容生成。

描述

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

主要语言
Go
星标
0
派生
1
平均合并
8 小时 14 分钟
30 天内合并 PR
3

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

TMHSDigital/Spackle 的其他 Issue

查看 TMHSDigital/Spackle 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。