Fail merge request without running CI jobs / Pipeline

Hi,

New to Gitlab here. We are able to use branch protection setting in GitHub and easily fail Pull request when code scanning finds any issues without having to run any CI jobs.

I am not able to find similar settings under branch protection settings in Gitlab. Is this setting under merge request and do we have to run pipelines to fail the merge request based on the outcome of the pipeline? Are there any webhooks that can be leveraged to fail the merge requests?

Can someone please advise on the same.

Vaibhav