> 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 組織の権限**: ワークスペースを設定するユーザーが、Aikido アプリケーションをインストールするのに十分な権限を GitHub 組織内で持っていることを確認してください。多くの場合、Organization Owner または Organization Administrator の権限が必要です。
2. **メールアドレスの一致**: Google または Microsoft でサインアップする場合（下の手順 1 を参照）、サインインに使用するメールアドレスがユーザーの GitHub アカウントに関連付けられているメールアドレスと一致していることを確認してください。&#x20;
   {% endhint %}

### インストール

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

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

GitHub Enterprise を接続するには、まず Google または Microsoft を使用して Aikido にサインアップまたはログインします。Aikido に [サインアップ画面](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 %}
**ブローカーアクセスを有効にする**

次を有効にします **Aikido ブローカー** を「詳細接続オプション」セクションのトグルをクリックして有効にします。

次をクリックします **次へ、App をインストール** その後、次に切り替えます [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 %}
**GitHub Enterprise に Aikido GitHub App をインストールする**

ブローカーを作成して環境にデプロイしたら、GitHub Enterprise の設定を完了できます。

まず、次をコピーします **ブローカー 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 ページが入っています。

ファイルをブラウザで開き、［Install］を選択して設定を続行します。

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

［Install］をクリックすると、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.
