[gh-aw] use GITHUB_TOKEN for Copilot inference#11659
Open
jonathanpeppers wants to merge 1 commit into
Open
Conversation
Adds copilot-requests: write to the permissions block of both agentic workflows so they use the built-in GITHUB_TOKEN for Copilot CLI inference instead of the COPILOT_GITHUB_TOKEN PAT. AI credits now bill directly to the dotnet organization. See: https://github.blog/changelog/2026-06-11-agentic-workflows-no-longer-need-a-personal-access-token/ Also bumps the gh-aw CLI from v0.79.6 -> v0.79.8 (recommended in the changelog), which regenerates agentics-maintenance.yml and the lock files. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the repo’s gh-aw agentic workflows to use the new authentication model where Copilot CLI inference is performed using the built-in GITHUB_TOKEN (with copilot-requests: write) instead of a stored PAT secret, and regenerates the compiled/locked workflows with the newer gh-aw CLI.
Changes:
- Added
copilot-requests: writeto workflow/job permissions in the source workflow.mdfiles and in the generated lock workflows. - Regenerated lock workflows so
COPILOT_GITHUB_TOKENis sourced from${{ github.token }}(and removed theCOPILOT_GITHUB_TOKENsecret dependency). - Bumped gh-aw action/CLI pins from
v0.79.6tov0.79.8(including the generated maintenance workflow).
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/android-reviewer.md | Adds copilot-requests: write permission to support Copilot inference via GITHUB_TOKEN. |
| .github/workflows/android-reviewer.lock.yml | Regenerated lock: uses ${{ github.token }} for COPILOT_GITHUB_TOKEN, updates gh-aw pins, and propagates permissions changes. |
| .github/workflows/nightly-fix-finder.md | Adds copilot-requests: write permission to support Copilot inference via GITHUB_TOKEN. |
| .github/workflows/nightly-fix-finder.lock.yml | Regenerated lock: uses ${{ github.token }} for COPILOT_GITHUB_TOKEN, updates gh-aw pins, and propagates permissions/guardrail output renames. |
| .github/workflows/agentics-maintenance.yml | Regenerated maintenance workflow with updated gh-aw pins/version banner. |
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.
Adopts the new agentic workflows authentication model: with
copilot-requests: writein the workflowpermissionsblock,gh-awuses the built-inGITHUB_TOKENfor Copilot CLI inference instead of a stored PAT, and AI credits bill directly to thedotnetorganization.Changes
copilot-requests: writeto thepermissions:block of:.github/workflows/android-reviewer.md.github/workflows/nightly-fix-finder.mdgh aw compileto regenerate the lock files. They now wireCOPILOT_GITHUB_TOKEN: ${{ github.token }}into the engine instead of${{ secrets.COPILOT_GITHUB_TOKEN }}.gh-awCLI fromv0.79.6tov0.79.8(recommended in the changelog), which is what regeneratedagentics-maintenance.yml(action SHA + version pin bumps).After this merges
COPILOT_GITHUB_TOKENrepo secret can be deleted — it is no longer referenced anywhere under.github/workflows/.dotnetorg. It is on by default if the existing "Copilot CLI" policy is enabled.Intentionally not changed
ANDROID_TEAM_PAT— still required forsafe-outputs.assign-to-agentinnightly-fix-finder.md. The built-inGITHUB_TOKENcannot trigger downstream workflows from a Copilot assignment, which is a separate constraint unrelated to this changelog.GH_AW_GITHUB_TOKEN/GH_AW_GITHUB_MCP_SERVER_TOKEN— these govern GitHub MCP / safe-outputs auth, not Copilot inference.Reference: https://github.blog/changelog/2026-06-11-agentic-workflows-no-longer-need-a-personal-access-token/