> 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 ブランチと総課題数を表示している NodeGoat の GitHub リポジトリ。](/files/bf12af51a2a32b6b4ae0e40f36555f86dedccd94)

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

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

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

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

**結果：** Aikido は指定したリポジトリをクローンし、毎晩そのリポジトリをスキャンします。あるいは、手動でスキャンを実行して即座に結果を得ることもできます。クローンされたリポジトリの横にラベルが表示されるので、どのリポジトリにどのスキャン対象ブランチが含まれているかが分かります。

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

![設定オプションと、あるリポジトリの master コピーラベルが表示されたリポジトリ一覧。](/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.
