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
If a private or brokered package registry integration is not configured first, the steps below will not work — the registry settings field will not be visible on the page.
First, set up the Artifactory integration: go to Organization Settings > Add Integration > Artifactory > Edit Settings.
Then, on the Settings > Languages > Go page:
In the relevant box, Private package registries or Brokered package registries, select Artifactory as the registry type.
In the Registry URL field, enter the full URL of your Artifactory Go remote or virtual repository, using the Artifactory Go API path.
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:
Make sure no credentials are present in the URL — provide only the path to the Go repository. Artifactory's Set Me Up dialog returns URLs with username:password@ embedded in the host; you must remove that portion before pasting the URL. Snyk retrieves credentials from your Artifactory 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?

