Fix workflow permissions for Copilot coding agent#248
Merged
mrunalhirve128 merged 4 commits intomainfrom Feb 11, 2026
Merged
Conversation
- Update workflow permissions to include pull-requests:write and actions:read - Rewrite assign_to_copilot() to use GraphQL API with required feature headers - Add helper methods to get Copilot bot ID and issue/repo IDs - Use addAssigneesToAssignable mutation with agentAssignment input - Include GraphQL-Features header for Copilot assignment API support Fixes HTTP 403 error when assigning issues to Copilot coding agent.
…into users/mrunalhirve/fix-copilot-assignment
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR attempts to change the GitHub Actions workflow permissions for the auto-triage workflow from contents: read to contents: write, claiming this is required for the Copilot coding agent to create branches and commits. However, this change is incorrect and introduces unnecessary security risks.
Changes:
- Modified
.github/workflows/auto-triage-issues.ymlto changecontentspermission fromreadtowrite - Updated comment to state this is required for Copilot coding agent
sellakumaran
previously approved these changes
Feb 11, 2026
rahuldevikar761
approved these changes
Feb 11, 2026
JesuTerraz
approved these changes
Feb 11, 2026
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.
Summary
Adds missing workflow permissions required for Copilot coding agent to assign itself to issues.