> 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 はリポジトリとロックファイルごとに修正をグループ化するため、各 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.
