C
月内に
GitHubは12月2日より、公開リポジトリにおける「pull_request_target」イベントでトリガーされるワークフローのデフォルト設定を変更し…
📌 一言でいうと
GitHubは12月2日より、公開リポジトリにおける「pull_request_target」イベントでトリガーされるワークフローのデフォルト設定を変更し、明示的な許可がない限り外部からの実行をブロックします。これは、悪意のあるコードが特権環境で実行され、機密情報(APIキー等)が窃取されるサプライチェーン攻撃のリスクを軽減することを目的としています。管理者は「Policy Insights」で影響を確認し、必要に応じて特定のワークフローにのみ例外設定を行うことが推奨されています。
🏢影響範囲
GitHub Free, Team, Enterprise Cloudプランを利用し、公開リポジトリを運用している開発者および組織
✅該当時の対応
1. Policy Insights機能を使用して、新制によりブロックされたワークフローがないか確認する。2. 外部コードのテストやビルドが必要な場合は、権限の低い「pull_request」イベントへの変更を検討する。3. どうしても「pull_request_target」が必要な場合は、機密情報へのアクセス権限を最小限に制限した上で、特定のファイルのみに例外設定を適用する。
📧 メール案を見る (管理者向け)
⚠️ これは AI が生成した参考例です。配信前に必ず内容をご確認のうえ、貴社の状況に合わせて編集してご利用ください。実際の被害状況や自社の利用環境を踏まえた判断は、貴社のセキュリティ責任者にご確認ください。
件名: 【共有】GitHub Actionsの公開リポジトリにおけるセキュリティ新制適用について
お疲れさまです。GitHub Actionsのワークフロー実行権限に関する仕様変更の情報共有です。
■ 概要
GitHubは、公開リポジトリにおいて「pull_request_target」イベントでトリガーされるワークフローのデフォルト動作を変更し、明示的な許可がない限り外部からの実行をブロックします。これにより、外部コントリビューターによる悪意のあるコード実行を通じた機密情報(Secrets)の窃取リスクを低減します。
■ 影響範囲
- 対象: GitHub Free, Team, Enterprise Cloudプランの「公開リポジトリ」
- 対象イベント: pull_request_target
■ 対応手順
1. GitHubの「Policy Insights」を確認し、現在ブロックされているワークフローを特定する。
2. 外部コードのビルド・テストが必要なワークフローは、原則として「pull_request」イベントへ移行する(読み取り専用トークンが適用されるため安全)。
3. どうしても特権が必要な場合は、ワークフローの内容を精査し、特定のファイルのみに限定して例外的な許可設定を行う。
■ 参考情報
- GitHub公式ドキュメントおよびセキュリティ通知
対応優先度: 中
対応期限: 2024年12月2日(適用済み)
お疲れさまです。GitHub Actionsのワークフロー実行権限に関する仕様変更の情報共有です。
■ 概要
GitHubは、公開リポジトリにおいて「pull_request_target」イベントでトリガーされるワークフローのデフォルト動作を変更し、明示的な許可がない限り外部からの実行をブロックします。これにより、外部コントリビューターによる悪意のあるコード実行を通じた機密情報(Secrets)の窃取リスクを低減します。
■ 影響範囲
- 対象: GitHub Free, Team, Enterprise Cloudプランの「公開リポジトリ」
- 対象イベント: pull_request_target
■ 対応手順
1. GitHubの「Policy Insights」を確認し、現在ブロックされているワークフローを特定する。
2. 外部コードのビルド・テストが必要なワークフローは、原則として「pull_request」イベントへ移行する(読み取り専用トークンが適用されるため安全)。
3. どうしても特権が必要な場合は、ワークフローの内容を精査し、特定のファイルのみに限定して例外的な許可設定を行う。
■ 参考情報
- GitHub公式ドキュメントおよびセキュリティ通知
対応優先度: 中
対応期限: 2024年12月2日(適用済み)
Subject: [Info] New Security Policy for GitHub Actions in Public Repositories
Hi all,
This is a technical update regarding changes to GitHub Actions workflow execution permissions.
■ Overview
GitHub has updated the default behavior for workflows triggered by the 'pull_request_target' event in public repositories. These workflows are now blocked by default unless explicitly authorized by an administrator. This change is designed to mitigate the risk of supply chain attacks where malicious code is used to steal repository secrets or API keys.
■ Scope
- Affected: Public repositories under GitHub Free, Team, and Enterprise Cloud plans.
- Affected Event: pull_request_target
■ Action Items
1. Review 'Policy Insights' to identify any workflows currently blocked by this policy.
2. Migrate workflows intended for testing/building external code to the 'pull_request' event, which uses a read-only token by default.
3. For workflows that strictly require 'pull_request_target', ensure they do not execute untrusted code with high privileges before granting a specific exception.
■ Reference
- GitHub Official Documentation / Security Advisories
Priority: Medium
Deadline: December 2, 2024 (Already effective)
Hi all,
This is a technical update regarding changes to GitHub Actions workflow execution permissions.
■ Overview
GitHub has updated the default behavior for workflows triggered by the 'pull_request_target' event in public repositories. These workflows are now blocked by default unless explicitly authorized by an administrator. This change is designed to mitigate the risk of supply chain attacks where malicious code is used to steal repository secrets or API keys.
■ Scope
- Affected: Public repositories under GitHub Free, Team, and Enterprise Cloud plans.
- Affected Event: pull_request_target
■ Action Items
1. Review 'Policy Insights' to identify any workflows currently blocked by this policy.
2. Migrate workflows intended for testing/building external code to the 'pull_request' event, which uses a read-only token by default.
3. For workflows that strictly require 'pull_request_target', ensure they do not execute untrusted code with high privileges before granting a specific exception.
■ Reference
- GitHub Official Documentation / Security Advisories
Priority: Medium
Deadline: December 2, 2024 (Already effective)