Skip to content

Fix workflow permissions for Copilot coding agent#248

Merged
mrunalhirve128 merged 4 commits intomainfrom
users/mrunalhirve/fix-copilot-assignment
Feb 11, 2026
Merged

Fix workflow permissions for Copilot coding agent#248
mrunalhirve128 merged 4 commits intomainfrom
users/mrunalhirve/fix-copilot-assignment

Conversation

@mrunalhirve128
Copy link
Contributor

@mrunalhirve128 mrunalhirve128 commented Feb 11, 2026

Summary

Adds missing workflow permissions required for Copilot coding agent to assign itself to issues.

- 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
@mrunalhirve128 mrunalhirve128 requested a review from a team as a code owner February 11, 2026 19:08
Copilot AI review requested due to automatic review settings February 11, 2026 19:08
@mrunalhirve128 mrunalhirve128 requested a review from a team as a code owner February 11, 2026 19:08
@github-actions
Copy link

github-actions bot commented Feb 11, 2026

⚠️ Deprecation Warning: The deny-licenses option is deprecated for possible removal in the next major release. For more information, see issue 997.

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@mrunalhirve128 mrunalhirve128 changed the title Users/mrunalhirve/fix copilot assignment Fix workflow permissions for Copilot coding agent Feb 11, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.yml to change contents permission from read to write
  • Updated comment to state this is required for Copilot coding agent

sellakumaran
sellakumaran previously approved these changes Feb 11, 2026
@mrunalhirve128 mrunalhirve128 merged commit 13ea0f1 into main Feb 11, 2026
8 checks passed
@mrunalhirve128 mrunalhirve128 deleted the users/mrunalhirve/fix-copilot-assignment branch February 11, 2026 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants