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

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

Aikido が private パッケージを含む依存関係を更新するには、正確な lockfile 更新を生成できるように、プライベートレジストリへのアクセスが必要です。Composer レジストリは、次を指定することで設定できます： `auth.json` ファイル。

## 前提条件 <a href="#prerequisites" id="prerequisites"></a>

**auth.json を準備する**

プライベートな Composer パッケージでは、Aikido は `auth.json` プライベートレジストリへの認証にこのファイルを使用します。このファイルは AutoFix の開始前にリポジトリのルートにある auth.json を上書きしますが、Pull Request の一部としては追加されません。このファイルでは複数のプライベートレジストリを設定できます。

例 `auth.json` GitHub の Composer レジストリ上のプライベートパッケージにアクセスするための：

```
{
    "github-oauth": {
        "github.com": "<your-github-token>"
    }
}
```

〜のその他の設定オプション `auth.json` は次で見つけられます [こちら](https://getcomposer.org/doc/articles/authentication-for-private-packages.md).

## Aikido での構成 <a href="#configuration-in-aikido" id="configuration-in-aikido"></a>

リポジトリへの書き込みアクセスが設定されたら、以下の手順に従って Aikido がプライベート Composer レジストリで認証するよう構成できます：

1. Aikido の Autofix のアカウント設定ページに移動し、 [こちら](https://app.aikido.dev/issues/fix/settings).
2. 「*レジストリを接続*、以下のモーダルが表示されます

<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. パッケージマネージャーとして「Composer」を選択します

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

4. auth.json に認証情報を入力してください。Aikido は設定ファイルを、使用される直前まで安全に暗号化します。
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 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/composer-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.
