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

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.endorlabs.com/feedback

```json
{
  "path": "/setup-deployment/scm-integrations/gitlab-app/manage-gitlab-app/index",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# Manage GitLab App on Endor Labs

> Learn how to manage your GitLab App integration in Endor Labs.

You can make changes to the GitLab App integrations or delete them. You can view the activity logs for the GitLab App and rescan your GitLab projects on demand.

1. Sign in to Endor Labs and select **Integrations** from the left sidebar.
2. Click **Manage** next to **GitLab** under **Source Control Managers**.

   <img src="https://mintcdn.com/endorlabs-b4795f4f/-ooudT-Yh-sRP9TN/images/setup-deployment/scm-integrations/gitlab/gitlab-app-manage.webp?fit=max&auto=format&n=-ooudT-Yh-sRP9TN&q=85&s=0d17a2ebd4e4237c8561526fcf8b7891" alt="Manage GitLab App" width="2600" height="438" data-path="images/setup-deployment/scm-integrations/gitlab/gitlab-app-manage.webp" />
3. Click the three vertical dots next to the integration.

   You can choose from the following options:

   * [**Update Credentials**](#update-credentials)
   * [**Edit Integration**](#edit-gitlab-app-integration)
   * [**Delete Integration**](#delete-endor-labs-gitlab-app)
   * [**View Sync Log**](#view-sync-logs)

### Update Credentials

To update the GitLab App credentials:

1. Click the three vertical dots next to the integration, and select **Update Credentials**.
2. You can update your **Personal Access Token**.
3. Click **Save**.

<Note>
  You cannot update the GitLab organization URL. To monitor a different GitLab path, create a new installation.
</Note>

### Edit GitLab App integration

To edit the GitLab App integration:

1. Click the three vertical dots next to the integration, and select **Edit Integration**.

2. You can update the scanners.

   <img src="https://mintcdn.com/endorlabs-b4795f4f/-ooudT-Yh-sRP9TN/images/setup-deployment/scm-integrations/gitlab/gitlab-app-manage-edit.webp?fit=max&auto=format&n=-ooudT-Yh-sRP9TN&q=85&s=15d880de5291dcc095cbc0b3efd322d3" alt="Edit GitLab App integration" style={{ width: '70%' }} width="1012" height="1220" data-path="images/setup-deployment/scm-integrations/gitlab/gitlab-app-manage-edit.webp" />

3. Select **Merge Request Settings** to edit the MR scans configuration. See [GitLab App MR scans](/setup-deployment/scm-integrations/gitlab-app/gitlab-mr-scan) for more information.

   <Note>
     **Scope of the Personal Access Token**

     Replace the personal access token with the personal access token of a project developer (minimum) role with the `api` scope for MR scans.
   </Note>

4. Click **Start Scanning Repositories**. The changes are applicable from the next scanning cycle.

### Delete Endor Labs GitLab App

To delete a GitLab App integration, click the three vertical dots next to the integration, and select **Delete Integration**.

When you delete the integration, it will also delete all child namespaces, projects and references associated with the auto-generated root group namespace. It also deletes any manually created namespaces and projects under auto-generated namespace.

### View sync logs

Endor Labs detects and reports installation and synchronization errors during organization sync. These include expired tokens, insufficient permissions, invalid host configurations, and certificate issues. Sync logs report those errors that you can resolve.

<img src="https://mintcdn.com/endorlabs-b4795f4f/WValpCeFuCmyj4QD/images/setup-deployment/scm-integrations/scm-installation-error.webp?fit=max&auto=format&n=WValpCeFuCmyj4QD&q=85&s=96ff537be979f065c0c1c444527dce35" alt="Sync logs showing error" width="1500" height="340" data-path="images/setup-deployment/scm-integrations/scm-installation-error.webp" />

To view sync logs, click the three vertical dots next to the integration, and select **View Sync Logs**.

The sync logs display details of synchronization attempts, including timestamps, error types, and diagnostic messages. These logs help identify issues such as authentication failures or configuration problems.

#### Types of errors

The sync logs detect and display the following categories of sync failures:

* **Expired or invalid Personal Access Tokens (PATs)**: The PAT used for authentication has expired or is no longer valid. Edit the integration and provide a valid token.
* **Insufficient PAT permissions**: The PAT does not have the required scopes, such as repository read access. You must generate and provide a PAT with the correct access.
* **Certificate related access issues**: The certificates required to connect to the SCM are invalid, outdated, or untrusted. This error occurs in self-hosted GitLab instances that use custom SSL certificates. Update the certificate configuration or ensure the certificate chain is properly trusted to resolve the issue.
* **Incorrect or invalid host URLs**: The configured URL is incorrect or unreachable. Since you cannot edit the host URL, you need to delete and reinstall the integration using the correct URL.

After you resolve the issue, the error is automatically cleared during the next successful scan. You can manually re-trigger the scan using **Rescan Org** to verify the resolution immediately.

<img src="https://mintcdn.com/endorlabs-b4795f4f/-ooudT-Yh-sRP9TN/images/setup-deployment/scm-integrations/gitlab/sync-logs-gitlab.webp?fit=max&auto=format&n=-ooudT-Yh-sRP9TN&q=85&s=900069d831d8ec2d7589b91ab226b1d6" alt="sync logs" width="1480" height="716" data-path="images/setup-deployment/scm-integrations/gitlab/sync-logs-gitlab.webp" />

### Manually rescan GitLab projects

The GitLab App scans your repositories every 24 hours. Click **Rescan Org** to manually trigger a scan outside the 24-hour period.

### Add more GitLab projects to scan

Click **Scan More Repositories** to go to **Projects**, where you can add more projects to scan through the GitLab App.
