> 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 上のあなたの ID と関連付けられたメールアドレスへのアクセスのみです。

![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 情報を読み取ることを承認すると、次の画面が表示されます。

<figure><img src="/files/3e9864374e43a9ccc155be35453250eeae927743" alt=""><figcaption></figcaption></figure>

このページでは、次の 3 つのうち 1 つを行えます:

* **新しいワークスペースを作成する:** 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 グループのサブグループをワークスペースに含めます

<figure><img src="/files/a9bf974969ab8db61cd794a84d007588f33fe190" alt=""><figcaption></figcaption></figure>

グループを選択した後、アクセスを許可するリポジトリを選べます。

<figure><img src="/files/8bb21d2f1082fb04b7a68ef909ca62e033cf530f" alt=""><figcaption></figcaption></figure>

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