Skip to main content

Integrating Invicti Standard with GitLab

This document is for:
Invicti Standard

GitLab is a web-based application that covers the entire DevOps lifecycle from idea to production. It provides a Git-repository manager providing wiki, issue-tracking and CI/CD pipeline features.

This topic explains how to configure Invicti Standard to send a detected vulnerability to GitLab, enabling seamless integration with your DevOps workflow for efficient vulnerability issue tracking and remediation management throughout the development lifecycle.

GitLab Fields

The following table lists and explains the GitLab fields available in the Send To Actions configuration:

Button/Section/FieldDescription
AddClick to add an integration.
DeleteClick to delete the integration and clear all fields.
Configure Send ToClick to configure the integration using the Settings Wizard instead of doing it manually.
Create Sample IssueOnce all relevant fields have been configured, click to create a sample issue.
ActionThis section contains general fields about the Send to Action.
Display NameThis is the name of the configuration that will be shown on menus.
MandatoryThis section contains fields that must be completed.
Access TokenThis is the personalized access token of the user.
Project IDThis is the project identifier in which to create an issue.
VulnerabilityThis section contains fields with vulnerability details.
Body TemplateThis is the template file that is used to create description fields.
Title FormatThis is the string format that is used to create the vulnerability title.
OptionalThis section contains optional fields.
On-Premise Base URLThis is the issue that can be sent to on-premises with your base URL.
Assignee IDThis is the assignee identifier.
Milestone IDThis is the issue milestone ID.
WeightThis is the value of the weight.
Due DaysThis is the number of days from the date the issue was created to the date it's due.
LabelsThese are the issue labels.

How to Integrate Invicti Standard with GitLab

Follow these steps to configure GitLab integration for automated vulnerability issue creation:

  1. Open Invicti Standard
  2. From the Home tab on the ribbon, click Options. The Options dialog is displayed
  3. Click Send To Actions
Invicti Standard Options dialog showing Send To Actions menu for GitLab configuration
  1. From the Add dropdown, select GitLab. The GitLab fields are displayed
Add dropdown menu showing GitLab option selection for integration setup
  1. The Display Name field is already populated

  2. In the Mandatory section, complete the connection details:

    • Access Token
    • Project ID
  3. In the Vulnerability section you can change the Body Template and Title Format

Template Location

Body templates are stored in %userprofile%\Documents\Invicti\Resources\Send To Templates. If you use your own custom templates, store them in this location.

  1. In the Optional section you can specify:

    • On-Premise Base URL
    • Assignee ID
    • Milestone ID
    • Weight
    • Due Days
    • Labels
  2. Click Create Sample Issue to confirm that Invicti Standard can connect to the configured system. The Send To Action Test dialog is displayed

Create Sample Issue button and test dialog for GitLab connection verification
  1. In the Send To Action Test dialog, click the Issue number link to open the GitLab issue in the default browser
Successfully created sample issue in GitLab project showing issue details and tracking

How to Integrate Invicti Standard with GitLab Using the Wizard

Instead of configuring the settings manually, the configuration wizard can help you with the settings:

  1. Open Invicti Standard
  2. From the Home tab on the ribbon, click Options. The Options dialog is displayed
  3. Click Send To Actions
  4. From the Add dropdown, select GitLab. The GitLab fields are displayed
  5. Click Configure Send To to launch the wizard. The Send To Configuration Dialog is displayed
Configure Send To wizard launch button for guided GitLab integration setup
  1. Click Next. The Authentication step is displayed
GitLab wizard authentication step showing URL and API access key configuration
  1. Complete the URL and API Access Key fields, and click Test Credentials. (If the Gitlab installation with which Invicti is integrated is not an on-premises installation, leave the On-Premise Base URL input empty.)

  2. When the confirmation message, Your credentials are confirmed, is displayed, click Next. The Project step is displayed.

GitLab wizard authentication step showing URL and API access key configuration
  1. Select a project, and click Next. The Assignee step is displayed
GitLab wizard project selection step showing available projects for integration
  1. After selecting Issue Type please click to Next. The Milestone step is displayed.
GitLab wizard project selection step showing available projects for integration
  1. After selecting Reporter, please click Next for next step: Labels
GitLab wizard assignee and milestone configuration steps
  1. If required, complete Other Fields, and click Next. The Summary step is displayed
  2. Review your settings, and click Finish. The Settings are applied automatically. You are returned to the Send To Actions fields
GitLab configuration wizard summary showing all configured settings before completion
  1. Click OK
  2. Click Create Sample Issue to confirm that Invicti Standard can connect to the configured system. A Send To Action Test confirmation dialog is displayed
  3. In the Send To Action Test dialog, click the Issue number link to open the issue in GitLab in the default browser
GitLab wizard integration test completion with successful sample issue creation

How to Export Reported Vulnerabilities to Projects in GitLab

After configuring the GitLab integration, follow these steps to export specific vulnerabilities:

Prerequisites

Please ensure that you have first configured GitLab integration (see How to Integrate Invicti Standard with GitLab).

  1. Open Invicti Standard
  2. From the ribbon, select the File tab. Local Scans are displayed. Double-click the relevant scan to display its results
  3. In the Issues panel, right click the vulnerability you want to export to GitLab and select Send to GitLab. (Alternatively, from the ribbon, click the Vulnerability tab, then Send to GitLab.) A confirmation message and link is displayed at the bottom of the screen
Vulnerability export process showing Send to GitLab option in Issues panel context menu
  1. Click the GitLab Send to Action is executed for the selected vulnerability link to view the newly-created issue in GitLab
  2. The vulnerability is automatically exported to GitLab. You can view it in the GitLab Issues tab
Successfully exported vulnerability displayed in GitLab Issues tab with security details

Need help?

Invicti Support team is ready to provide you with technical help. Go to Help Center

Was this page useful?