Conversation
Adds the required check that keeps a pull request from merging until Copilot has reviewed it. The org ruleset that makes it required lands after every repo has the workflow, so no pull request waits on a check that never reports.
Contributor
Author
|
Closing: this repo is public, so it can't use the private gate action. It stays out of the Copilot review rule. |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The required gate can be bypassed by modifying the workflow in the pull request.
Review effort: Lite
Findings: 1
What changed in this PR
Adds a required GitHub Actions gate that waits for Copilot review before allowing merges.
Changes:
- Triggers on pull request updates and submitted reviews.
- Uses concurrency cancellation and read-only permissions.
- Invokes the shared Copilot review-gate action.
Critical finding: the gate runs from the pull request’s workflow, allowing authors to bypass the required check. It must run from a base-branch-controlled or protected workflow.
| File | Description |
|---|---|
.github/workflows/copilot-review-gate.yml |
Defines the Copilot review gate workflow. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+7
to
+8
| pull_request: | ||
| types: [opened, reopened, synchronize, ready_for_review] |
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.

Adds the
Copilot review gatecheck, which keeps a PR from merging until Copilot has reviewed it. Right now PRs usually merge within a minute, before the review is in.The org rule that makes the check required goes on once every repo has this workflow. The logic is in
mbunity/github-actions/copilot-review-gate.CI change only.