Split Your Monorepo Per Path

circle-exclamation
circle-info

This functionality is only available for GitLab (Cloud/On-Prem) and Azure DevOps (Git/TFVC).

circle-info

For TFVC repos, make sure to first set the specific branch you want to scan on the repo page (the default is 'All Branches')

Aikido allows you to split up your large repositories / monorepositories per path, improving the overall management of your security issues.

Use Case

  • Giant repos often take a lot of time to scan or can time out. This can improve scanning speed.

  • Not: If you are looking for a clearer overview within Aikido by dividing large repositories into smaller, more manageable parts. In this case, we recommend using this alternative.

Prerequisites

  • Only available for Pro Plans. Contact Aikido in order to enable this functionality.

  • You are using GitLab or Azure DevOps.

  • Supports SCA, SAST, and IaC scans only. Secret scanning is not available for split repositories.

How to split up your repositories

Step 1: Go to the repository detail page and add /split to the end of its URL in the browser's address bar (e.g., https://app.aikido.dev/repositories/330080/split). This will direct you to the page allowing you to split your repository.

Interface for defining split points to divide a repository into subdirectories.

Step 2: Enter the split points. These are the paths within your repository that you wish to separate. Input all the paths you want to see as individual entities. ​ ​

Repository split points defined as: bad_sast_findings, secrets, and autofix.

Step 3: Select Split repo. This action deactivates the original repository configuration and divides it into smaller repositories for scanning. You can view all these in the repository overviewarrow-up-right. All specified paths will be shown with a tag next to the original repo name.

Repository dashboard displaying security scan results and severity for three active repositories.

Step 4. Assign different subpaths to different teams. More information on how to set up teams and assign responsibilities can be found herearrow-up-right.

Notes: You can add new paths at a later stage. You can do this by going again to the base repo from where it was split. Do not add the already existing paths, new ones are sufficient.


Last updated

Was this helpful?