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