Skip to content

Use copilot-requests: write permission instead of PAT for agentic workflows#8717

Merged
JeffreyCA merged 5 commits into
Azure:mainfrom
JeffreyCA:jeffreyca/aw-remove-token
Jun 19, 2026
Merged

Use copilot-requests: write permission instead of PAT for agentic workflows#8717
JeffreyCA merged 5 commits into
Azure:mainfrom
JeffreyCA:jeffreyca/aw-remove-token

Conversation

@JeffreyCA

@JeffreyCA JeffreyCA commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Fixes #8272

This PR updates the agentic workflows to use the GitHub Actions token for Copilot inference via the copilot-requests: write permission instead of requiring a long-lived COPILOT_GITHUB_TOKEN secret.

This is based on updated guidance now that org-wide billing is now supported for agent workflows.

It also refreshes the generated gh-aw lock and maintenance workflows and slightly improves the extension labeler prompt so registry-only PRs can infer the target extension from PR metadata.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added the area/extensions Extensions (general) label Jun 19, 2026
@JeffreyCA JeffreyCA changed the title Use keyless Copilot auth for agentic workflows Use copilot-requests: write permission instead of PAT for agentic workflows Jun 19, 2026
@JeffreyCA JeffreyCA marked this pull request as ready for review June 19, 2026 01:36
Copilot AI review requested due to automatic review settings June 19, 2026 01:36

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 updates the repo’s agentic GitHub Actions workflows to authenticate Copilot inference using the built-in GitHub Actions token plus the copilot-requests: write permission (instead of relying on a long-lived COPILOT_GITHUB_TOKEN secret), and refreshes the generated gh-aw compiled/maintenance artifacts accordingly.

Changes:

  • Add copilot-requests: write permissions to agentic workflows and switch Copilot auth to use ${{ github.token }}.
  • Regenerate gh-aw compiled .lock.yml workflows and maintenance workflow to newer gh-aw tooling (v0.79.8).
  • Update the extension PR labeler workflow prompt to better infer target extension IDs from PR metadata (including registry-only PR titles).
Show a summary per file
File Description
.github/workflows/update-instructions-from-pr-reviews.md Adds copilot-requests: write and updates wording around auth requirements.
.github/workflows/update-instructions-from-pr-reviews.lock.yml Regenerated compiled workflow: removes COPILOT_GITHUB_TOKEN secret validation and uses ${{ github.token }} for Copilot auth; updates gh-aw version and related scaffolding.
.github/workflows/extension-pr-labeler.md Adds copilot-requests: write, disables checkout in frontmatter, and expands prompt instructions to use PR metadata.
.github/workflows/extension-pr-labeler.lock.yml Regenerated compiled workflow: removes COPILOT_GITHUB_TOKEN secret validation and uses ${{ github.token }} for Copilot auth; updates gh-aw version and related scaffolding.
.github/workflows/agentics-maintenance.yml Regenerated maintenance workflow to gh-aw v0.79.8.
.github/aw/actions-lock.json Updates pinned gh-aw action entries to v0.79.8.

Copilot's findings

  • Files reviewed: 6/6 changed files
  • Comments generated: 1

Comment thread .github/workflows/update-instructions-from-pr-reviews.md Outdated
JeffreyCA and others added 2 commits June 19, 2026 02:11
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@JeffreyCA JeffreyCA enabled auto-merge (squash) June 19, 2026 21:35
@JeffreyCA

Copy link
Copy Markdown
Contributor Author

/check-enforcer override

@JeffreyCA JeffreyCA merged commit b799477 into Azure:main Jun 19, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/extensions Extensions (general)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agentic Workflows - remove GITHUB_COPILOT_TOKEN once org-wide billing is in place

3 participants