> 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 の組織で十分な権限があることを確認してください。通常、これは organization の管理者と所有者のみが行えます。
{% endhint %}

### インストール

Aikido は、サーバー上に GitHub App を作成することで、あなたの GitHub Enterprise 環境に接続します。このアプリには、Aikido が動作するために必要な権限とコールバックが含まれています。作成後は、Aikido に連携したい GitHub Server インスタンス上の任意の organization にインストールできます。\
\
インスタンス上で 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` が、お使いの端末にダウンロードされます。これには、GitHub App を作成するために JSON ペイロードを GitHub Enterprise に送信するフォームを含む 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 を承認**

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

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

{% step %}
**GitHub organization を接続**

アプリケーションをインストールして Aikido にリンクしたい GitHub organization を選択してください。後から別の organization を追加することもできます。organization を選択したら、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" %}
[追加の組織を 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 App の所有権を移管する](/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.
