Proxy GitHub Enterprise with Go

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide
ft:sourceType
Paligo

Go Proxy Best Practice: Add Mirror Repository

We highly recommend that you create a remote repository pointing to the default go mirror (gocenter.io) and enter Artifactory as the Git provider. This way, Artifactory will be able to resolve cached public modules without querying the external registry, reducing the chance of rate limiting. For more information, see Set Up Go Proxy Mirror Repositories.

To create a remote repository that serves as a caching proxy for GitHub Enterprise, follow these steps:

  1. Create a new remote repository and set Go as the Package Type.

  2. Set the Repository Key value, and enter your local GitHub Enterprise URL in the URL field.

  3. Enter the user name and personal access token that provides authentication to GitHub Enterprise. For more information about creating a personal access token, see Generate a Personal Access Token in GitHub Enterprise.

    Go-proxy_GitHubEnterprise_blur.png
  4. In the Git Provider field, select GitHub Server as the Git provider.

  5. Click Save & Finish.