Audit the repository rulesets on a schedule

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
20/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
github, github-actions, rust

調査の方向性

Read docs/issues/open/2639-scheduled-ruleset-audit/ISSUE.md and docs/github-rulesets.md first; the plan leaves the audit location and token ownership as a decision. The proposed Rust tool belongs under contrib/dev-tools/, with an expected-state file, JSON report, and unit tests. Done means the chosen audit path reports simulated drift and has been verified against live rulesets; linked pull request #2642 is already open.

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

説明

ci-cd Low Priority task

Goal

Detect drift between the live GitHub rulesets of torrust/torrust-tracker and the rulesets documented in docs/github-rulesets.md, on a schedule, so that a ruleset that is disabled, deleted, or changed without a record is noticed soon.

Background

Issue #2507 found that the only required-checks ruleset had been effectively disabled since 2026-05-05 and nobody noticed. The decision of 2026-10-22 in #2525 keeps CI checks advisory and relies on the force-push ban, the signed-commit rule, and the other rulesets, which are now separate rulesets. docs/github-rulesets.md says to compare it with the live state, but nothing does that comparison unless a person remembers to. Reading the rulesets needs a token with repository administration read access, which the default GITHUB_TOKEN of a workflow does not have, so where the audit runs is a decision.

Plan

  • T1: decide where the audit runs (a scheduled workflow with a dedicated read-only token, or a maintainer-run command and a skill step), and record the token, its permissions, and its owner.
  • T2: a Rust tool under contrib/dev-tools/ that compares the live rulesets with an expected-state file kept in the repository and prints a JSON report, with unit tests.
  • T3: the expected-state file, and how to update it together with a ruleset change in docs/github-rulesets.md.
  • T4: the thin workflow or the documented command; drift is reported as a failure or an issue.
  • T5: verification against the live rulesets and against a simulated drift.

Priority is low: the maintainer decided on 2026-10-24 that it is not needed now. This is a follow-up of #2525. The specification is docs/issues/open/2639-scheduled-ruleset-audit/ISSUE.md, added with the #2525 close-out pull request.

主要言語
Rust
スター
532
フォーク
56
平均マージ
11時間 20分
マージ済み PR(30日)
282

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

torrust/torrust-tracker のほかの issue

torrust/torrust-tracker の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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