> 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/pip-private-packages.md).

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

Aikido がプライベートパッケージを含む依存関係を更新できるようにするには、正確な requirements ファイルの更新を生成できるよう、プライベートパッケージへのアクセスが必要です。そのために、Aikido でプライベート Git リポジトリの設定を提供できます。

## プライベート PyPI レジストリ <a href="#same-scm-organization" id="same-scm-organization"></a>

以下の手順に従って、PIP の依存関係を更新する際に Aikido がプライベート PyPI レジストリで認証できるよう設定できます。

1. Aikido の autofixer のアカウント設定ページに移動し、 [こちら](https://app.aikido.dev/issues/fix/settings).
2. 「Connect Registry」をクリックすると、プライベート レジストリのモーダルが表示されます

<figure><img src="https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-9266e8da54be5ee4e49440d10a643bfa587a37ac%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

3. PIP を選択し、次の形式で、ユーザー名とパスワードを含む PyPI レジストリのインデックス URL を指定してください。

```
https://<username>:<password>@domain.com/repo
```

<figure><img src="https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-49bb08e3ebfb33c6e1d2ba7da696e54740995876%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

4. 「Connect Registry」をクリックして設定を保存します。

プライベートレジストリのホスト先が **GitHub**, **GitLab**, **BitBucket** または **Azure DevOps**の場合は、以下のセクションを参照してください。

## プライベート Git リポジトリ <a href="#configuration-in-aikido---private-rubygems-repository" id="configuration-in-aikido---private-rubygems-repository"></a>

### 同じ SCM 組織 <a href="#same-scm-organization" id="same-scm-organization"></a>

pip のプライベート Git リポジトリが、自動修正対象のコードと同じ組織にある場合は、 [AutoFix アクセストークン](https://app.aikido.dev/issues/fix/settings) がプライベート Git リポジトリにアクセスできることを確認してください。

### 異なる SCM 組織 <a href="#different-scm-organization" id="different-scm-organization"></a>

以下の手順に従って、依存関係を更新する際に Aikido がプライベートリポジトリで認証できるよう設定できます。

1. Aikido の autofixer のアカウント設定ページに移動し、 [こちら](https://app.aikido.dev/settings/integrations/autofix).
2. 「Connect Registry」をクリックすると、構成モーダルが表示されます

<figure><img src="https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-9266e8da54be5ee4e49440d10a643bfa587a37ac%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

3. 「環境変数」を選択

<figure><img src="https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-5ef774bba59a2111d8eca7387092882c8f70fff3%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

4. 上の例では、プライベート GitHub リポジトリの可能な設定を示しています。環境変数のキーは `PIP_GITHUB__COM`で、値はリポジトリへのアクセス権を持つ GitHub アクセストークンです。

| プロバイダー       | 環境変数キー                | 値の形式                |
| ------------ | --------------------- | ------------------- |
| GitHub       | `PIP_GITHUB__COM`     | `your-access-token` |
| GitLab       | `PIP_GITLAB__COM`     | `your-access-token` |
| Bitbucket    | `PIP_BITBUCKET__ORG`  | `your-access-token` |
| Azure DevOps | `PIP_DEV__AZURE__COM` | `your-access-token` |

5. 「Connect Registry」をクリックして設定を保存します。


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.aikido.dev/docs/docs-ja/autofix-to/connect-private-packages/pip-private-packages.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
