> 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" %}
対象は **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`*).* これにより、リポジトリを分割するためのページに移動します。

![リポジトリをサブディレクトリに分割するための分割ポイントを定義するインターフェース。](https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-b4b84c69949417a9b94a067543984f856adceb89%2Fucarecdn-1acc303c-9047-47c6-90a4-8997e18de9e1.png?alt=media)

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

![bad\_sast\_findings、secrets、autofixとして定義されたリポジトリの分割ポイント。](https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-898f2b7fbe7d50317b1c9d5234ace7d5d33f1f1d%2Fucarecdn-7eb2ed38-070e-4182-9875-dfbb27d99557.png?alt=media)

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

![3つのアクティブなリポジトリのセキュリティスキャン結果と重大度を表示するリポジトリダッシュボード。](https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-1e185b4ead3115814180ab2cc169c7b8607ecb10%2Fucarecdn-da0abeab-31ee-4f9c-ba0b-937d6dd8622e.png?alt=media)

**手順 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.
