Set up Ticketing and GitLab Issues
Connect Mondoo to GitLab Issues to create security remediation issues directly from the Mondoo App.
Connect a space to GitLab so team members can create GitLab issues for findings without leaving the Mondoo App. Mondoo files each issue with a GitLab personal access token you provide.
For an overview of ticketing, read Track and Fix Findings with Ticketing.
Before you begin
-
To add the integration, you need the Editor or Owner role, or another role with this permission. To create tickets, team members need the Editor or Owner role, or another role with permission to create tickets. To see every role, read Roles and permissions.
-
A GitLab account that's a member of the groups or projects where you want Mondoo to add issues and can create issues in them. Mondoo files every issue as this account, using a personal access token with the
apiscope. The next section shows how to create the token. -
If you self-host GitLab, an instance that's reachable from the internet. Mondoo connects to it from the Mondoo cloud and doesn't connect to private network addresses.
Create a personal access token to give Mondoo access to GitLab
A personal access token gives Mondoo the ability to access GitLab resources on your behalf. To enable this integration, you must create a personal access token.
-
Log into GitLab.
-
In the upper-left corner of any GitLab page, select your profile photo and then select Edit Profile.
-
In the left sidebar, select Access tokens.
-
Select the Add new token button.
-
In the Token name box, enter a name for the token, such as
mondoo-frontend-repo. -
Under Expiration date, specify the date on which to expire the token. (Be sure to note the expiration date so that, as it approaches, you can create a new one without interrupting the Mondoo-GitLab integration.)
-
Under Select scopes, check the api box.
-
Select the Create a personal access token button.
-
When GitLab finishes creating the token, it displays this message: "Your new personal access token has been created." Below the message, locate the Your new personal access token box. Use the copy icon to the right of the box to copy the token.
To learn more, read Create a personal access token in the GitLab documentation.
Add a GitLab integration
-
In the Mondoo App, navigate to the space where you want to set up ticketing and, in the side navigation bar, select Integrations.
-
Select INSTALL, then choose the Ticket Systems category.

-
Select GitLab Issues.

-
In the Choose an integration name box, enter a name for the integration. Make it a name that clearly shows this is a GitLab integration.
-
If you self-host GitLab, enter your custom GitLab URL under Provide your GitLab base URL (optional). This is the URL you use to access GitLab. If you use gitlab.com, leave the box empty.
-
Under Provide your personal access token, paste the token you copied from GitLab in the steps above.
-
Under Configure preferences, choose how the integration behaves:
- Automatically close issues is on by default for new integrations: closing a ticket in Mondoo also closes the corresponding GitLab issue.
- To create a GitLab issue for each drift ticket when an asset becomes more exposed to attack, turn on Create drift issues in this integration and enter the GitLab group and project where you want to create new issues, in the form
your-group/your-project. Drift tickets also require the space's Regression setting. To learn more, read Automatically create tickets on drift.
-
Select the CREATE INTEGRATION button.
Mondoo creates the integration and opens its page. To change these settings later, select the pencil icon (Edit integration) on that page.
Verify the integration
Mondoo doesn't contact your ticket system when you save the integration, so a mistyped URL, a wrong token, or a missing permission only shows up when Mondoo files its first ticket. Create one test ticket to confirm that the integration works:
-
In the side navigation bar, select Findings, then open any check or advisory. To learn more, read Create Tickets from Checks or Create Tickets from Advisories.
-
Select ACTIONS > Create ticket.
-
In Select Integration, choose the integration you just added, provide the fields it asks for, and select CREATE TICKET.
Mondoo confirms that the ticket is being created and that the external ticket will be ready shortly.
-
In the side navigation bar, select Ticketing and find the test ticket on the Open tab. As soon as Mondoo has filed it, the External Ticket column shows the issue or ticket it created (for an email integration, the recipient).
-
In your ticket system, confirm that the new issue or ticket exists and contains the finding details.
-
Close the test ticket in Mondoo. If the integration closes external tickets automatically, Mondoo closes the external one too. To learn more, read Close a ticket.
If the External Ticket column stays empty or the ticket's status is Error, read Troubleshoot below.
Troubleshoot
A failed ticket doesn't change the integration's status. If the test ticket's External Ticket column stays empty or its status is Error, check these causes:
| Cause | Fix |
|---|---|
| The personal access token expired or was revoked. | Create a new token, then select the pencil icon (Edit integration) on the integration's page and paste it under Personal access token (provide new to update). |
The token doesn't have the api scope. | Create a new token with the api scope and update the integration with it. |
| The GitLab Project Path in the Create Ticket dialog is wrong, or the GitLab account isn't a member of that project. | Create the ticket again with the path exactly as it appears in the project's URL, such as group/project, or add the account to the project. |
| Issues are turned off for the project. | In the project's settings on GitLab, turn on Issues, or create the ticket in another project. |
| Mondoo can't reach your self-hosted GitLab instance. | Make the instance reachable from the internet, and check the base URL you entered for the integration. |
After you fix the cause, create a new ticket for the finding and close the one that failed.
Next steps
Last updated on