Skip to main content

Connect code repositories

The Core app in Vulkro Cloud scans your code repositories with the same analysis as the vulkro scanner, on the branches you track.

No token to create or paste: you sign in to the git host, allow Vulkro to read your repositories, and pick them from a list.

  1. Open Connect a Repository in the Core app and pick the host.
  2. On the App tab, click Connect with GitHub, Connect with GitLab, Connect with Bitbucket or Connect with Azure DevOps:
    • GitHub: install the Vulkro GitHub App on your account or an organization you own, and choose which repositories it may read. Vulkro holds no long-lived token: it asks GitHub for a short-lived token, narrowed to one repository, each time it needs one.
    • GitLab, Bitbucket: sign in and approve read access.
    • Azure DevOps: sign in with your work or school Microsoft account. Vulkro lists the repositories of every Azure DevOps organization the account belongs to.
  3. Back in Vulkro Cloud, the repositories the sign-in can reach are listed. Search them, tick the ones you want (or the box in the header for the whole page; picks are kept across pages and searches, up to 50 at a time), set an Environment and a Criticality, choose whether to scan now, and click Connect.

Each repository's default branch is tracked; add more branches on its Branches page. When several repositories are connected at once, Vulkro says for each one whether it connected, was already connected, or why it could not be (for example, your plan's repository limit).

For GitLab, Bitbucket and Azure DevOps, Vulkro also adds the repository's webhook (Azure DevOps: service hooks) through your sign-in, so scans on push and pull-request checks work without a webhook of your own. That needs the Maintainer role on GitLab, admin on the Bitbucket repository, or Project Administrator on Azure DevOps. If it cannot, the repository still connects and its Webhook section shows how to add it by hand.

A sign-in belongs to the member who made it: only they can list and connect repositories through it. Repositories already connected keep scanning. Renewal is automatic; when the git host stops accepting it (access was revoked, or the sign-in expired), the repository shows what to do and Sign In Again fixes it.

Azure DevOps notes​

  • Personal Microsoft accounts (outlook.com, hotmail.com) cannot sign in to Azure DevOps this way. Use an access token instead.
  • If your Microsoft Entra directory only lets administrators approve applications, the sign-in says so: ask your Entra administrator to approve Vulkro Cloud once.
  • An organization that turned off third-party application access is skipped in the list, and the list says which.

Self-managed GitLab​

Sign in to your own GitLab instead of pasting tokens (on plans that include self-hosted git):

  1. On your GitLab, open the Admin Area, then Applications (or a group's settings, then Applications), and add an application:
    • Name: Vulkro Cloud.
    • Redirect URI: the address shown on the Connect a Repository page (https://cloud-hooks.vulkro.com/git-apps/callback for a workspace, https://app.vulkro.com/cloud/git-apps/callback for Pro Cloud scans).
    • Confidential: on. Scopes: api and read_repository.
  2. In Vulkro Cloud, pick GitLab, then Add a Self-Managed GitLab, and paste your GitLab's address, the Application ID and the Secret. The secret is stored encrypted and never shown again.
  3. Click Sign In to your GitLab and pick repositories as above.

Your GitLab must be reachable over HTTPS on a public DNS name; GitLab installed under a sub-path is not supported for sign-in (use a token).

Connect with an access token​

The Access Token tab works for every host, including self-hosted servers and setups where signing in is not allowed. Create a token on the git host for that one repository (table below), paste it with the repository address, and click Check Access. Then pick branches, set a name, an Environment and a Criticality, and choose whether to scan now.

A public repository needs no token, but without one Vulkro Cloud cannot report on pull requests. Tokens are stored encrypted, per repository, and never shown again; replace one in the repository's settings.

What the token needs​

HostTokenTo scanFor pull-request checks
GitHubFine-grained personal access token, only select repositoriesContents: Read-onlyCommit statuses and Pull requests: Read and write
GitLabProject access tokenReporter, read_repository and read_apiDeveloper, api
BitbucketRepository access tokenRepositories: ReadPull requests: Write
Azure DevOpsPersonal access token for the repository's organizationCode: ReadCode: Status, and Code: Read & write
Other / Self-HostedRead-only token from your git serverRead contentsNot supported

Fix pull requests also need write access to contents (GitHub: Contents, Read and write; Azure DevOps: Code, Read & write, which the sign-in already has).

Hosts​

  • github.com, gitlab.com, bitbucket.org and dev.azure.com (also the older <organization>.visualstudio.com addresses).
  • Other / Self-Hosted (including self-hosted GitLab, Bitbucket Data Center and Azure DevOps Server), on Business and up. It must be reachable over HTTPS on a public DNS name. With a token, pull-request checks and scan on push do not work there; it scans on its schedule and on demand. A self-managed GitLab connected by signing in gets them.

Addresses must be https:// with no credentials in them. SSH and git:// are refused. How many repositories and branches you can connect depends on your plan.

What a repository shows​

AreaWhat it shows
API & AccessEndpoints, API Spec coverage, Access Matrix, Protocols
Data FlowData Flow, Data Lineage
DatabaseTables, Columns, Relationships (see Database schema)
Code graphStructure, Imports, Impact, Files
SecretsSecrets in the code and in git history
DependenciesDependencies, Vulnerabilities, Licences
Code HealthHotspots, Test Coverage, Rules
Attack PathsPaths from an entry point to a flaw

What Vulkro Cloud does with it​

  • Clones the branch read-only and shallow into a scan container, and deletes the clone when the scan ends.
  • Reads CODEOWNERS to set issue owners.
  • Writes back only what you turn on: statuses, comments and annotations on pull requests, and fix pull requests when you ask for one. Signing in also lets Vulkro add the repository's webhook, as described above.
  • Keeps sign-in tokens encrypted per workspace, never in a URL or a log, and deletes them when you remove the connection.

Next: Scans, branches and gates.