> ## Documentation Index
> Fetch the complete documentation index at: https://docs.plerion.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GitLab

> Integrate Plerion Code Security with GitLab to scan repositories for infrastructure as code (IaC) issues and software composition analysis (SCA) issues directly in your development workflow.

With the [GitLab integration](https://app.plerion.com/settings/integrations/add/GitLab/GitLab), you can connect your repositories to Plerion Code Security. This enables automatic scanning for IaC and SCA issues, giving developers early feedback and helping teams resolve issues before they reach production.

***

## Steps to integrate GitLab with Plerion

<Steps>
  <Step title="On the Plerion dashboard, go to Settings > Integrations">
    <Frame>
      <img src="https://mintcdn.com/pleriondocs/j-a8Y0pMh6mLkP46/images/integrations/gitlab/settings-integrations-sidenav.png?fit=max&auto=format&n=j-a8Y0pMh6mLkP46&q=85&s=973cc4a036ed3532a10e1287a6e9cb22" alt="Plerion dashboard showing Settings expanded with Integrations selected" width="655" height="853" data-path="images/integrations/gitlab/settings-integrations-sidenav.png" />
    </Frame>
  </Step>

  <Step title="Find GitLab and click the + button">
    <Frame>
      <img src="https://mintcdn.com/pleriondocs/j-a8Y0pMh6mLkP46/images/integrations/gitlab/add-gitlab-integration.png?fit=max&auto=format&n=j-a8Y0pMh6mLkP46&q=85&s=6699948964bd3e4a40d4b30cce0ff670" alt="Integrations page showing GitLab tile with plus button" width="895" height="659" data-path="images/integrations/gitlab/add-gitlab-integration.png" />
    </Frame>
  </Step>

  <Step title="Click on Install and review the permissions">
    <Frame>
      <img src="https://mintcdn.com/pleriondocs/j-a8Y0pMh6mLkP46/images/integrations/gitlab/install-gitlab-app.png?fit=max&auto=format&n=j-a8Y0pMh6mLkP46&q=85&s=36ef04770f75351c8f8bcc0f89824d41" alt="Install GitLab app option in Plerion" width="1912" height="409" data-path="images/integrations/gitlab/install-gitlab-app.png" />
    </Frame>
  </Step>

  <Step title="After installation, you will be redirected to the Plerion platform">
    <Frame>
      <img src="https://mintcdn.com/pleriondocs/j-a8Y0pMh6mLkP46/images/integrations/gitlab/integration-page.png?fit=max&auto=format&n=j-a8Y0pMh6mLkP46&q=85&s=23db8c7c52ab2b935e63467287d1ccb8" alt="Plerion integration page showing GitLab connected" width="2256" height="1410" data-path="images/integrations/gitlab/integration-page.png" />
    </Frame>
  </Step>
</Steps>

## Configuring your GitLab integration

Once installed, you can configure the GitLab integration to match your workflows. These settings control which namespaces are scanned, when and how scans run, how issues are handled, and what rules apply.

### Integration status

Controls whether Plerion Code Security is active.

* **Default**: Enabled
* **When disabled**: Pauses all scanning activities, including scheduled and merge request scans
* **Recommendation**: Keep enabled unless there is a specific need to pause

<Frame>
  <img src="https://mintcdn.com/pleriondocs/j-a8Y0pMh6mLkP46/images/integrations/gitlab/integration-status.png?fit=max&auto=format&n=j-a8Y0pMh6mLkP46&q=85&s=13572a9300da5db4ff082b78c75c9709" alt="Integration status toggle in Plerion for GitLab" width="1180" height="151" data-path="images/integrations/gitlab/integration-status.png" />
</Frame>

### Scheduled scans

Runs automatic daily scans of your main branches.

* **Default**: Enabled
* **Purpose**: Continuous monitoring of production-ready code
* **Key points**:
  * Runs without manual input
  * Identifies risks in stable branches
  * Helps with long-term security posture

<Frame>
  <img src="https://mintcdn.com/pleriondocs/j-a8Y0pMh6mLkP46/images/integrations/gitlab/scheduled-scans.png?fit=max&auto=format&n=j-a8Y0pMh6mLkP46&q=85&s=78cdeff9089a30effe1626c267543586" alt="Scheduled scans configuration in Plerion for GitLab" width="791" height="102" data-path="images/integrations/gitlab/scheduled-scans.png" />
</Frame>

### Merge request scanning

Scans code in new and updated merge requests.

* **Default**: Enabled
* **What it does**:
  * Scans only changes introduced in the merge request
  * Posts findings as comments directly in GitLab
  * Integrates with GitLab status checks to block insecure merges
* **Supported file types**: YAML, Terraform, JSON, and other IaC files
* **Why it matters**: Prevents vulnerabilities from being merged, encourages secure development practices, and builds developer awareness

<Frame>
  <img src="https://mintcdn.com/pleriondocs/j-a8Y0pMh6mLkP46/images/integrations/gitlab/merge-request-scanning.png?fit=max&auto=format&n=j-a8Y0pMh6mLkP46&q=85&s=5ff1332350c2d6d1609d0d33277207ea" alt="Merge request scanning configuration in Plerion for GitLab" width="1174" height="143" data-path="images/integrations/gitlab/merge-request-scanning.png" />
</Frame>

### Tolerance for blocking merge requests

Controls when merge requests are blocked based on severity.

* **Default**: Do not block merge requests
* **Options**:
  * Only block for critical findings
  * Block for high and critical findings
  * Block for medium and above findings
  * Block for any finding
  * Do not block merge requests
* **Best use**: Choose based on your team’s security posture, development velocity, and compliance requirements

<Frame>
  <img src="https://mintcdn.com/pleriondocs/j-a8Y0pMh6mLkP46/images/integrations/gitlab/tolerance-configuration.png?fit=max&auto=format&n=j-a8Y0pMh6mLkP46&q=85&s=31d8e437b5b8ff56f43219030565dd0f" alt="Tolerance configuration options in Plerion for GitLab" width="1173" height="167" data-path="images/integrations/gitlab/tolerance-configuration.png" />
</Frame>

### Profile

Defines which detection rules are used during scans.

* **Default**: Organization’s default profile
* **Options**: Use an existing profile or create a new one
* **Where to manage**: Detection Settings in Plerion
* **Best use**: Align profiles with coding standards, risk appetite, and compliance needs

<Frame>
  <img src="https://mintcdn.com/pleriondocs/j-a8Y0pMh6mLkP46/images/integrations/gitlab/profile.png?fit=max&auto=format&n=j-a8Y0pMh6mLkP46&q=85&s=6f34df7d6afa1b54b3f85bcaac28e339" alt="Profile selection in Plerion GitLab integration" width="726" height="100" data-path="images/integrations/gitlab/profile.png" />
</Frame>

## Best practices

* Keep the integration enabled for continuous coverage
* Use scheduled scans to monitor long-term branches
* Enable merge request scanning to prevent insecure code from merging
* Set merge request blocking tolerance based on your risk tolerance
* Select a detection profile that matches your organization’s security requirements
