github / github/branch-deploy

Github Environments - Required Reviewer option ?

オープン
#352 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement question
主要言語
TypeScript
スター
576
フォーク
74
平均マージ
11時間 7分
マージ済み PR(30日)
1

説明

### Details

Hello,
Is it possible to apply "Approval Gate" when deploying to PRODUCTION environment ?

Here is an example of existing 'production' which require reviewers on Github Level :

![{6CF1901D-0F76-4158-8058-0E58C9BF301E}](https://github.com/user-attachments/assets/0bb9ca6e-8d4f-4fed-b8d5-c6b991223856)

But if its enable branch-deploy fails with :

.deploy production

![{5F20E4B4-78B7-472C-A6DA-775A011F01F9}](https://github.com/user-attachments/assets/0b6eb946-de44-4100-a571-a35a491d841f)

How can I ensure that deployment to 'production' is managed ONLY by dedicated user(s), and deployment to 'stage' is managed by other repo 'write' users?

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、branch-deploy のデプロイフローと、GitHub Environments における required-reviewer の動作を確認します。Issue に記載されている `.deploy production` のケースを再現し、そのうえで、他のリポジトリ書き込み権限ユーザーには stage へのデプロイを許可しながら、production に専任のレビュアーを必須にできるかどうかを判断します。完了条件には、文書化または実装され、検証済みのアクセス制御経路を含める必要があります。

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

評価

技術スタック
github, github-actions
領域
authorization, ci-cd, devops
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
20/100

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

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