Skip to main content

Gitlab

GitLab is a comprehensive DevOps platform and web-based Git repository manager that provides source code management (SCM), continuous integration/continuous deployment (CI/CD), and collaborative software development capabilities. It serves as a complete solution for the entire software development lifecycle, from project planning and source code management to CI/CD, monitoring, and security.

CategorySource control & CI/CD
DirectionQuery source
Sign-inAccess Token
Query languagesSQLite
Websitegitlab.com

Before you start​

Huntbase signs in to Gitlab with Access Token. Create the credential in Gitlab first, then keep it to hand for the Connect step.

  1. In GitLab, select your avatar in the upper-right corner and select Edit profile.
  2. In the left sidebar, select Access › Personal access tokens.
  3. From the Generate token dropdown list, select Legacy token.
  4. Enter a Token name and an Expiration date, and select the read_api scope.
  5. Select Generate token and copy the token. You can't view it again after you leave or refresh the page.

Permissions:

  • read_api
Watch out for
  • The api scope grants full read and write access. read_api is enough for querying.

For the vendor's own instructions, see GitLab personal access token documentation.

tip

Use a dedicated, read-only credential for Huntbase where the product allows it. Huntbase only needs to read.

Connect Gitlab​

  1. Go to Connections and click New connection, or click New connection on the Gitlab product page.
  2. On Product, pick Gitlab and choose the Owner.
  3. On Details, give the connection a Name and, optionally, a Description.
  4. On Connect, fill in the settings and credentials described below.
  5. On Verify, review the summary and click Create & check.

For everything else on the setup page — saving a draft, I'll do this later, and what each check result means — see Connections.

Settings​

Where your Gitlab lives:

FieldRequiredNotes
Base URLNoOnly for self-managed GitLab. Use your instance's API URL, including /api/v4, such as https://gitlab.company.com/api/v4. Leave blank for GitLab.com.

Credentials​

The only Method is Access Token. Enter a Credential label (for example Production), then fill in:

FieldRequiredNotes
Access TokenYesSecret — not shown again after you save it.

Query it​

Once connected, Gitlab can serve these languages in a query tab, and Scout can use it when you ask in Auto:

LanguageUse it for
SQLiteSQL across this source and every other connected source.

Next steps​