---
updatedAt: 2025-08-06T16:53:53.000Z
agentTools:
  projectIndex: https://docs.brightsec.com/llms.txt
---

# GitLab

<HTMLBlock>{`
<table id="integrations" >
  <style>
 #integrations {
    border-collapse: separate;
    width: 100%;
    display: block;
    display: table;
  }
 #integrations td,
  th {
    border: 0px solid #ddd;
    padding-left: 0px;
    background-color: #FFFFFF;
  }
  </style>
  <tr>
    <td width="70%">
      
    </td>
    <td width="30%" style="text-align:center" rowspan="3">
      <img src="https://files.readme.io/2736cff-gitlab-int.png" width="170" height="200"></img>
    </td>
  </tr>
  <tr>
    <td style="text-align:left;vertical-align:text-top;padding:0px">
    If you are using the GitLab pipeline for development automation, you can integrate it with Bright to run security scans on every new build within your development environment.
    </td>
  </tr>
<tr>
    <td style="text-align:left;vertical-align:text-top;padding:0px">
    Depending on the use case, you can apply multiple options for running scans from your CI pipeline.
    </td>
  </tr>
  </table>
`}</HTMLBlock>

## Use Cases

### Scanning a target in public environment

Upon a release of a new build, you can run an overall complete scan of the target in the production or public pre-production environment. In this case, long scans will not interfere with the development process as compared to scanning in the private environment.

Depending on the access to the deployed target, you can run a scan using multiple options.

* <img src="https://files.readme.io/cc0813a-1.png" width="34" height="30" /> Directly from the [Bright app](https://app.brightsec.com).
* <img src="https://files.readme.io/112f601-2.png" width="34" height="30" /> From your pipeline using the Bright CLI (NPM). Find the example [here](https://docs.brightsec.com/docs/gitlab-integration-examples#example-1-scan-from-the-cloud-using-the-bright-cli-npm-installation).

<Image align="center" width="80%" src="https://files.readme.io/4123439-gitlab-direct_2.png" />

### Scanning a target in private environment

You can run fast scans of the application which is currently under development within your pipeline. Bright allows you to follow the fail-fast principle by interrupting a scan automatically at the first detected vulnerability. Using this option, you are able to quickly and timely find and fix the security issues at the build level without delaying the whole development process.

As the scan target is closed within your pipeline, the Bright engine cannot access it directly from the cloud. In this case, you can use a [Repeater](https://docs.brightsec.com/docs/on-premises-repeater-local-agent) which serves as a request-proxy between Bright and a scan target inside your private environment.  You should first register (create) the Repeater in the [Bright app](https://app.brightsec.com), and then connect it to your pipeline using the generated Repeater ID.

To run scans directly from your pipeline, you need to install the Bright CLI. It provides an easy-to-use interface and multiple [commands](https://docs.brightsec.com/docs/command-list) you can use in your Travis flow.

You can either run the Bright CLI with a Repeater using <img src="https://files.readme.io/baaa6c4-3.png" width="36" height="30" /> the NPM or by installing <img src="https://files.readme.io/133d01b-4.png" width="36" height="29" /> the Bright's Docker image inside your pipeline.

<Image align="center" width="470" src="https://files.readme.io/7360695-gitlab-docker_1.png" />

Find the examples here:

* [Scanning in the Repeater mode using the NPM](https://docs.brightsec.com/docs/gitlab-integration-examples#example-2-scan-in-the-repeater-mode-using-the-bright-cli-npm-installation)
* [Scanning in the Repeater mode using the Docker image](https://docs.brightsec.com/docs/gitlab-integration-examples#example-3-scan-in-the-repeater-mode-using-the-bright-cli-docker-installation)