Skip to content

Teach Copilot review to catch pinned GitHub Action SHA allow-list changes - #20282

Merged
Ankit Jain (radical) merged 2 commits into
mainfrom
copilot/update-copilot-review-guidance
Sep 22, 2026
Merged

Ankit Jain (radical) merged 2 commits into
mainfrom
copilot/update-copilot-review-guidance

Conversation

Copilot AI commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

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 from 46125e85e6a568dc712f358c39f35317366f5eed to 160b6b1e1e8d36da09beb34ef1e4806d2c0520a3. 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.md and 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 changed owner/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

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No

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
@radical
Ankit Jain (radical) marked this pull request as ready for review September 21, 2026 18:13
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 20282

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 20282"

@radical Ankit Jain (radical) changed the title Require actions allow-list coordination when pinned GitHub Action SHAs change Teach Copilot review to catch pinned GitHub Action SHA allow-list changes Sep 21, 2026
@radical
Ankit Jain (radical) merged commit 7b7cf37 into main Sep 22, 2026
15 checks passed
@microsoft-github-policy-service microsoft-github-policy-service Bot added this to the 13.6 milestone Sep 22, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants