From db2bf2b32bb6667dea9701d434227530fa7e1943 Mon Sep 17 00:00:00 2001 From: Sasa Junuzovic Date: Sat, 14 Mar 2026 22:47:06 -0700 Subject: [PATCH] fix: allow Copilot reviewer bot to trigger review-responder and quality-gate The pre_activation gate checks github.actor role (admin/maintainer/write). When Copilot reviewer submits a review, it's the actor but not a repo collaborator, so activation fails. Adding it to bots[] bypasses the role check for this specific bot. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/quality-gate.lock.yml | 2 +- .github/workflows/quality-gate.md | 2 ++ .github/workflows/review-responder.lock.yml | 2 +- .github/workflows/review-responder.md | 2 ++ 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/quality-gate.lock.yml b/.github/workflows/quality-gate.lock.yml index 1c9d49b..fa419b9 100644 --- a/.github/workflows/quality-gate.lock.yml +++ b/.github/workflows/quality-gate.lock.yml @@ -22,7 +22,7 @@ # For more information: https://github.github.com/gh-aw/introduction/overview/ # # -# gh-aw-metadata: {"schema_version":"v2","frontmatter_hash":"dc166a6992cc5ffedd8f50bf687351344ccea3cb0cafe99f3b86ccd6534a2264","compiler_version":"v0.58.1","strict":true} +# gh-aw-metadata: {"schema_version":"v2","frontmatter_hash":"ddc05091f49326139f57d76d51f5e1ffe03bb0a8641f3429620707b82986dede","compiler_version":"v0.58.1","strict":true} name: "Quality Gate" "on": diff --git a/.github/workflows/quality-gate.md b/.github/workflows/quality-gate.md index f9ec349..d69bfe7 100644 --- a/.github/workflows/quality-gate.md +++ b/.github/workflows/quality-gate.md @@ -3,6 +3,8 @@ on: pull_request_review: types: [submitted] +bots: [copilot-pull-request-reviewer] + permissions: contents: read issues: read diff --git a/.github/workflows/review-responder.lock.yml b/.github/workflows/review-responder.lock.yml index 254a117..0c65146 100644 --- a/.github/workflows/review-responder.lock.yml +++ b/.github/workflows/review-responder.lock.yml @@ -22,7 +22,7 @@ # For more information: https://github.github.com/gh-aw/introduction/overview/ # # -# gh-aw-metadata: {"schema_version":"v2","frontmatter_hash":"73fd3124dd5f5623cfc4b6273a3cdc0f1cd113a836c9543b0fa8bf1f9d92067d","compiler_version":"v0.58.1","strict":true} +# gh-aw-metadata: {"schema_version":"v2","frontmatter_hash":"f329f5594237e4fd0f76a7084061068ff2df6b6b4f8923e1c36854073ae4af63","compiler_version":"v0.58.1","strict":true} name: "Review Responder" "on": diff --git a/.github/workflows/review-responder.md b/.github/workflows/review-responder.md index a3dd2ad..4942c59 100644 --- a/.github/workflows/review-responder.md +++ b/.github/workflows/review-responder.md @@ -3,6 +3,8 @@ on: pull_request_review: types: [submitted] +bots: [copilot-pull-request-reviewer] + permissions: contents: read issues: read