githubnext / githubnext/gh-aw-test

[aw] Test Copilot Assign To Agent failed to assign agent

Open
#15,912 2 comments 0 reactions 0 assignees View on GitHub
agentic-workflows cascade-suspected
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/35055103708

> [!WARNING]
> **Agent Assignment Failed**: Failed to assign agent to issues or pull requests.

**Assignment Errors:**
- Issue #15910 (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/35055103708
````

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/35055103708`

> [!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/35055103708) · [◷](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 23, 2026, 4:21 AM UTC

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with .github/workflows/test-copilot-assign-to-agent.md and the failed run linked in the issue, then inspect the GH_AW_AGENT_TOKEN and Copilot assignment configuration described there. Verify token permissions, repository access, and Copilot availability; the workflow is done when the test assigns the agent without an assignment error.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, github-actions
Domain
ci-cd, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.