Fix agentic triage workflow invalid id-token permission#11099
Closed
timotheeguerin wants to merge 1 commit into
Closed
Fix agentic triage workflow invalid id-token permission#11099timotheeguerin wants to merge 1 commit into
timotheeguerin wants to merge 1 commit into
Conversation
The 'all: read' permission shorthand expands to 'id-token: read', which GitHub Actions rejects (id-token only allows write/none). Replace with explicit 'contents: read' + 'issues: read' and bump gh-aw to v0.80.9.
Contributor
|
No changes needing a change description found. |
Member
Author
|
Recreating from an upstream branch so the agentic workflow can run in CI. |
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.
Problem
The agentic triage workflow fails to run with:
This started after #10984 ("Enable org-billed Copilot auth") replaced
permissions: read-allwith the gh-aw shorthand:The
all: readshorthand expands to every permission set toread— includingid-token: read, which GitHub Actions rejects (id-tokenonly acceptswriteornone). Bumping the compiler version alone does not fix this; theall: readsource is the culprit.Fix
Following the pattern used in Azure/azure-sdk-for-js#39089:
issue-triage.md&bump-tcgc-csharp.md: replaceall: readwith explicitcontents: read+issues: read(keepingcopilot-requests: write).check-agentic-workflows.yml: bump the pinned gh-aw fromv0.79.8→v0.80.9so the drift check matches.gh aw compile(v0.80.9), regenerating the.lock.ymlfiles,agentics-maintenance.yml, andactions-lock.json.Verification
id-tokenno longer appears in any generated workflow.contents: read,issues: read,copilot-requests: write.Ref: Agentic workflows no longer need a PAT