> 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/docs/docs-ja/autofix-to/connect-private-packages/go-private-packages.md).

# Go - プライベートパッケージ

Aikido がプライベートパッケージを含む依存関係を更新するには、正確な lockfile の更新を生成できるよう、プライベートリポジトリへのアクセスが必要です。以下の手順に従って、GitHub または GitLab でホストされているプライベート Go パッケージを設定してください。

1. に移動します [自動修正設定](https://app.aikido.dev/issues/fix/settings) ページに移動し、「*レジストリを接続*"
2. 選択して「*Go*」をパッケージマネージャーとして

<figure><img src="/files/93d539d9c2979772d40a2c418b778a2cd588532f" alt=""><figcaption></figcaption></figure>

3. 下のモーダルで、プライベートレジストリのホストを入力してください。これは、パッケージがホストされているリポジトリへのパスを含むホスト名です。Aikido はこれを次のように公開します。 `GOPRIVATE` 環境変数として更新プロセス中に。
4. 例: GitHub の場合: `github.com/[ORG]/[REPO]`
5. 例: GitLab の場合: `gitlab.com/[ORG]/[REPO]`

Aikido はこの値を次の設定に使用します。 `GOPRIVATE` 環境変数を設定するため、モジュールパス接頭辞のカンマ区切りの glob パターンのリストにできます。プライベートと見なすべきもの（例: `github.com/myorg/*` または `gitlab.com/myorg/repo1,gitlab.com/myorg/repo2`.

1. 次に、GitHub または GitLab でそのリポジトリに対する読み取り専用アクセス権を持つ個人アクセストークンを作成し、それを token フィールドに入力してください

<figure><img src="/files/15fbf3ae7c317e1f0d2223292e092d5c7fa47263" alt=""><figcaption></figcaption></figure>

5. ページ上部のヘッダーにあるタブで「*レジストリを接続*"


---

# 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/docs/docs-ja/autofix-to/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.
