> ## 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、GitLab、Azure DevOps を接続して、Enclave がリポジトリを学習できるようにします。

Enclave は、ソース管理のインテグレーションを通じてコードを読み取ります。リポジトリは組織全体で接続され、Enclave は接続されたリポジトリからすぐに学習を始めます。

> [!TIP]
>
> Enclave を初めて使う場合は、 [Getting started チャット](https://docs.enclave.ai/ja/onboarding/getting-started.md) がこの手順を案内します。

## プロバイダーを接続する

**Settings → Integrations** を開き、プロバイダーの横にある **Connect** をクリックして、サインイン手順に従います。同期が進むと、リポジトリが **Coverage → Repositories** に表示されます。

![各プロバイダーの Connect ボタンが表示された Integrations 設定ページ](https://mintcdn.com/enclave/bhnFMg4ldiTYrwZX/images/product/integrations.png?fit=max\&auto=format\&n=bhnFMg4ldiTYrwZX\&q=85\&s=1f03b4437b5eab1be958198de9c938b8)

| プロバイダー | 接続方法 | Enclave が読み取るリポジトリ |
| - | - | - |
| [GitHub](https://docs.enclave.ai/ja/integrations/github.md) | Enclave GitHub App をインストールします | アプリにアクセスを許可したリポジトリ |
| [GitLab](https://docs.enclave.ai/ja/integrations/gitlab.md) | OAuth、またはセルフホスト型 GitLab の場合はアクセストークン | アカウントまたはトークンがアクセスできるプロジェクト |
| [Azure DevOps](https://docs.enclave.ai/ja/integrations/azure-devops.md) | Microsoft Entra ID、または個人用アクセストークン | 接続した組織内のすべてのリポジトリ |

Enclave で **Owner** または **Admin** ロールが必要です。また、プロバイダー側の権限も必要です。たとえば、アプリをインストールするには GitHub の組織オーナーである必要があります。必要な権限は各プロバイダーのガイドに記載されています。

## 接続後の動作

* **学習。** Enclave は各リポジトリのコンポーネントとアタックサーフェスをマッピングします。 [リポジトリ学習](https://docs.enclave.ai/ja/workflows/built-in.md#リポジトリ学習) を参照してください。
* **最新状態の維持。** 新しいコミットがデフォルトブランチに入ると、Enclave はマップを更新します。
* **PR レビュー。** Enclave は GitHub と GitLab の新しいプルリクエストをレビューします。 [PR と依存関係の分析](https://docs.enclave.ai/ja/risk/pr-analysis.md) を参照してください。

多数のリポジトリを一度に接続した場合、Enclave は数件ずつ順に処理します。

## リポジトリを削除する

**Coverage → Repositories** を開き、対象の行のメニューを開いて **Delete repository** をクリックします。Enclave はそのリポジトリの分析を停止します。Enclave のアクセス自体を取り消すには、プロバイダー側でもリポジトリを削除してください。


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