> 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/miscellaneous/split-your-monorepo-per-path.md).

# モノレポをパスごとに分割する

{% hint style="warning" %}
Aikido内で大規模リポジトリをより小さく管理しやすい単位に分割して、より見やすい全体像を確認したい場合は、 [こちらの代替手段](/docs/docs-ja/hajimeni/manage-teams-and-applications/assign-team-responsibilities-by-specific-path-in-repo.md).
{% endhint %}

{% hint style="info" %}
この機能は **のみ** GitLab（Cloud/On-Prem）および Azure DevOps（Git/TFVC）でのみ利用できます。
{% endhint %}

{% hint style="info" %}
SCA では、 **TFVC リポジトリ**、まずリポジトリページでスキャンしたい特定のブランチを設定してください（既定は「All Branches」です）
{% endhint %}

Aikidoでは、大規模リポジトリ／モノレポをパスごとに分割できるため、セキュリティ課題の全体管理が改善されます。

## ユースケース <a href="#use-cases" id="use-cases"></a>

* 巨大なリポジトリはスキャンに非常に時間がかかったり、タイムアウトしたりすることがあります。これによりスキャン速度を改善できます。
* **対象外:** Aikido内で大規模リポジトリをより小さく管理しやすい単位に分割して、より見やすい全体像を確認したい場合は。この場合は、 [こちらの代替手段](/docs/docs-ja/hajimeni/manage-teams-and-applications/assign-team-responsibilities-by-specific-path-in-repo.md).

## 前提条件 <a href="#prerequisites" id="prerequisites"></a>

* 次の場合のみ利用可能です **Proプラン**。この機能を有効にするには、Aikidoにお問い合わせください。
* ご利用中の環境は **GitLab** または **Azure DevOps**.
* 対応: **SCA、SAST、** および **IaC** のスキャンのみです。分割されたリポジトリではシークレットスキャンは利用できません。

## リポジトリの分割方法 <a href="#how-to-split-up-your-repositories" id="how-to-split-up-your-repositories"></a>

**ステップ 1:** リポジトリ詳細ページに移動し、次を追加します `/split` ブラウザのアドレスバーにあるURLの末尾に追加します（例： `https://app.aikido.dev/repositories/330080/split`*).* これにより、リポジトリを分割するためのページに移動します。

![リポジトリをサブディレクトリに分割するための分割ポイントを定義するインターフェース。](/files/828c158bb8c47f346f27ee4e9c656cbeec54569e)

**ステップ 2:** 分割ポイントを入力してください。これは、分離したいリポジトリ内のパスです。個別のエンティティとして表示したいパスをすべて入力してください。\
​\
​

![リポジトリの分割ポイントは次のとおりです: bad\_sast\_findings、secrets、autofix。](/files/22b89f8448ebc152564e6e23ec6448c90d1917bb)

**ステップ 3:** 選択 ***リポジトリを分割***。この操作により、元のリポジトリ設定は無効になり、スキャン用により小さなリポジトリに分割されます。これらはすべて次の場所で確認できます: [**リポジトリ概要**](https://app.aikido.dev/repositories)。指定したすべてのパスには **タグ** が元のリポジトリ名の横に表示されます。

![3つのアクティブなリポジトリのセキュリティスキャン結果と深刻度を表示するリポジトリダッシュボード。](/files/03ee50f86fb67d36ade874a76424ded1b5a99674)

**手順 4。** 異なるサブパスを異なるチームに割り当てます。チームの設定方法や責任の割り当て方法の詳細は [こちら](https://help.aikido.dev/en/articles/9005606-using-teams-for-repository-and-user-management).

> 注: 後から新しいパスを追加できます。これを行うには、分割元のベースリポジトリに再度移動してください。既存のパスは追加しないでください。新しいパスだけで十分です。

***


---

# 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/miscellaneous/split-your-monorepo-per-path.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.
