Prerequisites
- Pull Request Reviews enabled for your team
- GitHub connected to Corridor
- Permission to edit branch protection or rulesets on the repository you want to protect
How it works
Your merge policy is enforced by the Corridor Review check, which appears as a required status check on the pull request—the same place developers already look before merging:- Passing — no open findings at your policy’s severities.
- Failing — one or more findings need attention. When the check is required in branch protection, the merge is held until they’re resolved or accepted.
Setting your merge policy
There are two steps: set your policy in Corridor, then require the check in GitHub. Both are required—Corridor reports the pass/fail signal, and branch protection is what turns that signal into enforcement.1. Choose your policy in Corridor
Go to Governance → Merge Policy and:- Ensure Pull Request Reviews are enabled for your team.
- Under Your merge policy, select the finding severities your team requires resolved before a pull request can merge (for example, Critical and High). Leaving every severity unselected turns enforcement off.
- Ensure Leave Comments on Pull Requests is on. Corridor posts each finding as an inline comment, and that comment thread is where developers resolve a held pull request (reply
false positiveorunblock).
2. Require the check in GitHub
This is the step that enforces the policy—on its own, the Corridor Review check reports pass/fail but does not prevent merges.- Branch protection
- Rulesets
- Go to repository Settings → Branches → Add branch protection rule (or edit an existing rule).
- Set the Branch name pattern to your protected branch (for example,
main). - Enable Require status checks to pass before merging.
- In the search box that appears, find and select Corridor Review.
- Save changes.
Resolving a held pull request
Developers can bring a pull request into line with your policy in whatever way fits the situation, all from the pull request:- Fix the code — push a fix and Corridor automatically re-validates the finding and clears the check once it’s resolved. No manual step required.
- Mark a false positive — reply
false positiveon the finding’s inline comment to dismiss it, with the decision recorded. - Accept the risk (unblock) — reply
unblockto override a specific finding when your team decides to proceed. - Adjust from the dashboard — security teams can change a finding’s severity or resolve it centrally, and the check updates automatically.
Reviewing what’s held for review
The Governance → Merge Policy page gives your security team a single view of every pull request currently held by policy. You can see which projects are accumulating held pull requests, how long each has been waiting, and how many findings are open on it. Filter by severity or project, or open any pull request directly on GitHub.Availability
Merge Policy works with GitHub today. GitLab support is on the roadmap.Next steps
PR Reviews
How Corridor reviews pull requests and how to reply to findings
Findings
Track and manage security findings