> 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/support-for-multi-branch-scanning.md).

# マルチブランチスキャンのサポート

**目次:**

* [ユースケース](#use-cases)
* [複数のブランチを追加する](#adding-multiple-branches)

## マルチブランチスキャンのサポート

Aikido のマルチブランチスキャンでは、開発者は複数のレガシーブランチを同時にスキャンできます。また、ステージング環境と本番環境の両方を同時にスキャンしたい場合にも便利です。追加できるブランチ数に制限はありません。これは通常、ブランチが数か月にわたって存在し、継続的なスキャンが必要な場合に使用されます。

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

* 毎日のスキャンが必要な古いレガシーブランチ（例: V3 ブランチ、V4 ブランチ）が並行して存在しており、同じリポジトリ内にあっても、それぞれを別個のプロジェクトとしてスキャンしたい場合。
* ステージング環境と本番環境を継続的に監視したい場合

> 数日または数週間以内にマージされるフィーチャーブランチをスキャンしたい場合は、当社の [CIゲーティング機能](/docs/docs-ja/pr-torirsunogtingu/aikido-ci-gating-functionality.md).

### 複数のブランチを追加する <a href="#adding-multiple-branches" id="adding-multiple-branches"></a>

**ステップ 1:** リポジトリの詳細ページに移動し、現在のブランチ名（通常は master と表示されています）をクリックします。するとモーダルウィンドウが開きます。

![master ブランチと総 issue 数を表示している NodeGoat の GitHub リポジトリ。](/files/bf12af51a2a32b6b4ae0e40f36555f86dedccd94)

**ステップ 2:** 「複数のブランチをスキャン」をクリックします。\
​

![単一または複数のブランチをスキャンするオプションがあるブランチ選択ダイアログ。](/files/99d836dc4fabdaa85da6e4fdd75ec0123814a05c)

**ステップ 3:** スキャン対象に追加したいブランチ名を入力します。\
​

![リポジトリ内でスキャンするブランチを選択・更新するためのフォーム。](/files/e09d639fb2cda237784fa6640bfe5f8014d11487)

**結果:** Aikido は指定したリポジトリをクローンし、毎晩スキャンします。必要に応じて手動でスキャンを実行し、すぐに結果を得ることもできます。クローンされたリポジトリの横にラベルが表示され、どのリポジトリのどのブランチがスキャン対象になっているかを確認できます。

**2つ以上のブランチをスキャンしたいですか？** 任意のリポジトリに移動して、この手順をもう一度実行できます。

![設定オプションと、1つのリポジトリに対するマスターコピーのラベルが表示されたリポジトリ一覧。](/files/6db432741ddf3c41a499f4b16e5ca0c04ffeda76)

> 注: シークレットスキャンは最初のリポジトリでのみ実施される点にご注意ください。これは、シークレットスキャン機能がデフォルトで全ブランチを自動的にカバーするよう設計されているためです。

***


---

# 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/support-for-multi-branch-scanning.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.
