Repository providers enable LGTM Enterprise to connect to a repository system and collect data. You manage repository providers from the
There are two types of repository provider:
Simple repository providers
(the subject of this help topic)—are Subversion or Git servers maintained by your organization.
External repository providers
(see Adding external repository providers)—are services that are external to LGTM Enterprise, which host Git or Team Foundation Version Control (TFVC) repositories—for example, GitHub.com, Azure DevOps, or a GitLab Enterprise instance.
For information about aspects of LGTM's integration with the simple repository providers, see Integration with Subversion or simple Git.
This topic assumes that the machines in the work pool are correctly configured. For more information, see Worker host configuration.
Defining a simple Git or Subversion repository provider
Integrationspage, click Add new repository provider to display the Add new repository provider page.
Select either Git or Subversion from the drop-down list.
Click Continue to display the definition page.
The Key value is a unique, alphabetic identifier. You can change this if you want to.
Change the default Display name, if required. This is the name of the repository host that is displayed in the user interface.
Define a Short name. This is used in the URLs for LGTM projects created to analyze repositories hosted by this repository provider. For example, '
- For Subversion only: Enter the credentials that LGTM workers should use to access Subversion repositories in the Username and Password fields.
Add one root URL and alias for each repository root you want to analyze. Click Add new to add a new row and define:
URL—root URL for the repository
If you're not sure of the repository root URL you can find it out from the command line as follows:
For Git: Change to a directory within the repository and enter:
git rev-parse --show-toplevel
For Subversion: Use the command
svn info <URL-of-a-resource-within-the-repo>. For example:
svn info https://subversion.example.com/repos/path/to/subdirectory/within/repository/
Alias—to use in LGTM project names
Choose a single word that will identify the repository that projects are stored in.
Aliases can contain the following ASCII characters: uppercase and lowercase letters, decimal digits, periods, hyphens, and underscores.
Select an Authorization provider to define the authorization level for projects created using this repository provider, either:
If you do not want standard users to be able to add projects to LGTM Enterprise, clear the check box labeled Allow adding projects through the frontend.
Click Add to save the new repository provider.
For Git, the credentials used to access the repository are managed on the LGTM worker hosts directly.
You can add projects to LGTM using this repository provider from the
This example uses Subversion, but the principles apply equally to Git.
Let's suppose you define a Subversion repository provider as follows:
- Display name:
- Short name:
- Root URL:
When you add a project from this repository provider, the name of the project in the administration interface is constructed as follows:
<repo provider short name>/<alias of repo root URL>/<remainder of project URL>
So, if you add a project with the URL:
the name of this project in the administration interface will be:
In the main interface—where users have no visibility of the defined repository providers—the repository provider short name is not included in the project name. So the name of this project is:
Project URLs in LGTM Enterprise
The URL for the Overview tab for a project in the main LGTM Enterprise interface comprises:
<domain of your LGTM instance>/projects/<repo provider short name>/<alias of repo root URL>/<URL encoded remainder of project URL>
So our example project might be available at: