> 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-rirsugtingu/aikido-ci-gating-functionality.md).

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

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

![master ブランチと合計 issue 数を表示している NodeGoat の GitHub リポジトリ。](https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-d95dd485a0330643686d366d4ae5f001f54a8acf%2Fucarecdn-fa3fe901-f8fd-44ea-8489-e354dcebf016.png?alt=media)

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

![単一または複数のブランチをスキャンするためのオプションがあるブランチ選択ダイアログ。](https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-bcacbfc33ce1fb3873a839086da290a0d17c2539%2Fucarecdn-f32721ac-7cc7-469a-af70-1a47866fcd5a.png?alt=media)

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

![リポジトリ内でスキャンするブランチを選択・更新するフォーム。](https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-76875b9b7af20a9b92da77166fc5e36e67f7654e%2Fucarecdn-15130a0a-8e38-41fd-b271-ac0803c98b65.png?alt=media)

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

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

![構成オプションと、1つのリポジトリに対する master copy ラベルを含むリポジトリ一覧。](https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-44979bb0bf40b162883d69bbab47210f6494a3f6%2Fucarecdn-3b2e2e4c-407b-46e4-b4f7-96ba226eb282.png?alt=media)

> 注: シークレットスキャンは最初のリポジトリでのみ実行される点に注意してください。これは、シークレットスキャン機能が既定で自動的にすべてのブランチを対象にするよう設計されているためです。

***


---

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