ci: require approval from another maintainer before running release workflows

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github-actions, java

調査の方向性

Start by reading the .github/workflows/release.yml, .github/workflows/publish-cli.yml and .github/workflows/publish-webui.yml workflows, then check the repository’s release process documentation and current publishing secrets. The issue is done when publishing waits for approval from a different maintainer, self-review is blocked, and publishing credentials are scoped to the protected environment.

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

説明

Problem

The release workflows run automatically as soon as a v* tag is pushed:

  • release.yml builds and pushes the server and web UI images to ghcr.io and creates the GitHub release.
  • publish-cli.yml and publish-webui.yml publish the ovsx CLI and the web UI library to the package registry.

None of the jobs use a GitHub environment, so nothing requires a second pair of eyes before artifacts are published. Anyone who can push a tag can trigger a release, and a compromised maintainer account or token would be enough to publish artifacts that downstream operators pull.

Proposal

Gate the publishing jobs behind a protected GitHub environment (for example release) that requires approval from a maintainer other than the one who triggered the run.

  • Create a release environment with required reviewers (the maintainers team) and "Prevent self-review" enabled.
  • Add environment: release to the jobs that publish or push artifacts in release.yml, publish-cli.yml and publish-webui.yml. Build and prepare jobs can stay ungated.
  • Move any publishing credentials (registry tokens and similar) into environment secrets so they are only exposed after approval.
  • Optionally restrict who can create v* tags with a tag protection ruleset.
  • Document the approval step in the release process.

Acceptance criteria

  • A pushed v* tag does not publish anything until another maintainer approves the run.
  • The person who pushed the tag cannot approve their own release.
  • Publishing secrets are scoped to the environment.
主要言語
Java
スター
2.1k
フォーク
362
平均マージ
1日 3時間
マージ済み PR(30日)
44

環境構築

はじめの一歩

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

eclipse-openvsx/openvsx のほかの issue

eclipse-openvsx/openvsx の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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