> 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-gitlab-account-to-aikido.md).

# GitLabアカウントを接続する

Aikido は、プロジェクトを分析するために、GitLab グループへの読み取り専用アクセスを要求します。分析後、コードは常にシステムから消去されます。

***始める前に重要なこと***

* GitLab がファイアウォールの内側にある場合、 [静的 IP の一覧](https://help.aikido.dev/en/articles/8731261-allowing-ip-addresses-for-code-scanning) 許可リストに追加できます。
* アカウントを設定する人は、GitLab インスタンスへのアクセス権と **および** GitLab グループ。

{% hint style="info" %}
この操作では、ユーザーがサブグループの直接メンバーであることが重要です。継承されたメンバーシップはこの操作ではサポートされません。
{% endhint %}

{% hint style="warning" %}

* ワークスペースを設定するユーザーが、各 GitLab（サブ）グループの直接メンバーであることが重要です。継承されたメンバーシップだけでは不十分です。
* Aikido ワークスペースは、既定では 1 つの GitLab グループに対応します。すべてのサブグループを含む最上位の GitLab グループ（つまりルートグループ）に Aikido を接続することをおすすめします。それができず、複数のグループを同じ Aikido ワークスペースに接続する必要がある場合は、次の手順に従ってください [複数の最上位 GitLab グループを 1 つのワークスペースに接続する](https://help.aikido.dev/code-scanning/connect-your-source-code/connect-gitlab-account-to-aikido/connecting-multiple-top-level-gitlab-groups-to-a-single-workspace).
  {% endhint %}

{% hint style="success" %}
**グループにリンクされていないリポジトリ**、ただし、現在はユーザーのみに紐づいているものはスキャンできません。スキャンしたい個人リポジトリがある場合は、個人用グループを作成するか、所有しているグループに移管することをおすすめします。
{% endhint %}

#### ステップ 1. GitLab を使用してログイン <a href="#step-1-logging-in-using-gitlab" id="step-1-logging-in-using-gitlab"></a>

開始するには、次へ移動してください <https://app.aikido.dev> そして GitLab でログインします。表示は下のスクリーンショットのようになります。ここでは、Aikido は GitLab 上のあなたの本人情報と、関連付けられたメールアドレスへのアクセスのみを要求します。

![Aikido Security は、GitLab アカウントから個人情報を読み取るためのアクセスを要求します。](/files/dbac124302ae2330a2b28cbb7728f8ce00ee73ec)

#### ステップ 2. ワークスペースの作成、既存ワークスペースへの参加、またはデモの作成 <a href="#step-2-creating-a-workspace-join-an-existing-workspace-or-create-a-demo" id="step-2-creating-a-workspace-join-an-existing-workspace-or-create-a-demo"></a>

Aikido にあなたの GitLab の個人情報の読み取りを許可すると、次の画面が表示されます。

![gitlab\_signup](https://ucarecdn.com/143adfc1-c0c6-4c71-8a3d-1bed03e7ca6a/)

このページでは、次の 3 つのいずれかを行えます。

* **新しいワークスペースを作成する:** GitLab グループを Aikido に接続し、コードリポジトリとクラウドのスキャンを開始したい場合は、このオプションを選択してください。
* **チームに参加する:** 組織内の誰かがすでに GitLab グループを Aikido に接続しており、あなたもそのアクセス権を取得したい場合は、このオプションを選択してください
* **サンプルリポジトリを使用する:** Aikido の見た目や機能を少し見てみたいですか？ デモアカウントを作成して Aikido を試してみてください。GitLab グループは後からいつでも接続できます

#### ステップ 3. GitLab グループを Aikido に接続する <a href="#step-3-connect-a-gitlab-group-to-aikido" id="step-3-connect-a-gitlab-group-to-aikido"></a>

新しいワークスペースを作成する場合、Aikido には次の権限が必要です **読み取り専用アクセス** あなたのプロジェクトとグループへのアクセスです。そのため、Aikido を承認できるよう GitLab に戻します。

**注。** これは *しません* まだ実際のリポジトリへのアクセスを許可するものではありません。スキャン対象を選択するのは、この次のステップです。

![Aikido Security は、GitLab の読み取りアクセスとユーザー情報の認可を要求します。](/files/4c625b95e8cbcaa27f03e131d9cb152fb6aa21f4)

#### ステップ 4. グループの選択とリポジトリの選択 <a href="#step-4-selecting-groups--selecting-repos" id="step-4-selecting-groups--selecting-repos"></a>

Aikido にグループとプロジェクトの読み取りを許可すると、Aikido に接続したいグループを選択できます。

**注意：** Aikido は、選択した GitLab グループのすべてのサブグループをワークスペースに含めます

![ワークスペースとして Aikido に接続するグループを選択してください。](/files/304999e33cd80746c087bd066d8b22b650c6ea6b)

選択したグループを選んだあと、アクセスを許可するリポジトリを選択できます。

![Aikido のクラウドおよびリポジトリ管理ツールでセキュリティを監視するリポジトリを選択してください。](/files/c8e486fe685f36d1ae2f2e4481f8142f797374d5)

#### 5. 結果を確認 <a href="#id-5-checking-results" id="id-5-checking-results"></a>

アクセスを許可し、スキャンしたいリポジトリを確認すると、Aikido は自動的にスキャンを開始します。約 1 分後には、最初の結果が表示されるはずです！


---

# 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-gitlab-account-to-aikido.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.
