You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To resolve this, verify the token and Copilot assignment configuration:
Set GH_AW_AGENT_TOKEN to a fine-grained PAT with metadata: read and actions, contents, issues, and pull requests: write, or use a classic PAT with repo
Do not use a GitHub App installation token for Copilot assignment; the API rejects it
Ensure the token owner can access the repository and assign users to issues
Verify Copilot coding agent is enabled for this repository and organization policy allows bot assignments
Assign this issue to an agent to debug and fix the issue.
Debug with any coding agent
Use this prompt with any coding agent (GitHub Copilot, Claude, Gemini, etc.):
Debug the agentic workflow failure using https://raw.githubusercontent.com/github/gh-aw/main/debug.md
The failed workflow run is at https://github.com/githubnext/gh-aw-test/actions/runs/30006578931
Manually invoke the agent
Debug this workflow failure using your favorite Agent CLI and the agentic-workflows prompt.
Workflow Failure
Workflow: Test Copilot Assign To Agent
Branch: main
Run: https://github.com/githubnext/gh-aw-test/actions/runs/30006578931
Warning
Agent Assignment Failed: Failed to assign agent to issues or pull requests.
Assignment Errors:
To resolve this, verify the token and Copilot assignment configuration:
GH_AW_AGENT_TOKENto a fine-grained PAT with metadata: read and actions, contents, issues, and pull requests: write, or use a classic PAT withrepoAction Required
Assign this issue to an agent to debug and fix the issue.
Debug with any coding agent
Use this prompt with any coding agent (GitHub Copilot, Claude, Gemini, etc.):
Manually invoke the agent
Debug this workflow failure using your favorite Agent CLI and the
agentic-workflowsprompt.agentic-workflowsskill from.github/skills/agentic-workflows/SKILL.mdor https://github.com/github/gh-aw/blob/main/.github/skills/agentic-workflows/SKILL.mddebug the agentic workflow test-copilot-assign-to-agent failure in https://github.com/githubnext/gh-aw-test/actions/runs/30006578931Tip
Stop reporting this workflow as a failure
To stop a workflow from creating failure issues, set
report-failure-as-issue: falsein its frontmatter: