Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

GHAS-managed workflows reference mutable action versions, incompatible with required SHA-pinning policies

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
静か
技術スタック
github-actions
領域
ci-cd, security

調査の方向性

再現手順で説明されている GHAS の動的分析ワークフローと Copilot のコードレビュー ワークフローから始め、完全な SHA ピン留めと allow-list ポリシーを有効にした状態での動作を確認してください。GitHub 管理のワークフローが、これらのポリシーを弱めたり、顧客にワークフローの編集を要求したりすることなく正常に実行されれば完了です。

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

説明

question

Summary

GitHub Advanced Security (including dynamic analysis and Copilot code review) uses GitHub Actions workflows that reference external actions by mutable labels (e.g. actions/setup-dotnet@v5). When an organization enables the recommended policy “Require actions to be pinned to a full-length commit SHA”, these workflows fail or remain indefinitely queued.

This puts customers in a position where they must weaken their supply-chain security posture in order to run GitHub’s own security tooling, which should not be required.

Details

We have an organization with the following Actions policies enabled:

  • Require actions to be pinned to a full-length commit SHA
  • Allow select actions and reusable workflows (deny by default)

With this posture:

  • GitHub Advanced Security dynamic analysis fails to run because it references actions such as:
    • actions/setup-dotnet@v5
  • The Copilot code review dynamic workflow now fails for the same reason, due to additional external actions referenced by mutable tags

These workflows are GitHub-managed and not user-editable, so customers cannot remediate the issue by pinning SHAs themselves.

Expected behavior

GitHub Advanced Security and Copilot security workflows should be compatible with GitHub’s own recommended supply‑chain security controls.

At least one of the following should be true:

  • GitHub-managed workflows use full commit SHAs, or
  • GitHub provides an explicit first‑party exemption mechanism that does not require weakening org policy, or
  • GitHub publishes documented, pinned equivalents for first‑party security workflows

Actual behavior

  • GHAS workflows fail or remain indefinitely queued
  • Customers are forced to choose between:
    • Enforcing SHA pinning (recommended best practice), or
    • Running GitHub’s security tools

There is currently no supported way to do both without introducing a policy exception.

Impact

  • Forces security-conscious customers to weaken their supply-chain controls
  • Creates audit and compliance issues (especially for regulated environments)
  • Undermines the guidance GitHub itself provides around SHA-pinning
  • Affects multiple first‑party security features (dynamic analysis, Copilot code review)

This is not limited to a single action or language ecosystem.

Reproduction (high level)

  1. Enable GHAS dynamic analysis and/or Copilot code review
  2. Enable Require actions to be pinned to a full-length commit SHA
  3. Restrict allowed actions to an allow-list
  4. Trigger a PR or default branch run
  5. Observe GHAS-managed workflows failing or stuck in queued

Additional context

  • Customers cannot edit or fork GHAS-managed workflows
  • These are first‑party GitHub security tools
  • The workaround today is to relax Actions policies, which contradicts GitHub security guidance

Happy to provide additional diagnostics if needed.

主要言語
CodeQL
スター
10.1k
フォーク
2.1k
平均マージ
2日 16時間
マージ済み PR(30日)
143

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

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

はじめの一歩

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

github/codeql のほかの issue

github/codeql の issue をすべて見る

似ている issue

DevOps の issue をもっと見る

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

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