fix: id-token: read is invalid in GitHub Actions — use none#11095
fix: id-token: read is invalid in GitHub Actions — use none#11095Copilot wants to merge 2 commits into
Conversation
Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
|
@copilot review the doc here https://github.blog/changelog/2026-06-11-agentic-workflows-no-longer-need-a-personal-access-token/ to make sure you implemented correctly the tokenless agentic workflows |
The tokenless implementation is already correct in both lock files:
The original failure was purely about |
|
@copilot agentic workflow check lock files fialing https://github.com/microsoft/typespec/actions/runs/28190260114/job/83502712063?pr=11095 |
…ne after compile Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
The CI failure was because Fixed in commit by updating |
GitHub Actions rejects
id-token: readas an invalid permission value;id-tokenonly acceptsnoneorwrite. The compiled lock workflows (issue-triage.lock.yml,bump-tcgc-csharp.lock.yml) had this set toread(expanded fromall: readin the source.md), causing workflow validation failures.id-token: read→id-token: nonein both lock files; these workflows don't use OIDC tokens.check-agentic-workflows.ymlto apply asedsubstitution (id-token: read→id-token: none) aftergh aw compileruns but before the drift check, to account for a bug ingh aw compilev0.79.8 that generates the invalidid-token: readwhen expandingall: readin tokenless mode.