Private Registry Connections
AI Library Upgrade and related build-in-the-pod workflows resolve dependencies the same way your CI does. If your repositories pull private Maven, NuGet, or npm packages (for example from GitHub Packages, Artifactory, or Nexus), a Lineai administrator must register those registries once. Lineai then injects job-local credentials into discovery and ticket-implementation builds.
Without any connections, public packages still resolve; private coordinates are noted and skipped rather than failing the whole scan.
Who can configure this
Section titled “Who can configure this”Only users with the ADMIN role. Connections are installation-wide by default (every repository in the tenant can use them). Individual repositories can override or disable inherited connections from the repository’s Change Request / package-registry settings.
Where to open the form
Section titled “Where to open the form”- Sign in to Lineai as an administrator.
- Open System.
- Open Registry connections (or Add Connection on that card).
You can also add a connection from a repository’s package-registry overrides when you need a repo-scoped credential.
Field reference
Section titled “Field reference”| Field | Required | Meaning |
|---|---|---|
| Name | Yes | Unique label for this connection. If Server id is left blank, the name is also used as the Maven <server> id / NuGet source key. |
| Registry type | Yes | GitHub Packages, Artifactory, or Nexus. |
| Package format | Yes | Maven, NuGet, or npm. Use one connection per format (a registry that hosts Maven and NuGet needs two connections). |
| Base URL | Yes | Registry root URL used for the reachability test and, for NuGet/npm, as the feed URL. |
| Credential kind | Yes | How Lineai authenticates. See Credential kinds. |
| Username | Depends | Required for username/password feeds; usually left blank for GitHub App. For a PAT/token against GitHub Packages, use the GitHub username that owns the token. |
| Secret | Depends | Password, PAT, or identity token. Not shown for GitHub App (Lineai mints a short-lived installation token per job). Stored encrypted and never readable again after save. |
| Server id | Strongly recommended for Maven | Must match the <repository> / <server> id (or NuGet source key) your repositories already declare. Pattern: starts with a letter, then letters, digits, _, or -. |
| Repository path | Optional | Path segment for virtual repos (common on Nexus/Artifactory), for example /repository/maven-public/. Setting this declares “mirror” intent for Maven — leave blank for GitHub Packages unless you intentionally want that behavior. |
| Package organization | Required for GitHub App; recommended for GitHub Packages | GitHub org (or user) that owns the packages. Used to mint the app token and for npm @org scoping. |
Save connection stays disabled until Name, Registry type, Package format, and Base URL are filled (and a secret is present unless you chose GitHub App). Prefer Test before save first — the probe never persists the connection.
Credential kinds
Section titled “Credential kinds”| Kind | When to use |
|---|---|
| GitHub App | Preferred when the Lineai GitHub App is installed on the org that publishes the packages. No long-lived secret is stored; Lineai mints a packages:read installation token for Package organization at job time. |
| Token | PAT or registry identity token (GitHub classic/fine-grained PAT with read:packages, Artifactory/Nexus token, and so on). |
| Username + password | Traditional basic auth against Artifactory, Nexus, or similar. |
If Test before save reports that no GitHub App installation matches the package org, install or grant the Lineai GitHub App on that organization (with package read access) before using GitHub App credentials.
Examples: GitHub Packages
Section titled “Examples: GitHub Packages”Replace your-org with the GitHub organization that hosts the packages. Create separate connections for Maven and NuGet when you need both.
Maven + GitHub App
Section titled “Maven + GitHub App”| Field | Example |
|---|---|
| Name | Github (any unique label) |
| Registry type | GitHub Packages |
| Package format | Maven |
| Credential kind | GitHub App |
| Base URL | https://maven.pkg.github.com/your-org/* |
| Username | (leave blank) |
| Server id | github — must match the <id> on the <repository> entries in your pom.xml / settings (often github) |
| Repository path | (leave blank) |
| Package organization | your-org |
NuGet + GitHub App
Section titled “NuGet + GitHub App”| Field | Example |
|---|---|
| Name | Github-Nuget |
| Registry type | GitHub Packages |
| Package format | NuGet |
| Credential kind | GitHub App |
| Base URL | https://nuget.pkg.github.com/your-org/index.json |
| Username | (leave blank) |
| Server id | (optional) — if blank, Github-Nuget is used as the NuGet source key. Lineai’s generated nuget.config both registers the feed and attaches credentials under that key. |
| Repository path | (leave blank) |
| Package organization | your-org |
Token instead of GitHub App
Section titled “Token instead of GitHub App”Use the same URLs and server ids as above, but set Credential kind to Token, Username to the GitHub account that owns the PAT, and Secret to a PAT (or fine-grained token) with read:packages on that org. Rotate the secret from the connection’s row menu when the token expires.
Artifactory and Nexus
Section titled “Artifactory and Nexus”Use Registry type Artifactory or Nexus, the package format your builds use, and the base URL of the registry (for example https://artifactory.example.com/artifactory). Prefer Token or Username + password as your registry requires.
Set Server id to whatever your pom.xml / nuget.config already reference. Use Repository path only when you want Lineai to treat the connection as a virtual-repo mirror for Maven (or to emit a default npm registry= line)—credential-only connections without a path never redirect all Maven traffic through that feed.
Repository overrides
Section titled “Repository overrides”On a repository’s package-registry settings you can:
- Disable a specific install-wide connection by name for that repo
- Disable all inherited connections and supply repo-only connections
- Add a repo-scoped connection that replaces an install-wide one with the same Name
Install-wide connections remain the usual path for a shared private feed.
Rotating and removing credentials
Section titled “Rotating and removing credentials”- Rotate (not available for GitHub App): replace the stored secret. The next job picks up the new value; the old secret cannot be read back.
- Delete: removes the connection. The next job drops the injected registry config for that feed.
After you save
Section titled “After you save”Enabled connections are applied on the next discovery, ticket-implementation, or other build path that mounts registry config. You do not need to re-onboard repositories. If a private feed returns 401/403 with credentials injected, Lineai reports a registry authentication failure instead of silently skipping private packages.