Repository navigation
Description
Overview
The Authentication reference lists "Safe outputs assigning Copilot coding agent to issues/PRs" among features that work with "a secret containing a PAT or GitHub App". The Copilot Cloud Agent reference, a compile-time warning, and the safe-output token code all say GitHub App tokens are rejected for assign-to-agent. A team that standardizes on GitHub App credentials can build a workflow that looks supported and then fails at the assignment step.
User task and impact
- Question: Can I use a GitHub App credential for Copilot coding agent assignment (
assign-to-agent) instead of a PAT? - Platform: The docs do not make this deployment-specific. GHES and ARC behavior was not checked.
- Expected answer: The Authentication page says a PAT or a GitHub App works for this feature.
- Actual obstacle: The Copilot Cloud Agent reference says GitHub App tokens are not supported for Copilot assignment.
gh aw compilewarns thatassign-to-agentdoes not support GitHub App tokens. The compiled step uses the agent-token chain instead of the app token. - Operational consequence: Teams that follow the Authentication page and configure
safe-outputs.github-appexpect assignment to use the app. It does not. Assignment then depends onGH_AW_AGENT_TOKEN,GH_AW_GITHUB_TOKEN, orGITHUB_TOKEN. A source comment inpkg/workflow/github_token.go:74-76says the defaultGITHUB_TOKENlacks permission to assign bots, and the chain ends with that token. Without a PAT in the earlier secrets, assignment is expected to fail in the safe-outputs job after the agent has run.
Reproduction and evidence
Verified by walking the published site and reading the checked-out source. No live assignment was run, and no GitHub App assignment was tested.
Reproduction steps and supporting evidence
- Home, site search
token permissions secret: 93 results. The second hit is Authentication (/gh-aw/reference/auth/). - Authentication, Additional Authentication: under "require additional authentication, via either a secret containing a PAT or GitHub App", the bullet Safe outputs assigning Copilot coding agent to issues/PRs links to the Copilot Cloud Agent reference.
- Copilot Cloud Agent reference (
/gh-aw/reference/copilot-cloud-agent/, opened by URL): caution GitHub App tokens are not supported for Copilot assignment. The text says GitHub App installation tokens are rejected regardless of permissions, and thatassign-to-agentfalls back toGH_AW_AGENT_TOKEN || GH_AW_GITHUB_TOKEN || GITHUB_TOKENwhengithub-app:is configured.
Source comparison at ba221813ca9fde1075bdc63c12ef9b978955ff7d:
| Item | Location | | --- | --- | | Authentication claim (PAT or GitHub App) | `docs/src/content/docs/reference/auth.mdx:63-65` | | Copilot Cloud Agent caution (not supported) | `docs/src/content/docs/reference/copilot-cloud-agent.mdx:134-136` | | Compile-time warning for `assign-to-agent` with `github-app:` | `pkg/workflow/compiler_validators.go:543-552` | | `assign-to-agent` routed to the agent-token chain | `pkg/workflow/safe_outputs_steps.go:216-217` | | Agent-token chain: app tokens "intentionally NOT used" | `pkg/workflow/safe_outputs_env.go:355-364` | | Chain order `GH_AW_AGENT_TOKEN || GH_AW_GITHUB_TOKEN || GITHUB_TOKEN` | `pkg/workflow/github_token.go:11-14` and `:96-107` | | Default `GITHUB_TOKEN` cannot assign bots (source comment) | `pkg/workflow/github_token.go:74-76` |
Scope note: the copilot-requests token path, used by other Copilot-related safe outputs, does take the GitHub App token when github-app: is configured (pkg/workflow/safe_outputs_env.go:346-353). A fix should therefore cover assign-to-agent only, not every Copilot safe output.
Source versus deployment: the deployed Authentication page shows the same "PAT or GitHub App" bullet as auth.mdx lines 63-65. The deployed Copilot Cloud Agent page shows the same caution as copilot-cloud-agent.mdx lines 134-136. The site showed no version or deployment SHA, so this comparison rests on matching content.
Related history: closed [aw] Issue Monster: failed to assign agent reports, for example #73881, show run-level "Bad credentials (HTTP 401)" failures for the agent credential. They are a different root cause (credential validity) and are context only.
Proposed improvement and acceptance criteria
Change the Authentication bullet for Safe outputs assigning Copilot coding agent to issues/PRs so it names PAT-based credentials only (GH_AW_AGENT_TOKEN or github-token: on assign-to-agent). Link the Copilot Cloud Agent caution from that bullet. Keep GitHub App wording on the other bullets only where the code path accepts app tokens. Verify create-agent-session separately before stating anything about it.
Acceptance criteria:
- The Authentication page lists Copilot assignment (
assign-to-agent) under PAT-based credentials only, with no GitHub App option. - The Authentication page and the Copilot Cloud Agent page name the same secret and fallback for
assign-to-agent. - Repeating the path (home, search
token permissions secret, Authentication, Additional Authentication) lets the reader find which credential to create for assignment without visiting another page. - Any GitHub App wording kept for other Copilot-related safe outputs is backed by the code path or removed.
- After deployment, the published Authentication page matches the corrected source.
Dedup and limits
- Three read-only queries of open and closed issues in
github/gh-aw:assign-to-agentwith GitHub App terms, the[enterprise-docs]prefix with thecookielabel, and broader Copilot assignment and PAT terms. No docs issue matched the Authentication wording. The closed Issue Monster reports are run-level credential failures and are context only. - Not verified: live assignment with a GitHub App, and create-agent-session token behavior.
References: §45356734885
Generated by Enterprise Docs Audit · pi · routed: haiku55 xhigh · ~77 AIC · ⌖ ~2 AIC · ⊞ 5.8K · history
- expires on Nov 26, 2026, 12:45 AM UTC-08:00
Activity
github-actions commentedon Nov 24, 2026
🍪 Issue Monster selected this for Copilot
I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.
If assignment succeeds, Copilot will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪