> 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 copy ラベルを含むリポジトリ一覧。](/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.
