> 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/kdosukyan/connect-your-source-code/connect-github-enterprise/connect-github-enterprise-cloud-and-server-broker-set-up.md).

# GitHub Enterprise（Cloud & Server）を接続する（Broker セットアップ）

Aikido は〜と連携します [GitHub Enterprise Cloud](https://docs.github.com/en/get-started/onboarding/getting-started-with-github-enterprise-cloud) および [GitHub Enterprise Server](https://docs.github.com/en/enterprise-server@3.19/admin/overview/about-github-enterprise-server) 安全なアプリベースの接続を介して行います。これにより、Aikido は完全な制御を維持しながら、選択したリポジトリにアクセスできます。接続は、このガイドで扱うブローカーを通じても確立できます。

{% hint style="danger" %}
ワークスペースを設定する前に、以下の要件を注意深くお読みください：

1. **GitHub Organization の権限**：ワークスペースを設定するユーザーに、Aikido アプリケーションをインストールするのに十分な GitHub Organization の権限があることを確認してください。ほとんどの場合、Organization Owner または Organization Administrator の権限が必要です。
2. **一致するメールアドレス**：Google または Microsoft でサインアップする場合（以下の手順 1 を参照）、サインインに使用するメールアドレスがユーザーの GitHub アカウントに関連付けられているメールアドレスと一致していることを確認してください。
   {% endhint %}

### インストール

Aikido は、サーバー上に GitHub App を作成することで GitHub Enterprise 環境に接続します。このアプリには、Aikido が動作するために必要な権限とコールバックが含まれています。作成後は、Aikido にリンクしたい GitHub Server インスタンス上の任意の組織にインストールできます。\
\
インスタンス上に GitHub App を作成するには、以下の手順に従ってください。

{% stepper %}
{% step %}
**アカウントを作成**

GitHub Enterprise を接続するには、まず Google または Microsoft を使用して Aikido にサインアップするかログインします。On the [サインアップ画面](https://app.aikido.dev/login)に戻って **Google / Microsoft**.
{% endstep %}

{% step %}
**GitHub Enterprise のセットアップを開始**

認証されたら、GitHub セクションで「GitHub Server」をクリックして新しいワークスペースを作成します。

<figure><img src="/files/67110c01c646342dedc4bc0db0427c2bc04818fa" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Broker アクセスを有効にする**

有効にする **Aikido ブローカー** を、「高度な接続オプション」セクションのトグルをクリックして有効化します。

をクリック **次へ、アプリをインストール** そして次に [https://app.aikido.dev](https://app.aikido.dev/) そこで Local Scan のワークスペースが作成されます。

<figure><img src="/files/37a3d530e0ebf51c479cee1f16c52e8a007c9dbb" alt="Aikido onboarding: Enter GitHub Enterprise URL to authenticate"><figcaption><p>Aikido オンボーディング: 認証のため GitHub Enterprise の URL を入力</p></figcaption></figure>
{% endstep %}

{% step %}
**ブローカーを設定**

以下のガイドに従って、Local Scan のワークスペースを通じてブローカーを設定してください。デプロイしたら、ここに戻って GitHub Enterprise のセットアップを完了します。

{% content-ref url="/pages/57eb4d0e1ea0df52e494af68c47a0c2a1e884bc1" %}
[社内アプリケーション向け Aikido Broker](/docs/docs-ja/miscellaneous-info/aikido-broker-for-internal-applications.md)
{% endcontent-ref %}

<figure><img src="/files/8ea6fe6c177b09a2c642ccf660be11d6477e358c" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Aikido GitHub App を GitHub Enterprise にインストール**

ブローカーを作成し、環境にデプロイしたら、GitHub Enterprise のセットアップを完了できます。

まず、 **Broker URL**をコピーします。以下のような形式です:

```
https://55673-355dsfwea68cb.aikidobroker.com
```

その後、 **GitHub Server のセットアップを完了**.

<figure><img src="/files/10f91d8676658e15bf15760af73cb95914e9ee7b" alt=""><figcaption></figcaption></figure>

という名前のファイルが `install.html` あなたの端末にダウンロードされます。これには、GitHub Enterprise に JSON ペイロードを送信して GitHub App を作成するフォームを含む HTML ページが入っています。

ファイルをブラウザで開き、「インストール」を選択してセットアップを続行してください。

<figure><img src="/files/d2eb13c3278eb1d3d640a1797854b8e13a2f2a8c" alt="" width="375"><figcaption></figcaption></figure>

「インストール」をクリックすると、GitHub Enterprise 上のアプリのインストールを促すページにリダイレクトされます。次を選択してください。 `ユーザー用の GitHub App を作成` サーバー上にアプリを作成します。

<figure><img src="/files/7a70ccaeba425e7fb03cdc7f376c29e403f1c264" alt="" width="563"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Aikido GitHub App を認証**

次に、OAuth を通じて新しい GitHub App をユーザーアカウントで認証する必要があります。この手順で、アプリが正しく作成され、使用権限があることを確認します。表示される画面は、下の例に似ています。

<figure><img src="/files/bac89f2258b89f65a9f41dd427211c9f91e3ea7d" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**GitHub 組織に接続**

アプリケーションをインストールして Aikido にリンクしたい GitHub 組織を選択してください。後から組織を追加することもできます。組織を選択したら、GitHub App の認証を確認します。

<figure><img src="/files/91085b709d33f6ddfce85c396cce8885a42734b0" alt="" width="375"><figcaption></figcaption></figure>

これで Aikido に戻り、どのリポジトリをスキャンするかを選択できます。希望するリポジトリを選択して続行してください。Aikido が選択したアプリケーションのスキャンを開始します。
{% endstep %}

{% step %}
**Aikido を試す**

アクセスを許可し、スキャンしたいリポジトリを確認した後、ワークスペースは変換され、Aikido が自動的にスキャンを開始します。約 1 分後に、最初の結果が表示されるはずです
{% endstep %}
{% endstepper %}


---

# 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/kdosukyan/connect-your-source-code/connect-github-enterprise/connect-github-enterprise-cloud-and-server-broker-set-up.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.
