> 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 Cloudを接続する

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 アカウントから個人情報を読み取るためのアクセスを要求しています。](https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-55ac731f87c11d27462aee1d900212bfddef8b65%2Fucarecdn-dd58925f-aa33-4b89-9e02-bd75cc1009ad.png?alt=media)

#### ステップ 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="https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2F0vDpXKjjNZ911hqrhY6O%2Fimage.png?alt=media&amp;token=647f5f6e-1463-4ae1-a46d-e09c565d025d" alt=""><figcaption></figcaption></figure>

このページでは次の 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 の読み取りアクセスとユーザー情報の認可を要求しています。](https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-99cd8b807b1832f7b8eff5bf78e3e751cd24869b%2Fucarecdn-b461947a-bf2e-4a4e-936a-84efb59a1f48.png?alt=media)

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

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

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

<figure><img src="https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2FE0sW7CmB0L2IrZI7XKQP%2Fimage.png?alt=media&amp;token=dbb5a86b-6878-440a-8022-e0f3d4c8bff6" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2FMYK9iI60phLpmS96cL0N%2Fimage.png?alt=media&amp;token=eaa62bf7-a744-4053-987f-892f146b68d9" 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.
