# GitLab

{% hint style="success" %}
To get started analyzing your GitLab projects with SonarQube Cloud, see [Getting started with GitLab](/sonarqube-cloud/getting-started/gitlab.md).
{% endhint %}

## Key features <a href="#key-features" id="key-features"></a>

With SonarQube Cloud’s integration with GitLab, you’ll be able to:

* Authenticate with GitLab (through OAuth authentication).
* Import your GitLab group and its projects into SonarQube Cloud to easily set up SonarQube Cloud projects.\
  The bulk import of all existing repositories is supported.
* Analyze projects with GitLab CI/CD.\
  SonarScanners running in GitLab CI/CD jobs can automatically detect branches or merge requests being built.\
  You can fail the job if the SonarQube quality gate fails.
* Report your quality gate status to your branches and merge requests (merge request decoration).\
  You can see your quality gate and code metric results right in GitLab so you know if it’s safe to merge your changes. You can prevent merges when the quality gate fails.
* Import your monorepo into SonarQube Cloud to easily manage the related projects.

{% hint style="info" %}
You can use CI-based analysis from Self-hosted GitLab CI pipelines. However, since there is no native DevOps binding to Self-hosted GitLab in SonarQube Cloud (only to gitlab.com), the following features are not supported:

* Direct sign-up to SonarQube Cloud using Self-hosted GitLab OAuth.\
  Note that you can integrate your Self-hosted GitLab authentication indirectly by using [Single Sign-On](/sonarqube-cloud/administering-sonarcloud/enterprise-security/sso-and-provisioning.md).
* GitLab group and repositories import.
* Merge request decoration.
  {% endhint %}

## Related pages

* [Getting started with GitLab](/sonarqube-cloud/getting-started/gitlab.md)
* [Importing GitLab group](/sonarqube-cloud/administering-sonarcloud/managing-organization/creating-organization/importing-gitlab-group.md)
* [GitLab CI](/sonarqube-cloud/analyzing-source-code/ci-based-analysis/gitlab-ci.md)
* [Creating your project](/sonarqube-cloud/managing-your-projects/administering-your-projects/setting-up-project.md#creating-manually)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sonarsource.com/sonarqube-cloud/discovering-sonarcloud/integration-with-devops-platforms/gitlab.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
