Enforce Passing GuardRails Checks
Once GuardRails has been setup in your VCS, you can enforce passing checks to allow merging of PR/MRs.
Table of Contents
GitHub
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".
More information:
GitLab
On GitLab you configure the merge checks behavior. Follow these steps:
- Navigate to your project’s
Settings
>General
page. - Expand the
Merge requests
section. - In the
Merge checks
subsection, select thePipelines must succeed
checkbox. - Press
Save
for the changes to take effect.
More information: