Delegated bypass for push protection lets you define who can push commits containing secrets and adds an approval process for other contributors. See プッシュ保護用の委任バイパス.
To enable delegated bypass, create the teams or roles that will manage bypass requests. Alternatively, use fine-grained permissions for more granular control. See Using fine-grained permissions to control who can review and manage bypass requests.
Enabling delegated bypass for a repository
メモ
組織またはエンタープライズ所有者が組織またはエンタープライズ レベルで委任バイパスを構成した場合、リポジトリ レベルの設定は無効になります。
-
GitHub で、リポジトリのメイン ページに移動します。
-
リポジトリ名の下にある [Settings] をクリックします。 [設定] タブが表示されない場合は、 [] ドロップダウン メニューを選び、 [設定] をクリックします。
![タブを示すリポジトリ ヘッダーのスクリーンショット。 [設定] タブが濃いオレンジ色の枠線で強調表示されています。](/assets/cb-28260/images/help/repository/repo-actions-settings.png)
-
サイドバーの [Security] セクションで、[ Advanced Security] をクリックします。
-
[Secret Protection] で、リポジトリに対してプッシュ保護が有効になっていることを確認します。
-
[プッシュ保護] の [ secret scanningのプッシュ保護をバイパスできるユーザー] の右側にあるドロップダウン メニューを選択し、[ 特定のロールまたはチーム] をクリックします。
-
[Bypass list] で、[Add role or team] をクリックします。
-
ダイアログ ボックスで、バイパス リストに追加するロールとチームを選択し、[選択した追加] をクリックします。
メモ
バイパス リストにシークレット チームを追加することはできません。
-
必要に応じて、アクターをプッシュ保護から完全に除外するには、アクターの詳細の右側にある [ ] を選択し、[ 除外] をクリックします。
警告
プッシュ保護の除外は、最小限の摩擦で多くのコミットをプッシュする必要がある信頼できる自動化用に設計されています。 除外はシークレットの漏洩につながる可能性があり、慎重に付与する必要があります。
Enabling delegated bypass for an organization
-
GitHub で、organization のメイン ページに移動します。
-
Organization 名の下で、[ Settings] をクリックします。 [設定] タブが表示されない場合は、 [] ドロップダウン メニューを選び、 [設定] をクリックします。
![組織のプロファイルのタブのスクリーンショット。 [設定] タブが濃いオレンジ色の枠線で囲まれています。](/assets/cb-49309/images/help/discussions/org-settings-global-nav-update.png)
-
サイドバーの [セキュリティ] セクションで、 Advanced Security ドロップダウン メニューを選択し、[ 構成] をクリックします。
-
新しいカスタム セキュリティ構成を作成するか、既存のセキュリティ構成を編集します。 「カスタム セキュリティ構成を作成する」を参照してください。
-
カスタム セキュリティ構成を定義する場合は、[Secret scanning] で [プッシュ保護] が [有効] に設定されていることを確認します。
-
[Push protection] の [Bypass privileges] の右側にあるドロップダウン メニューを選択し、[Specific actors] をクリックします。
-
[アクターの選択ドロップダウン メニューを選択し、バイパス リストに追加するアクターを選択します。
メモ
- You can't add secret teams to the bypass list.
- In addition to assigning bypass privileges to roles and teams, you can also grant individual organization members the ability to review and manage bypass requests using fine-grained permissions. See Using fine-grained permissions to control who can review and manage bypass requests.
-
必要に応じて、アクターをプッシュ保護から完全に除外するには、アクターの詳細の右側にある [ ] を選択し、[ 除外] をクリックします。
警告
プッシュ保護の除外は、最小限の摩擦で多くのコミットをプッシュする必要がある信頼できる自動化用に設計されています。 除外はシークレットの漏洩につながる可能性があり、慎重に付与する必要があります。
-
Click Save configuration.
-
Apply the security configuration to repositories in your organization. See カスタム セキュリティ構成の適用.
Enabling delegated bypass for an enterprise
-
企業ページに移動してください。 たとえば、GitHub.com の [Enterprise] ページから。
-
ページの上部にある [ Settings] をクリックします。
-
左側のサイドバーで、 [Advanced Security Code security] をクリックします。
-
サイドバーの [セキュリティ] セクションで、 Advanced Security ドロップダウン メニューを選択し、[ 構成] をクリックします。
-
新しいカスタム セキュリティ構成を作成するか、既存のセキュリティ構成を編集します。 「Enterprise 用のカスタム セキュリティ構成の作成」を参照してください。
-
[ シークレット スキャン] で、[ プッシュ保護 ] が有効になっていることを確認します。
-
[Push protection] の [Bypass privileges] の右側にあるドロップダウン メニューを選択し、[Specific actors] をクリックします。
メモ
バイパス リストにシークレット チームを追加することはできません。
-
[アクターの選択ドロップダウン メニューを選択し、バイパス リストに追加するアクターを選択します。
-
必要に応じて、アクターをプッシュ保護から完全に除外するには、アクターの詳細の右側にある [ ] を選択し、[ 除外] をクリックします。
警告
プッシュ保護の除外は、最小限の摩擦で多くのコミットをプッシュする必要がある信頼できる自動化用に設計されています。 除外はシークレットの漏洩につながる可能性があり、慎重に付与する必要があります。
-
Click Save configuration.
-
Apply the security configuration to organizations and repositories in your enterprise. See Enterprise に対するカスタム セキュリティ構成の適用.
Using fine-grained permissions to control who can review and manage bypass requests
You can grant specific individuals or teams in your organization the ability to review and manage bypass requests using fine-grained permissions.
- Ensure that delegated bypass is enabled for the organization. For more information, follow steps 1-3 in Enabling delegated bypass for your organization and ensure you have saved and applied the security configuration to your selected repositories.
- Create (or edit) a custom organization role. For information on creating and editing custom roles, see カスタム組織の役割の管理.
- When choosing which permissions to add to the custom role, select the "Review and manage secret scanning bypass requests" permission.
- Assign the custom role to individual members or teams in your organization. For more information on assigning custom roles, see 組織の役割の使用.