For the complete documentation index, see llms.txt. This page is also available as Markdown.

Nexus repository manager for Go

How to connect Snyk to a Nexus Repository Manager for Go

Feature availability

Package repository integrations are available only with Enterprise plans. Visit pricing plans for more details.

Snyk integrates with Nexus Repository Manager to resolve your private Go modules and transitive dependencies during Open Source (SCA) scans.

You can configure a Nexus Go module proxy from the Snyk web UI, by navigating to Settings > Languages > Go. Use one of two options, depending on how your Nexus instance is reachable. The configuration steps are identical for both options:

This configuration applies only to Snyk web UI (SCM) integrations. The Snyk CLI automatically uses your private Go proxy from your GOPROXY environment and .netrc credentials.

Configure a Nexus Go registry

Ensure you configure a private or brokered package registry integration first. Without it, the following steps do not work, and the registry settings field is not visible on the page.

First, set up the Nexus integration by navigating to Organization Settings > Add Integration > Nexus > Edit Settings.

Then, on the Settings > Languages > Go page, complete the following steps:

  1. In the Private package registries or Brokered package registries section, select Nexus as the registry type.

  2. n the Registry URL field, enter the full URL of your Nexus Go (golang) proxy repository.

  3. Save the integration.

Snyk authenticates to the registry with credentials from your Nexus integration. Do not enter credentials here.

Registry URL format

The URL must point to the Go proxy repository in Nexus. For a Nexus golang proxy repository, the URL format is:

Example:

Ensure the URL contains no credentials. Provide only the path to the Go repository. Some Nexus copy-URL helpers embed username:password@ in the host. Remove that portion before you paste the URL. Snyk retrieves credentials from your Nexus integration, not from this field.

This is the same base URL you set as GOPROXY when fetching modules locally. For example:

Last updated

Was this helpful?