Fix agent assignment permission error in campaign generator workflow#11315
Closed
Fix agent assignment permission error in campaign generator workflow#11315
Conversation
The assign-to-agent safe-output was using the default GITHUB_TOKEN which lacks permissions to assign bots via GraphQL mutations (replaceActorsForAssignable). Solution: Configure assign-to-agent to use GH_AW_PROJECT_GITHUB_TOKEN which has the necessary permissions for bot assignment operations. This fixes the "Resource not accessible by personal access token" error when the workflow tries to assign the Copilot agent to issues. Fixes #11225 Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Debug Agentic Campaign Generator workflow failure
Fix agent assignment permission error in campaign generator workflow
Jan 22, 2026
Contributor
|
@copilot Update this in generator.go |
Copilot stopped work on behalf of
mnkiefer due to an error
January 22, 2026 15:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The campaign generator workflow failed to assign Copilot agents to issues due to insufficient token permissions. The
assign-to-agentsafe-output was falling back toGITHUB_TOKEN, which cannot execute thereplaceActorsForAssignableGraphQL mutation.Changes
assign-to-agentto useGH_AW_PROJECT_GITHUB_TOKENinstead of default tokenThis follows the same token pattern used by
create-projectandupdate-projectsafe-outputs in the workflow. The token precedence chain forassign-to-agentis: custom token > top-level token >GH_AW_AGENT_TOKEN || GH_AW_GITHUB_TOKEN || GITHUB_TOKEN.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.