-
Notifications
You must be signed in to change notification settings - Fork 295
Fix assign-to-agent failing with GitHub App tokens — auto-fallback to GH_AW_AGENT_TOKEN #19796
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -281,13 +281,11 @@ func (c *Compiler) addSafeOutputCopilotGitHubTokenForConfig(steps *[]string, dat | |||||||||
| // addSafeOutputAgentGitHubTokenForConfig adds github-token to the with section for agent assignment operations | ||||||||||
| // Uses precedence: config token > safe-outputs token > GH_AW_AGENT_TOKEN || GH_AW_GITHUB_TOKEN || GITHUB_TOKEN | ||||||||||
| // This is specifically for assign-to-agent operations which require elevated permissions. | ||||||||||
| // | ||||||||||
| // Note: GitHub App tokens are intentionally NOT used here, even when github-app: is configured. | ||||||||||
| // The Copilot assignment API only accepts PATs (fine-grained or classic), not GitHub App | ||||||||||
| // installation tokens. Callers must provide an explicit github-token or rely on GH_AW_AGENT_TOKEN. | ||||||||||
|
||||||||||
| // installation tokens. Callers must provide an explicit github-token or rely on GH_AW_AGENT_TOKEN. | |
| // installation tokens. Callers must provide an explicit github-token (either via config or | |
| // safe-outputs.github-token) or rely on the fallback of ${{ secrets.GH_AW_AGENT_TOKEN || | |
| // secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}. |
Uh oh!
There was an error while loading. Please reload this page.