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

オープン 初心者向け
#187 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

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

評価

難易度
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分
マージ済み PR(30日)
3

環境構築

Codespaces で開く

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

はじめの一歩

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

TMHSDigital/Spackle のほかの issue

TMHSDigital/Spackle の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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