-
Notifications
You must be signed in to change notification settings - Fork 295
Closed as not planned
Closed as not planned
Copy link
Labels
bugSomething isn't workingSomething isn't workingcookieIssue Monster Loves Cookies!Issue Monster Loves Cookies!
Description
The Duplicate Code Detector workflow is failing in the safe_outputs job with a permission error when attempting to assign Copilot to an issue.
Error
"type": "FORBIDDEN",
"path": ["replaceActorsForAssignable"],
"message": "Could not assign agent: target repository is not writable."
##[error]Failed to assign copilot to issue #16739 in github/gh-aw: Failed to assign copilot via GraphQL
##[error]Failed to assign copilot to 1 issue(s)
Affected Workflow
- Duplicate Code Detector — scheduled daily
- Run: §22167968348
Root Cause
The safe_outputs job is trying to assign a Copilot agent to issue #16739, but the GraphQL replaceActorsForAssignable mutation is returning FORBIDDEN. This could be due to:
- The target issue being in a restricted state or locked
- Insufficient permissions for the GitHub Actions token to assign agents
- A temporary GitHub API restriction on agent assignments
Impact
- Duplicate code analysis results are not being published
- The workflow fails after the agent job completes (agent itself ran successfully)
Fix Options
- Check if issue Duplicate Code: Update Handler Pattern Across update_issue/update_pull_request/update_discussion #16739 is locked or has restricted assignments
- Verify that the
issues: writepermission is properly configured for the workflow - Check if agent assignment via GraphQL requires additional token scopes
References
- §22167968348 — Failure run (Feb 19)
- Job:
safe_outputs(job ID: 64099636065)
Generated by Workflow Health Manager - Meta-Orchestrator
- expires on Feb 20, 2026, 7:38 AM UTC
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcookieIssue Monster Loves Cookies!Issue Monster Loves Cookies!