> 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.md).

# GitHub Enterprise（Cloud & Server）を接続する

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="warning" %}
アプリをインストールするのに十分な権限がGitHub Serverの組織にあることを確認してください。これは通常、組織の管理者とオーナーのみが実行できます。
{% endhint %}

### インストール

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

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

まだAikidoアカウントをお持ちでない場合は、まずGoogleまたはMicrosoft経由で作成してください。GitHub Enterprise Serverを接続する前に必要です。

を開き、 [オンボーディングページ](https://app.aikido.dev/onboarding/self-managed/select-onboarding-type) で「GitHub Server」を選択すると、インストールページに移動します。GitHub EnterpriseのURLを入力し、 `次へ、アプリをインストール`.

{% hint style="warning" %}
GitHub Enterprise Serverがインターネットから到達できない場合は、Broker設定を有効にしてください。

Aikido Brokerの仕組みの詳細については、 [ドキュメントをご覧ください。](/docs/docs-ja/miscellaneous-info/aikido-broker-for-internal-applications.md)
{% endhint %}

<figure><img src="/files/74273c939800580120ffc013d92a7d6a168c6a0a" alt=""><figcaption></figcaption></figure>
{% endstep %}

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

という名前のファイルが `install.html` お使いのマシンにダウンロードされます。これには、JSONペイロードをGitHub Enterpriseに送信して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アプリを承認**

次に、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 %}

#### GitHub Enterprise Appの管理

{% content-ref url="/pages/5db00363022dec75ac314cb68a6f9f2fa56e5ac4" %}
[追加のOrganizationをAikidoに接続する](/docs/docs-ja/kdosukyan/connect-your-source-code/connect-github-enterprise/connect-additional-organizations-to-aikido.md)
{% endcontent-ref %}

{% content-ref url="/pages/f34d9ca2a364c151de4b4403cc584a002ea64527" %}
[GitHub Enterprise（Cloud & Server）でAikidoアプリの所有権を移管する](/docs/docs-ja/kdosukyan/connect-your-source-code/connect-github-enterprise/transferring-ownership-of-the-aikido-app-in-github-enterprise.md)
{% endcontent-ref %}


---

# 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.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.
