> 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="/files/93d539d9c2979772d40a2c418b778a2cd588532f" alt=""><figcaption></figcaption></figure>

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

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

<figure><img src="/files/190a4f9143016fd08d9a5b5e3e8073ea10f64e64" 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="/files/93d539d9c2979772d40a2c418b778a2cd588532f" alt=""><figcaption></figcaption></figure>

3. 「Environment Variables」を選択します

<figure><img src="/files/0e007f644d89fcf1bc958f7e4bf94ad66918773f" 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 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/pip-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.
