> 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/autofix-to/scope/autofix-for-open-source-dependencies.md).

# オープンソース依存関係向けAutoFix

{% hint style="info" %}
Aikido Local Scan のアカウントは、UI 内で AutoFix にアクセスできません。ローカルで AutoFix を使いたい場合は、IDE プラグインの使用をおすすめします。
{% endhint %}

Aikido AutoFix は、影響を受けるパッケージをアップグレードすることで、オープンソース依存関係の脆弱性を修正するプルリクエストを作成します。アップグレードは常に、問題を解決するために必要な最小バージョンを対象にします。メジャーアップグレードよりも、マイナーおよびパッチの更新が優先され、破壊的変更を最小限に抑えます。AutoFix は repo と lockfile ごとに修正をグループ化するため、各 PR は焦点が定まり、マージしやすい状態に保たれます。場合によっては、1 回のアップグレードで 1 つの脆弱性だけでなく、脆弱性のカテゴリ全体が解消されます。

メジャーバージョンへのアップグレードが提案される場合、脆弱性を解消するマイナーまたはパッチバージョンは存在しません。

<figure><img src="/files/a141856e0bf8752e98f6c0a0c3ed3b081202252c" alt=""><figcaption></figcaption></figure>

### AutoFix のオプション <a href="#autofix-options" id="autofix-options"></a>

AutoFix は脆弱性を 2 つの方法で修正できます。

* **トップレベル依存関係の更新** 脆弱性の原因となっているトップレベル依存関係を特定し、アップグレードします。パッケージマネージャーが脆弱なサブ依存関係の正しいバージョンを自動的に解決します。これはデフォルトで推奨される戦略で、JavaScript、.NET、Java、Kotlin、Python に対応しています。
* **依存関係にオーバーライドを追加** 脆弱なサブ依存関係を、特定の修正済みバージョンに固定します。トップレベル依存関係をまだアップグレードできない場合、たとえばメジャーバージョンの更新が破壊的変更になる場合に有用です。

{% hint style="info" %}
第 3 の選択肢として、 **Aikido Libraries** ドロップイン代替品 [詳細はこちら](/docs/docs-ja/autofix-to/aikido-libraries-overview.md).
{% endhint %}

<figure><img src="/files/39e142ede512d8577728b98c0f718c6ac7b2fa18" alt=""><figcaption></figcaption></figure>

使用する場合、 **依存関係にオーバーライドを追加** 複数の脆弱性を一度に修正するには、 **すべての利用可能な修正** ドロップダウンで、含めるパッケージを制御できます。

1. **すべての利用可能な修正** — メジャーバージョンへの更新を含め、すべてを修正します
2. **マイナーおよびパッチバージョンのみ** — メジャーバージョンへの更新を必要とする修正はすべてスキップします
3. **重大な問題のみ** — Aikido の優先度が Critical の問題のみを修正します

<figure><img src="/files/d76f2fd246c347477409c75e4a844ebbe613edd6" alt=""><figcaption></figcaption></figure>

その後、PR 作成の状況が表示される進捗ウィンドウ（右下）が表示されます。PR の準備が整うと更新を受け取ります。

![](/files/134cfd2e4106d9216568aea2b262149b1ca51702)

### AutoFix のセットアップと最初の PR の作成例動画 <a href="#example-of-setting-up-autofix-and-creating-your-first-pr" id="example-of-setting-up-autofix-and-creating-your-first-pr"></a>

[動画](https://ucarecdn.com/4d1a26c8-3ccf-4762-818c-e3430058f9a9/)


---

# 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/autofix-to/scope/autofix-for-open-source-dependencies.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.
