Once GuardRails has been setup in your VCS, you can enforce passing checks to allow merging of PR/MRs.
Table of Contents
On GitHub you can setup branch protection rules for each repository by browsing to "Settings"->"Branches". There select
guardrails/scan in the section "Requires status checks to pass before merging".
On GitLab you configure the merge checks behavior. Follow these steps:
- Navigate to your project’s
- Expand the
- In the
Merge checkssubsection, select the
Pipelines must succeedcheckbox.
Savefor the changes to take effect.