> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/~/revisions/KY3QqEqZPV6ifxqjwoLa/aikido-autofix/connect-private-packages/go-private-packages.md).

# Go - Private Packages

Aikido's autofix can be configured to support repositories which use private go packages hosted on GitHub or GitLab. To enable it, follow the steps below.

1. Navigate to the [autofix settings](https://app.aikido.dev/issues/fix/settings) page and click on "Manage Private Registry Connection"
2. Select "Go" from the tabs

   <img src="https://3149773201-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-81769eaa51a9ee72ce31450b0d4d23571806b1ec%2Fgo-private-packages_2bc3b924-dfd8-47ab-9d81-b69f9e5753c5.png?alt=media" alt="Connect to a private registry by entering host and token for dependency scanning." width="563">
3. Enter the private registry host, this is the hostname with the path to the repo where the package is being hosted. Aikido will expose this as the `GOPRIVATE` env variable during the update process.
   1. eg for GitHub: `github.com/[ORG]/[REPO]`
   2. eg for Gitlab: `gitlab.com/[ORG]/[REPO]`

      Since Aikido uses this value to set the `GOPRIVATE` environment variable, this can also be a list of comma-separated glob patterns of module path prefixes that should be considered private.
4. Next create a personal access token in either GitHub or Gitlab with read-only access for that repository and it to the token field
5. Click on "Apply Changes"


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.aikido.dev/~/revisions/KY3QqEqZPV6ifxqjwoLa/aikido-autofix/connect-private-packages/go-private-packages.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
