Repository navigation
Keep Copilot review scans running past coding-agent PRs - #20040
Jose Perez Rodriguez (joperezr) merged 10 commits into
Conversation
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 98e48823-4d0d-4cbc-aa9b-eba1c86342b0
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 98e48823-4d0d-4cbc-aa9b-eba1c86342b0
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 98e48823-4d0d-4cbc-aa9b-eba1c86342b0
…-funded-copilot-reviews
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 98e48823-4d0d-4cbc-aa9b-eba1c86342b0
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 98e48823-4d0d-4cbc-aa9b-eba1c86342b0
…-funded-copilot-reviews
…ccess Co-authored-by: Copilot App <[email protected]> Copilot-Session: 98e48823-4d0d-4cbc-aa9b-eba1c86342b0
…-funded-copilot-reviews
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 98e48823-4d0d-4cbc-aa9b-eba1c86342b0
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 20040Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 20040" |
Tests selector1 / 99 PR test projects · 0 PR jobs · 0 advisory-only targets, from 3 changed files. Selected PR test projects (1 / 99)
Selected PR jobs (0)none Advisory workflow impact (0)none How these were chosen — grouped by what changed📄 🧪 🧪 Job reasonsnone Selection computed for commit |
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The narrowly scoped fix preserves failure handling and all added harness scenarios pass.
Review tier: Balanced
Findings: None
What changed in this PR
Prevents scheduled Copilot-review scans from stopping on coding-agent PRs while preserving author permission checks.
Changes:
- Skips the exact
Copilotbot identity before collaborator lookup. - Adds regression coverage for trigger modes, pagination, and unrelated 404s.
- Documents the exception and security boundary.
| File | Description |
|---|---|
.github/workflows/organization-funded-copilot-reviews.yml |
Adds the deny-only bot exception. |
tests/Infrastructure.Tests/WorkflowScripts/OrganizationFundedCopilotReviewsTests.cs |
Registers six regression scenarios. |
tests/Infrastructure.Tests/WorkflowScripts/organization-funded-copilot-reviews.harness.mjs |
Tests skip, continuation, and error behavior. |
docs/ci/organization-funded-copilot-reviews.md |
Documents the special identity handling. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
|
✅ No documentation update needed. Step 5 branch taken: Triggered signals: none ( Allowlist justification: All 4 changed files fall under CI/test infrastructure paths, with no changes to Aspire's shipped product surface (no
This is an internal fix to keep the Copilot-review reconciliation scheduled workflow from stopping early when it encounters a coding-agent-authored PR (a bot-identity edge case in a GitHub API 404 check). It has no effect on any Aspire product feature, CLI, API, dashboard, or integration behavior that ships to end users, so there is nothing to add to the |
|
🔍 CI Failure Analysis: Transient Infrastructure Failure The CI build failed due to transient infrastructure issues. Failed jobs:
If a rerun was not already requested automatically, visit the workflow run page to rerun the failed jobs manually. |
Description
Keep scheduled Copilot-review reconciliation running when it encounters a coding-agent-authored PR. After #20036, scans correctly gated ordinary authors by write access but stopped at #15633 because GitHub's collaborator endpoint rejects the special
Copilotbot identity with404: Copilot is not a user.Skip authors whose API identity is exactly
login: Copilotandtype: Botbefore calling that endpoint. They receive the existing no-write-access decision, and the scan continues to subsequent PRs. Other authors still require repository write access; unrelated 404s and other lookup failures continue to fail visibly.Regression coverage exercises event, manual, and dry-run skips; a scheduled scan with a Copilot PR followed by a writable-author PR on another page; a non-bot with the same login; and unrelated permission-lookup 404s. All 73 focused
OrganizationFundedCopilotReviewsTestspassed. Existing workflow path mappings already select Infrastructure.Tests.Failure evidence: https://github.com/microsoft/aspire/actions/runs/34510935899
Security considerations
This is a deny-only exception requiring both the exact login and bot type from GitHub's PR API. It does not authorize any additional authors, broaden token permissions, or catch arbitrary API errors. Existing trusted no-checkout execution and scoped App-token handling remain unchanged.
Fixes # (issue)
Checklist
<remarks />and<code />elements on your triple slash comments?