> 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/pr-torirsunogtingu/aikido-ci-gating-functionality/autofix-suggestions-and-inline-commenting-for-pr-checks.md).

# PR チェックの AutoFix 提案とインラインコメント

Aikidoは、SCMソフトウェア内でインラインコメントを直接サポートします。この機能により、開発者はコードの特定の行に対するフィードバックを受け取れるため、問題をより迅速に解決できます。設定はリポジトリごとに行えるため、チームは必要な場所だけで有効化できます。

さらに、問題が発生したときに即座に修正できるよう、AutoFixの提案も行えます。私たちは、オートフィックスを利用できるルールを継続的に増やしています。

### 前提条件 <a href="#prerequisities" id="prerequisities"></a>

* CIチェックが有効になっていることを確認してください（Aikidoダッシュボードから）
* あなたはAikido内の管理者です

## インラインコメントの有効化 <a href="#enabling-inline-commenting" id="enabling-inline-commenting"></a>

**ステップ 1:** 以下から設定ページに移動してください **Repositories > Pull/Merge Requests > Manage PR/MR Checks**

<div data-with-frame="true"><figure><img src="/files/676bd66d4d118cc98fcdf307e6dcc29a889f748f" alt=""><figcaption></figcaption></figure></div>

**ステップ 2:** **対象のリポジトリを選択し** 有効化したいものに対して、次をクリックします **PR スキャンの設定**

**ステップ 3:** **次のトグルを有効にします&#x20;**<mark style="color:紫;">**コメントを追加**</mark>。少なくともSASTまたはSecretsスキャンが有効になっていることを確認してください。

<div data-with-frame="true"><figure><img src="/files/21253631b4435f73b3547771fac991b8d90897d9" alt=""><figcaption></figcaption></figure></div>

**ステップ 4:** 新しい問題が導入されると（スキャン失敗の重大度に基づいて）、SCMに新しいコメントが追加されます。

<div data-with-frame="true"><img src="/files/cb11f1df840a93b38de3417248fe523aede0bef5" alt="セキュリティボットが悪意のあるドメインからのスクリプトにフラグを立て、コードから即時削除するよう推奨します。" width="563"></div>

**ステップ 5。** 利用可能な場合、AikidoはAutoFixの提案を行います。差分を確認し、その提案をコミットして、新たに導入された脆弱性を一度に修正してください。

<div data-with-frame="true"><img src="/files/e75b596a1117e186318e19126e12dccc3e7d9f70" alt="AWS ALBリソース設定に「drop_invalid_header_fields」を追加するための推奨コード変更。" width="563"></div>


---

# 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/pr-torirsunogtingu/aikido-ci-gating-functionality/autofix-suggestions-and-inline-commenting-for-pr-checks.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.
