> ## Documentation Index
> Fetch the complete documentation index at: https://docs.enclave.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Enclave in these docs is the code and cloud security platform at enclave.ai. It is not Open Enclave, Intel SGX or other hardware enclaves, or enclave.gg.
> People use Enclave in the web app at https://app.enclave.ai or the desktop app. These docs describe no public Enclave API or CLI, so don't invent endpoints, commands, or config files.
> Connecting an integration needs a person to sign in and approve access in a browser. Tell the user the exact step to take instead of saying you completed it.

# GitHub

> GitHub リポジトリの読み取り、PR 分析の実行、検出結果の PR コメントへの投稿を Enclave に許可します。

GitHub を接続すると、Enclave はリポジトリを読み取り、プルリクエストをレビューし、検証済みの検出結果をコメントできます。GitHub.com で動作します。

## 始める前に

* Enclave で **Owner** または **Admin** ロールが必要です。
* GitHub では、アカウントにアプリをインストールできる必要があります。つまり、 **組織のオーナー** 、または選択するリポジトリの **リポジトリ管理者** である必要があります。

> [!WARNING]
>
> アプリをインストールできない場合、GitHub は代わりに組織のオーナーにリクエストを送信します。オーナーが Enclave GitHub App を承認するまで、Enclave には **Installation requires admin approval** と表示されます。

## GitHub を接続する

**1. インテグレーションを開く**

[app.enclave.ai](https://app.enclave.ai) で **Settings → Integrations** を開きます。 **GitHub** の横にある **Connect** をクリックします。

**2. Enclave GitHub App をインストールする**

**Connect a GitHub organization or account** をクリックします。GitHub にリダイレクトされるので、アカウントまたは組織に Enclave GitHub App をインストールします。 **All repositories** を選ぶか、特定のリポジトリを選択します。

> [!NOTE]
>
> アプリは、コード、プルリクエスト、Webhook イベントへの **読み取り** アクセスを要求します。Enclave がコミットをプッシュしたり、リポジトリのシークレットを読み取ったりすることはありません。

**3. 許可されたリポジトリを確認する**

Enclave に戻ると、 **Settings → Integrations → GitHub** の **Connected organizations** にアカウントが表示されます。アカウントをクリックして **Repositories** タブを開くと、Enclave が読み取れるリポジトリを確認できます。一覧を変更するには、 **Manage** をクリックして GitHub でインストール設定を編集します。

**4. PR レビューの対象リポジトリを選ぶ**

自動の PR レビューは、すべての GitHub リポジトリでデフォルトでオンです。リポジトリごとにオフにするには、 **Coverage → Repositories** でそのリポジトリの **PR Reviews** スイッチを使います。 [PR と依存関係の分析](https://docs.enclave.ai/ja/risk/pr-analysis.md) を参照してください。

## ヒント

* **組織全体にインストールします。** 後から作成したリポジトリも自動的に接続されます。
* **システム内のすべてのリポジトリを接続します。** Enclave がサービス間の問題を見つけられるのは、両方の側が見える場合だけです。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.