Productsup
Connector Setup

VCS config

Connect your connector to a Git repository so the Dev Portal can pull your code and build it.

6 min read

The Version Control configuration step connects your connector to a Git repository. The Dev Portal pulls your code from this repository when you trigger a build.

VCS configuration form

Fields

FieldRequiredDescription
Authorization typeYesHow the Dev Portal authenticates with your repository. See authorization types below.
Repository linkYesThe URL to your Git repository. Format depends on the authorization type — HTTPS for public and basic auth, SSH for deploy keys.
BranchNoThe branch to pull code from. Defaults to main if not set.
UsernameBasic auth onlyYour Git username or email. Required when using basic auth.
TokenBasic auth onlyA personal access token — on GitHub, a fine-grained token. Required when using basic auth. Stored securely in Vault — never returned in API responses.

Authorization types

Public repository

No credentials needed. Use this for public repositories that don't require authentication.

  • Repository link format: HTTPS — e.g. https://github.com/productsupcom/connector-quickstart

Basic auth

Authenticate with a username and personal access token. This is the quickest way to connect a private repository.

  • Repository link format: HTTPS — e.g. https://github.com/your-org/your-connector
  • Username: Your Git provider username or email
  • Token: A personal access token with read access to the repository

Create a GitHub token

On GitHub, use a fine-grained personal access token. It can be limited to the connector repository and to read-only access, which is all the Dev Portal needs.

  1. Go to your GitHub profile → Settings → Developer settings → Personal access tokens → Fine-grained tokens, or open github.com/settings/personal-access-tokens directly.
  2. Click Generate new token.
  3. Enter a token name and set an expiration date.
  4. Under Resource owner, select the account or organization that owns the connector repository.
  5. Under Repository access, select Only select repositories and choose the connector repository.
  6. Under Permissions, click Add permissions, select Contents, and set Access to Read-only. GitHub adds Metadata with read-only access automatically. GitHub fine-grained token permissions with Contents and Metadata set to read-only access
  7. Click Generate token and copy it. GitHub shows the token only once.
  8. In the Dev Portal, paste the token into Token and enter your GitHub username in Username.

If the resource owner is an organization, an organization owner may have to approve the token before it can access the repository. When the token expires, the build can't pull code — generate a new token and update it in the VCS config.

The token is stored securely and never shown in the UI after saving. If you need to update it, provide a new token — you can't retrieve the old one.

Deploy key

Authenticate with an SSH key pair. The Dev Portal generates the key pair automatically — you add the public key to your repository as a deploy key.

  • Repository link format: SSH — e.g. git@github.com:your-org/your-connector.git

When you select deploy key and save:

  1. The Dev Portal generates an SSH key pair
  2. The public key is displayed in the UI — copy it
  3. Add it as a deploy key in your Git provider (GitHub → Settings → Deploy keys, GitLab → Settings → Repository → Deploy keys, etc.)
  4. Grant read-only access — the Dev Portal only needs to pull code

Deploy keys are recommended for production connectors. They're scoped to a single repository and don't expire with a personal account, unlike personal access tokens.

Test connection

After saving your VCS config, click Test connection to verify the Dev Portal can reach your repository and find the configured branch. This checks:

  • The repository URL is reachable
  • The credentials are valid (for basic auth and deploy key)
  • The configured branch exists

If the test fails, check that:

  • The repository URL is correct and uses the right format (HTTPS vs SSH)
  • For basic auth: the username and token are valid and have read access
  • For deploy keys: the public key has been added to the repository
  • The branch name matches an existing branch in the repository

URL format reference

Authorization typeURL formatExample
PublicHTTPShttps://github.com/productsupcom/connector-quickstart
BasicHTTPShttps://github.com/your-org/your-connector
Deploy keySSHgit@github.com:your-org/your-connector.git

On this page

Still stuck?

Reach out to our support team and we’ll help you get unstuck.

Contact support