Skip to main content

GitLab integration

Keep your development team in the loop by creating GitLab issues for any new security weaknesses

Written by Naomi Purvis

šŸŽ« Plan Availability

The GitLab integration supports two features with different plan requirements:

  • Exporting issues to GitLab: Available on Cloud, Pro, and Enterprise plans.
    ​

  • Connecting repositories for AI Pentesting: Available on all plans (AI Full Pentests are purchased per engagement by users with the Admin role).

Overview

GitLab is a popular DevOps platform that helps teams unify their workflows. This integration supports both GitLab.com and self-hosted instances, and allows you to export issues detected by Intruder directly into GitLab, keeping everything your team needs in one place


Connect to GitLab

ā„¹ļø Note:

  • If your GitLab instance is self-hosted, you may need to allowlist our IPs for the integration to work properly.

  1. To connect Intruder to your GitLab account, first create a Personal Access Token in GitLab. This token requires the api scope. You can do this by navigating to Preferences > Access Tokens and checking the 'api' checkbox

  2. With your token ready, head to Settings > Integrations in the Intruder portal and press the Add button under GitLab:

  3. Enter your token in the window that appears. If you're using self-hosted GitLab, enter the domain of your GitLab instance in the Host section, e.g. gitlab.example.com:

  4. Once you've added the API Token and pressed Connect, you can select a project to create issues in and choose if you want GitLab issues to be created automatically when Intruder discovers them.

    šŸ‘‡

  5. Click Send test issue, and you'll see a test issue appear in the project you selected.


Exporting issues to GitLab

Automatically

To automatically create GitLab issues, Head to Settings > Integrations > GitLab > Settings and select the severity filter for the issues you want to export to GitLab:

Manually

To manually export an issue to GitLab, go to the Current Issues page, click an issue, click the Actions button, and then Send to GitLab:


Using GitLab as an AI Pentest source

If you've already set up the GitLab integration, you can use the same connection to give Intruder's autonomous AI agents access to your code during an AI Penetration Testing engagement. If you haven't yet, you can connect it directly in the Source code step of pentest setup. Either way, you'll choose which repositories and branches to include there. Here are a few things to note:

  • What the agent reads: The agent reads the source code in the specific GitLab repositories and branches you select during setup. Reviewing your code alongside live testing lets the agent map each confirmed finding to the exact source file and line where it originates.
    ​

  • Read-only access: AI Pentesting accesses your repositories read-only. The agent can read your code during the test, but it cannot push changes or modify your repositories.
    ​

  • No human access: Nobody at Intruder reads your code or accesses a copy of your repository.
    ​

  • Deleted after completion: Your engagement data is deleted when the pentest completes. Intruder may retain limited source code excerpts for up to 30 days to improve the service, and your code is never used to train or fine-tune AI models.

For full setup steps, data handling details, and self-hosted GitLab allowlisting requirements, see AI Penetration Testing.


Troubleshooting

If you have any problems, ensure that your GitLab instance is accessible to the public Internet so that Intruder can communicate with it.

Did this answer your question?