Skip to content

Adapt GH-AW workflows to the PAT pool#25838

Closed
vitek-karas wants to merge 3 commits into
dotnet:mainfrom
vitek-karas:ghaw-pat-pool
Closed

Adapt GH-AW workflows to the PAT pool#25838
vitek-karas wants to merge 3 commits into
dotnet:mainfrom
vitek-karas:ghaw-pat-pool

Conversation

@vitek-karas

@vitek-karas vitek-karas commented Jun 26, 2026

Copy link
Copy Markdown
Member

Summary

  • add the shared GH-AW PAT pool import and its repository setup documentation
  • update code-radiator, ci-postmortem, and macios-reviewer to source COPILOT_GITHUB_TOKEN from the selected PAT slot while continuing to use the existing gh-aw-environment
  • add a workflow that validates the configured COPILOT_PAT_0 through COPILOT_PAT_9 entries and regenerate the affected lock files

vitek-karas and others added 3 commits June 26, 2026 19:32
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@rolfbjarne rolfbjarne marked this pull request as ready for review June 30, 2026 18:00
Copilot AI review requested due to automatic review settings June 30, 2026 18:00
@rolfbjarne

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

@rolfbjarne

Copy link
Copy Markdown
Member

Recreated from origin: #25888

@rolfbjarne rolfbjarne closed this Jun 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adapts the repository’s GH-AW (Agentic Workflows) setup to use a pool of Copilot PATs (rather than a single shared token) to reduce rate-limiting and improve reliability, and adds tooling/docs to manage and validate that pool.

Changes:

  • Added a shared pat_pool workflow import plus repository onboarding documentation for configuring a numbered PAT secret pool.
  • Updated existing agentic workflows (code-radiator, ci-postmortem, macios-reviewer) to select a PAT slot and set COPILOT_GITHUB_TOKEN accordingly, and regenerated the corresponding lock files.
  • Added a scheduled/manual workflow to validate COPILOT_PAT_0 through COPILOT_PAT_9 using the Copilot CLI and summarize results.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
.github/workflows/validate-pat-pool.yml New workflow to validate PAT pool entries and produce a status summary/failure conditions.
.github/workflows/shared/pat_pool.README.md New documentation for onboarding repos and wiring workflows to the PAT pool import.
.github/workflows/shared/pat_pool.md New GH-AW import that selects a non-empty PAT slot and outputs its index.
.github/workflows/macios-reviewer.md Updated agentic workflow frontmatter to import PAT pool and override COPILOT_GITHUB_TOKEN.
.github/workflows/macios-reviewer.lock.yml Regenerated lock file reflecting PAT pool import and secret usage updates.
.github/workflows/code-radiator.md Updated agentic workflow frontmatter to import PAT pool and override COPILOT_GITHUB_TOKEN.
.github/workflows/code-radiator.lock.yml Regenerated lock file reflecting PAT pool import and secret usage updates.
.github/workflows/ci-postmortem.md Updated agentic workflow frontmatter to import PAT pool and override COPILOT_GITHUB_TOKEN.
.github/workflows/ci-postmortem.lock.yml Regenerated lock file reflecting PAT pool import and secret usage updates.

Comment on lines +42 to +44
needs.pat_pool.outputs.pat_number == '9', secrets.COPILOT_PAT_9,
'NO COPILOT PAT AVAILABLE')
}}
Comment on lines +41 to +44
needs.pat_pool.outputs.pat_number == '8', secrets.COPILOT_PAT_8,
needs.pat_pool.outputs.pat_number == '9', secrets.COPILOT_PAT_9,
'NO COPILOT PAT AVAILABLE')
}}
Comment on lines +36 to +39
needs.pat_pool.outputs.pat_number == '8', secrets.COPILOT_PAT_8,
needs.pat_pool.outputs.pat_number == '9', secrets.COPILOT_PAT_9,
'NO COPILOT PAT AVAILABLE')
}}
Comment on lines 2 to +5
on:
workflow_dispatch:
permissions: {}

Comment on lines +108 to +110
needs.pat_pool.outputs.pat_number == '9', secrets.COPILOT_PAT_9,
'NO COPILOT PAT AVAILABLE')
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants