> 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/aikdo/ai-code-audit-overview/create-an-ai-code-audit.md).

# コードセキュリティ監査を作成する

コードセキュリティ監査を選択し、リポジトリを選んで、クレジット消費を確認します。

作成フローは3ステップです: 選択し **コードセキュリティ監査**、リポジトリを選択し、クレジットコストを確認して開始します。

## 前提条件

* 必要なのは **ペンテストとAIコード解析を管理** [権限](/docs/docs-ja/hajimeni/automated-user-management/setting-roles-and-permissions.md) 監査を作成するために使用します。これがなくても、AIコード解析や既存の評価を開くことはできます。
* 少なくとも 1 つのリポジトリが接続されています。 [自己スキャン済みリポジトリ](/docs/docs-ja/kdosukyan/local-code-scanning.md) ピッカーからは除外されます。選択できるリポジトリ数には上限があります。 [サポートに問い合わせる](/docs/docs-ja/miscellaneous-info/contact-support.md) さらに必要な場合は。
* ウォレットには、提示された費用に対して十分なクレジットがあります。作成フロー内で追加チャージできます。参照 [ウォレットとクレジット](/docs/docs-ja/miscellaneous-info/wallet-and-credits.md).

## 監査を設定

次へ移動します： **AIコード解析**を入力してから **監査を作成**.

{% stepper %}
{% step %}

### Code Security Audit を選択

で **監査タイプを選択**、次を選択します **コードセキュリティ監査**を入力してから **続行**.

**キャンセル** AIコード解析のホームに戻ります。
{% endstep %}

{% step %}

### リポジトリを選択する

1. 次を開きます： **リポジトリ** そして、この監査の接続済みリポジトリを選択してください。 **続行** 少なくとも1つのリポジトリが選択されるまで無効のままです。
2. モノレポの対象を絞るには、 **除外するパス** 選択したリポジトリの横にある項目をクリックし、この監査に含めないディレクトリを追加します。
3. 次の項目の下で **スコープ**、そのままにして **選択したすべてのリポジトリを監査** を選択するか、 **特定の部分のみを監査** そして、何を確認するかを説明してください。例: 「新しい請求フローと、それが呼び出すサービスを監査する。」
4. **追加メモ** これは任意であり、この監査にのみ適用されます。実行時の設定、既知のアーキテクチャ上の癖、ファイアウォールやプロキシの設定など、ソースに文脈が不足している場合に追加してください。すべての監査に適用されるべきガイダンスは、リポジトリ内の Markdown ファイルに入れてください。参照してください [リポジトリファイルでエージェントをガイドする](/docs/docs-ja/ai-totsru/guide-an-audit-with-repository-files.md).

<figure><img src="https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-738e8311f3af420f58e748dbfdaff91da6576561%2Fexclude-repository-paths.png?alt=media" alt="Exclude Paths button next to a selected repository"><figcaption></figcaption></figure>

{% hint style="info" %}
ドキュメントと README はリポジトリに残してください。エージェントはその Markdown を文脈として読むことができます。関連のないアプリケーションやサービスは除外してください。
{% endhint %}

**キャンセル** に戻ります **監査タイプ**.
{% endstep %}

{% step %}

### 料金を確認して開始

まで待ってください **料金** のステップでクレジット合計が表示されます。残高はフッターにあります。 **クレジットを追加** ウォレットの残高が不足している場合。

カードタイトルはスコープによって異なります：

* **フルAIコード分析** 選択したすべてのリポジトリを監査する場合。
* **スコープ付きAIコード解析** を選択した場合 **特定の部分のみを監査**。このステップには、入力したスコープも表示されます。

次の場合 **設定** 表示された場合は、監査の深さを設定するためにこれを使用します:

* **高リスクのみ** 重大な脆弱性を露呈する可能性が最も高い領域を優先します。いくつかの領域はカバー範囲が少なくなり、場合によってはまったく対象外になります。
* **推奨カバレッジ** 選択した監査範囲のうち、セキュリティ上重要な部分を調査します。
* **より深いカバレッジ** 推奨カバレッジを基に、優先度の低い領域や、あまり一般的ではないコードパス、クラウドリソースを追加で調査します。

クレジット総数は開始前に更新されます。

クリックします **監査を開始** 起動するために使用します。クレジットは、クリックしたときに消費されます **監査を開始**.
{% endstep %}
{% endstepper %}

Aikidoが評価の詳細ページを開きます。参照： [進捗と検出結果を追跡する](/docs/docs-ja/aikdo/ai-code-audit-overview/track-progress-and-findings.md).

## FAQ

### なぜリポジトリ数に上限があるのですか？

監査の焦点を絞るため、ピッカーでは含められるリポジトリ数に制限があります。1回の監査でさらに必要な場合は、 [サポートにお問い合わせください](/docs/docs-ja/miscellaneous-info/contact-support.md).

### クレジット見積もりが正しくないか、リポジトリが見つかりません

[サポートに問い合わせる](/docs/docs-ja/miscellaneous-info/contact-support.md)。自己スキャンされたリポジトリは選択画面から除外されます。

## 関連

{% content-ref url="/pages/605f473e291fd36e24fa5a488cc91170678a5165" %}
[コードセキュリティ監査](/docs/docs-ja/aikdo/ai-code-audit-overview.md)
{% endcontent-ref %}

{% content-ref url="/pages/5b576f17562e282d143bee6f8c9f135f3bfa2463" %}
[進捗と検出結果を追跡する](/docs/docs-ja/aikdo/ai-code-audit-overview/track-progress-and-findings.md)
{% endcontent-ref %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.aikido.dev/docs/docs-ja/aikdo/ai-code-audit-overview/create-an-ai-code-audit.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
