githubnext / githubnext/gh-aw-test
[aw] Test Copilot Assign To Agent failed to assign agent
- Dominant language
- Shell
- Stars
- 8
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
### Workflow Failure
**Workflow:** [Test Copilot Assign To Agent](https://github.com/githubnext/gh-aw-test/blob/main/.github/workflows/test-copilot-assign-to-agent.md)
**Branch:** main
**Run:** https://github.com/githubnext/gh-aw-test/actions/runs/34563101483
> [!WARNING]
> **Agent Assignment Failed**: Failed to assign agent to issues or pull requests.
**Assignment Errors:**
- Issue #14979 (agent: copilot): copilot coding agent is not available for this repository
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
- Docs: https://github.github.com/gh-aw/reference/copilot-cloud-agent/#authentication
- API reference: https://docs.github.com/en/copilot/how-tos/use-copilot-agents/cloud-agent/use-cloud-agent-via-the-api#using-the-issues-api
### Action 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.):
````
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/34563101483
````
Manually invoke the agent
Debug this workflow failure using your favorite Agent CLI and the `agentic-workflows` prompt.
- Start your agent
- Load the `agentic-workflows` skill from `.github/skills/agentic-workflows/SKILL.md` or
- Type `debug the agentic workflow test-copilot-assign-to-agent failure in https://github.com/githubnext/gh-aw-test/actions/runs/34563101483`
> [!TIP]
>
> Stop reporting this workflow as a failure
>
> To stop a workflow from creating failure issues, set `report-failure-as-issue: false` in its frontmatter:
> ```yaml
> safe-outputs:
> report-failure-as-issue: false
> ```
>
>
> Generated from [Test Copilot Assign To Agent](https://github.com/githubnext/gh-aw-test/actions/runs/34563101483) · [◷](https://github.com/search?q=repo%3Agithubnext%2Fgh-aw-test+is%3Aissue+%22gh-aw-workflow-id%3A+test-copilot-assign-to-agent%22&type=issues)
> - [x] expires on Sep 18, 2026, 4:43 AM UTC
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the failed run for Test Copilot Assign To Agent and its workflow at .github/workflows/test-copilot-assign-to-agent.md. Check the agent token, repository access, Copilot availability, and assignment permissions against the linked authentication and Issues API documentation. Done means the workflow can assign the Copilot agent without reporting an assignment error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions
- Domain
- ci-cd
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100