Repository navigation
Teach Copilot review to catch pinned GitHub Action SHA allow-list changes - #20282
Merged
Ankit Jain (radical) merged 2 commits intoSep 22, 2026
Merged
Conversation
Co-authored-by: radical <[email protected]>
Copilot
AI
changed the title
[WIP] Update guidance to prevent GitHub Actions policy failures
Require actions allow-list coordination when pinned GitHub Action SHAs change
Sep 21, 2026
Ankit Jain (radical)
marked this pull request as ready for review
September 21, 2026 18:13
Ankit Jain (radical)
requested review from
Eric Erhardt (eerhardt) and
Jose Perez Rodriguez (joperezr)
September 21, 2026 18:13
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 20282Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 20282" |
Ankit Jain (radical)
requested review from
Alex Crome (afscrome) and
Sébastien Ros (sebastienros)
September 21, 2026 18:13
Jose Perez Rodriguez (joperezr)
approved these changes
Sep 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR teaches Copilot review guidance to catch a failure mode we missed when pinned GitHub Action SHAs change in workflow files.
The issue showed up after #20209 updated the
dotnet/issue-labeler/*action pins from46125e85e6a568dc712f358c39f35317366f5eedto160b6b1e1e8d36da09beb34ef1e4806d2c0520a3. The repository/enterprise allowed-actions policy was not updated for the new SHA, so the labeler workflow failed with an "actions not allowed" error. That break was tracked in #20277 and has since been fixed, but the original PR review did not catch the missing settings update because the allow-list lives outside git.This change adds durable review instructions in
AGENTS.mdand the Copilot code-review skill so future workflow SHA updates are treated as blocking unless the PR confirms the matching allowed-actions policy update. Reviewers should identify changedowner/repo[/path]@<sha>references under.github/workflows/**, verify the newly introduced SHA by SHA rather than tag, and require the PR description to call out any SHA an admin must allow before merge.Checklist
<remarks />and<code />elements on your triple slash comments?