Project Should Require All Pipelines to Succeed
policy name: requires_status_checks
Checks that validate the quality and security of the code are not required to pass before submitting new changes. It is advised to turn this flag on to ensure any existing or future check will be required to pass.
Not defining a set of required status checks can make it easy for contributors to introduce buggy or insecure code as manual review, whether mandated or optional, is the only line of defense.
- Make sure you can manage project merge requests permissions
- Go to the project’s settings page
- Select “Merge Requests”
- Press on the “Pipelines must succeed”
- Click “Save changes”