GitLab Free: MR Scans Setup

Publish MR scan results and comments for issues from Aikido. No pipeline code needed.

circle-exclamation

Set up GitLab MR scanning

1

Create a dedicated GitLab user

Create a dedicated user like AikidoSecurity[YourCompany]. Use it only for Aikido.

For easy recognition, use the Aikido logoarrow-up-right as the profile picture.

2

Create a Personal Access Token

Log in as the new user.

Go to PreferencesPersonal access tokensarrow-up-right.

Add a new token:

  • Name: for example Aikido Scans

  • Expiration date: Set an expiry date that matches your rotation policy

  • Scopes: api

3

Save the token

Copy the token now. GitLab won’t show it again.

You’ll paste it into Aikido in step 6.

4

Invite your Aikido user to your group

Log back in with your own GitLab account.

Go to Groupsarrow-up-right.

For each group you want to enable, open the group.

Go to ManageMembersInvite members.

Invite the dedicated Aikido user.

Give it at least Maintainer access.

5

Enable the integration

In Aikido, open the Integrationsarrow-up-right page. Then select GitLab CI under MR Quality Gating.

6

Paste the Personal Access Token

Paste the token you created in step 3.

Click Update token.

Aikido validates group access and required permissions.

7

Configure your first repository

After authorization, Aikido opens the GitLab MR Checksarrow-up-right page.

Start with one repository first. Confirm everything works before rolling out broadly.

8

Verify with a new MR

Open a new merge request (MR) in the repo you configured.

Then confirm the checks run in the Pipelines tab.

Comments should appear as the dedicated user. For example, @AikidoSecurity[YourCompany].

9

Require the scan to succeed

If you want to block merging until the scan succeeds, configure merge checks in GitLab.

In GitLab, go to [Repository]SettingsMerge Requests. Enable the check Pipelines must succeed.

10

Enable for all repositories

Once you’re happy with the results, go back to the GitLab MR Checksarrow-up-right page and enable checks for the rest of your repositories.

11

Set the default for new repositories

In the top-right, open Actions and select Set Default for New Repos and enable automatic configuration for newly added repositories in the future.

Need the UI walkthrough? See Default PR/MR gating configuration for new repositories.

Last updated

Was this helpful?