Migrate GH-AW reviewer to PAT pool#394
Merged
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
jeffhandley
approved these changes
Jun 28, 2026
jonathanpeppers
approved these changes
Jun 29, 2026
jonathanpeppers
left a comment
Member
There was a problem hiding this comment.
I setup a the environment as mentioned in the README to try this out.
Contributor
There was a problem hiding this comment.
Pull request overview
Migrates the Android Tools Agentic Workflows (GH-AW) PR reviewer workflow to the Copilot PAT pool model, adds the shared PAT pool import/docs, and introduces a scheduled workflow to validate the pool independently.
Changes:
- Added a reusable
shared/pat_pool.mdimport plus documentation (shared/pat_pool.README.md) for selecting a random PAT slot and wiring it intoCOPILOT_GITHUB_TOKEN. - Updated
android-tools-reviewer.mdand regeneratedandroid-tools-reviewer.lock.ymlto run agentic jobs in thecopilot-pat-poolenvironment and source tokens fromCOPILOT_PAT_0..9. - Added
validate-pat-pool.ymlto periodically verify the PAT pool and fail with a summary if invalid/unknown/empty.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/validate-pat-pool.yml | New workflow to validate each PAT slot and emit a step-summary plus failure signal. |
| .github/workflows/shared/pat_pool.README.md | Documentation for onboarding repos and securely using the PAT pool import pattern. |
| .github/workflows/shared/pat_pool.md | New GH-AW import defining the pat_pool job that selects an available PAT slot number. |
| .github/workflows/android-tools-reviewer.md | Updated reviewer workflow frontmatter to import the PAT pool and override COPILOT_GITHUB_TOKEN. |
| .github/workflows/android-tools-reviewer.lock.yml | Recompiled generated workflow to include pat_pool job + updated gh-aw runtime revisions. |
| .github/aw/actions-lock.json | Updated action lock entries used by gh-aw tooling/workflows. |
Comment on lines
+8
to
12
| "github/gh-aw-actions/setup@v0.80.9": { | ||
| "repo": "github/gh-aw-actions/setup", | ||
| "version": "v0.79.8", | ||
| "sha": "c0338fef4749d08c21f8f975fb0e37efa17dda47" | ||
| "version": "v0.80.9", | ||
| "sha": "8c7d04ebf1ece56cd381446125da3e0f6896294a" | ||
| } |
Member
There was a problem hiding this comment.
I will address this in another PR.
Member
Member
Author
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Summary
.github/workflows/shared/validate-pat-pool.ymlso the PAT pool can be checked independently.github/aw/actions-lock.jsonValidation
gh aw compile .github/workflows/android-tools-reviewer.md --schedule-seed dotnet/android-tools --approvedotnet build Xamarin.Android.Tools.slndotnet test tests\Microsoft.Android.Build.BaseTasks-Tests\Microsoft.Android.Build.BaseTasks-Tests.csprojdotnet test tests\Xamarin.Android.Tools.AndroidSdk-Tests\Xamarin.Android.Tools.AndroidSdk-Tests.csprojstill has the pre-existingJdkDirectory_JavaHome("JI_JAVA_HOME")failure in both the feature worktree and the cleanmaincheckout becauseJAVA_HOMEis set in the local environmentSecurity review note
I reviewed the newly introduced secret references, action revisions, and generated workflow manifest changes from the PAT pool migration.
Secrets
Added restricted secrets:
COPILOT_PAT_0COPILOT_PAT_1COPILOT_PAT_2COPILOT_PAT_3COPILOT_PAT_4COPILOT_PAT_5COPILOT_PAT_6COPILOT_PAT_7COPILOT_PAT_8COPILOT_PAT_9These are only used to select a PAT slot number inside the isolated
pat_pooljob and then resolve the selected slot through acase(...)expression inengine.env, matching the documented pattern in dotnet/vitals PAT pool guidance and the example in dotnet/xharness#1626.Actions and generated runtime updates
github/gh-aw-actions/setupupdated fromv0.79.8tov0.80.9(8c7d04ebf1ece56cd381446125da3e0f6896294a)gh awv0.80.9:ghcr.io/github/gh-aw-firewall/agent:0.27.7ghcr.io/github/gh-aw-firewall/api-proxy:0.27.7ghcr.io/github/gh-aw-firewall/squid:0.27.7ghcr.io/github/gh-aw-mcpg:v0.3.27ghcr.io/github/gh-aw-nodeghcr.io/github/github-mcp-server:v1.4.0I reviewed these as safe because they are generated by the official
gh awcompiler during recompilation of the existing workflow, align with the PAT pool migration shape used in dotnet/runtime#129840, and do not introduce any custom third-party action beyond the standard GitHub / gh-aw generated set already used by this workflow.Redirect changes
No redirect changes were introduced.