anthropics / anthropics/claude-code-action

Title: Support for GitHub Copilot-created Pull Requests

Aperta
#903 0 commenti 1 reazione 0 assegnatari Vedi su GitHub
area:permissions bug p2
Lingua principale
TypeScript
Stelle
8.9k
Fork
2.1k
Merge medio
3g 9h
PR unite (30g)
10

Descrizione

Description

When GitHub Copilot creates a pull request, the claude-code-action fails with a 404 error because it tries to look up the PR author as a regular
GitHub user.

Steps to Reproduce

1. Use GitHub Copilot to create a pull request
2. Have claude-code-action configured to run on pull_request events
3. The action fails during permission checking

Error Log

Checking permissions for actor: Copilot
GET /users/Copilot - 404 Not Found

Expected Behavior

The action should recognize that Copilot is a GitHub app/bot, not a regular user, and handle it appropriately (similar to how copilot[bot] or
github-actions[bot] are handled).

Workaround

Currently skipping Copilot PRs with:
if: github.event.pull_request.user.login != 'Copilot'

Environment

- Action version: anthropics/claude-code-action@v1
- Configuration includes allowed_bots: 'copilot[bot],github-actions[bot]'

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.