githubnext / githubnext/gh-aw-test

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

Open
#14,242 3 comments 0 reactions 0 assignees View on GitHub
agentic-workflows
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/34080345346

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

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

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

> [!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/34080345346) · [◷](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 14, 2026, 3:44 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. Read the agentic-workflows skill and the Copilot cloud agent authentication documentation, then inspect the assignment error for issue #14240. Done means the workflow can assign the Copilot agent without reporting an assignment failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, github-actions
Domain
ci-cd, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.