GHAS-managed workflows reference mutable action versions, incompatible with required SHA-pinning policies
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
調査の方向性
再現手順で説明されている GHAS の動的分析ワークフローと Copilot のコードレビュー ワークフローから始め、完全な SHA ピン留めと allow-list ポリシーを有効にした状態での動作を確認してください。GitHub 管理のワークフローが、これらのポリシーを弱めたり、顧客にワークフローの編集を要求したりすることなく正常に実行されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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)
- Enable GHAS dynamic analysis and/or Copilot code review
- Enable Require actions to be pinned to a full-length commit SHA
- Restrict allowed actions to an allow-list
- Trigger a PR or default branch run
- 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
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/codeql のほかの issue
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
false-positive javascript
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
-
C#: cs/simplifiable-boolean-expression false positive on Nullable<bool> compared with a literal オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
false-positive
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
似ている issue
-
kb-infra-drift
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
OCHA-DAP/ds-knowledge-base#653 · コメント 1 件 ·
-
intake mcp-intake needs-ac needs-human-review priority:medium type:feature
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Ikalus1988/MisakaNet#2102 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
llvm/lighthouse#283 ·
-
🤔 refinement needed
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
equinor/radix-operator#1979 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100