> For the complete documentation index, see [llms.txt](https://docs.whitespots.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.whitespots.io/appsec-portal/features/quality-gate.md).

# Quality Gate

## Pre requirement

You have to setup the integration with your version control ([guide](/appsec-portal/general-portal-settings/version-control-integration.md))

## How to put comments on merge requests

1. Navigate to Settings->Integrations->Version Control-> \<your version control system>
2. Scroll to the bottom

<figure><img src="/files/0MUBMbm6QlYK67cE2VRR" alt="" width="375"><figcaption></figcaption></figure>

There are some usefull settings here. Take a deep look, if you want this quality gate to be applied to products with specific business criticality/verified or just critical vulnerabilities

<figure><img src="/files/9Ix3qAcwlwrnKFvj2EuG" alt="" width="375"><figcaption></figcaption></figure>

General filters example:

<figure><img src="/files/R02QvlvILfDf70khKFWn" alt="" width="375"><figcaption></figcaption></figure>

This is a **general** filter, which means that there's a functionality to setup an own filter for each action as well.

We don't recommend beginners to setup additional filters, because there might be some misunderstanding about "absent" comments.

<figure><img src="/files/OyDBiUW5tNF7ZJbgVGeT" alt="" width="375"><figcaption></figcaption></figure>

Summary comment example:

<figure><img src="/files/wbIWhHdVPGyF17xz9Bj5" alt="" width="375"><figcaption></figcaption></figure>

## How to block merge requests

Another question, that we usually get is "how to kill the pipeline if there are verified vulnerabilities?"

There's no need to kill something. You are free to just close merge request with additional comment to let developers know, that they won't merge their changes until they fix vulnerabilities.

> It's better to set up comments first, then test auto closer with resolve action for your scanners and block merge requests only after that

<figure><img src="/files/lqmZ6ibPI8zpwMbaWXc2" alt="" width="375"><figcaption></figcaption></figure>

## I need a job in CI/CD for devops team

We have seen some clients with this feature request, so maybe you want it too :smile:

If your DevOps team wants CI semaphore - you can enable it&#x20;

<figure><img src="/files/arvtEdk5SCS42aPGSE9T" alt="" width="188"><figcaption></figcaption></figure>

<figure><img src="/files/8Qha1eRJDboy9rjz0hU6" alt="" width="375"><figcaption></figcaption></figure>
