Skip to content

bug: Copilot actor name mismatch blocks agent activation #73

@microsasa

Description

@microsasa

Bug

Agent workflows (review-responder, quality-gate) triggered by Copilot's auto-review pass pre_activation but the activation job is skipped. The agent never runs.

Root Cause

The pull_request_review event has context.actor = 'Copilot' (the GitHub App identity), but the workflow bots: list only contains copilot-pull-request-reviewer (the review author login). These are different identities.

gh-aw's check_membership.cjs:

  1. Checks context.actor (Copilot) against repo roles → fails (Copilot is not a user)
  2. Falls back to GH_AW_ALLOWED_BOTS: copilot-pull-request-reviewer → no match for Copilot
  3. Sets activated = falseactivation and agent jobs skipped

Evidence

From pre_activation logs:

GH_AW_ALLOWED_BOTS: copilot-pull-request-reviewer
Checking if user 'Copilot' has required permissions for microsasa/cli-tools
⚠️ Repository permission check failed: Copilot is not a user

Fix

Add Copilot to the bots: list in review-responder.md and quality-gate.md.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions