githubnext / githubnext/gh-aw-test

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

Open
#14,078 1 comment 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/33942285306

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

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

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

> [!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/33942285306) · [◷](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 12, 2026, 3:39 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 33942285306, then compare the configured token and Copilot assignment setup with the linked authentication and Issues API documentation. Done means the workflow can assign the Copilot agent to an issue without reporting an assignment error.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.