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

Artifactory repository manager for Go

How to connect Snyk to an Artifactory repository manager for Go

Feature availability

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

Snyk integrates with JFrog Artifactory so it can resolve your private Go modules and transitive dependencies during Open Source (SCA) scans.

You configure an Artifactory Go module proxy from a single page (Settings > Languages > Go) using one of two boxes, depending on how your Artifactory instance is reachable. The configuration steps are identical for both:

  • Private package registries for an Artifactory instance that is publicly reachable and protected by credentials. Snyk connects to it directly. Prerequisite: configure your Artifactory integration first.

  • Brokered package registries for an Artifactory instance that is not publicly reachable. Prerequisite: configure the Snyk Universal Broker first and then enable it for Open Source.

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

Configure an Artifactory Go registry

First, set up the Artifactory integration: go to Organization Settings > Add Integration > Artifactory > Edit Settings.

Then, on the Settings > Languages > Go page:

  1. In the relevant box, Private package registries or Brokered package registries, select Artifactory as the registry type.

  2. In the Registry URL field, enter the full URL of your Artifactory Go remote or virtual repository, using the Artifactory Go API path.

  3. Save the integration.

Snyk authenticates to the registry using the credentials stored in your Artifactory integration and you should not enter credentials here.

Registry URL format

The URL must point at the Go API endpoint for the repository. For an Artifactory Go repository, the URL has the form:

Example:

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

Last updated

Was this helpful?