> 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/github-ci-pr-gating-via-aikido-dashboard.md).

# GitHub PR ゲート

Aikido のインターフェースから GitHub PR Gating を簡単に設定できます。この機能では、以下をブロックできます **新たに追加された** 問題を、あなたが決めたしきい値までブロックし、プルリクエストがどの既存の問題を解決するかを確認できます。これらのチェックは実行されます **毎回** 変更がフィーチャーブランチにコミットされるたびに。 このドキュメントでは、コードを使わずに構成を一括で管理する方法（複数のリポジトリを同時に扱う方法）に焦点を当てています。

### ユースケース <a href="#use-cases" id="use-cases"></a>

* **一括リポジトリ管理**: Aikido インターフェースから、複数のリポジトリの構成を一度に簡単に指定・管理できます。
* **コード不要の統合**: GitHub に Aikido アプリをインストールして、コードを埋め込むことなくチェックを管理し、セットアップを簡素化します。
* **コスト効率**: GitHub Checks を Aikido で管理することで、GitHub の CI 分を消費せずに済み、大幅なコスト削減につながります。

### GitHub CI の設定 <a href="#setting-up-github-ci" id="setting-up-github-ci"></a>

**手順 1。** 次へ移動 [統合ページ](https://app.aikido.dev/settings/integrations) を開き、CI gating セクションで GitHub を選択します。

<div data-with-frame="true"><img src="/files/4d301ee864fbe5d5f6066b42fc4e2d535f9e065e" alt="GitHub、GitLab、Bitbucket、Azure の CI ツールを接続して、危険なコードのマージをブロックします。" width="563"></div>

**手順 2（任意）。** 次を選択します **Aikido ダッシュボード経由の PR Gating 設定** ポップアップするモーダル内で。これにより、新しいタブで GitHub が開き、PR Checks アプリをインストールできます。 **注: このモーダルは、すでにコード経由で GitHub Actions を使用したことがある場合にのみ表示されます**.

<div data-with-frame="true"><img src="/files/064790d281e6726a53dc18aff30748663493d793" alt="GitHub の PR gating 方法として、Aikido ダッシュボードまたはコード内の GitHub Actions を選択します。" width="563"></div>

**手順 3。** をインストールしてください **Aikido PR Checks アプリ** を GitHub に。ワークスペースで現在使用している GitHub 組織を選択してください。Aikido にアクセスを許可するリポジトリを選びます。Aikido 内からこれらを簡単に管理できるよう、すべてのリポジトリへのアクセスを付与することをお勧めします。

<div data-with-frame="true"><img src="/files/526f9aae86540c466816d3c15060a79aec71860e" alt="ロゴとインストール先の確認を含む、Aikido PR Checks のインストールプロンプト。" width="563"></div>

**手順 4。** Aikido はあなたを [GitHub CI ページ](https://app.aikido.dev/settings/integrations/github/checks) へリダイレクトし、リポジトリの概要を表示します。リポジトリの設定を開始できます。まずは 1 つのリポジトリから始めて、すべてが問題なく動作することを確認することをお勧めします。

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

**手順 5. リポジトリを一括選択** に移動し、 **PR スキャンの設定** 画面下部のフローティングバーで

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

**手順 6**。これにより、失敗と見なす重大度レベルおよび実行したいスキャンを選択するモーダルが表示されます。

<div data-with-frame="true"><img src="/files/64385607c8fc68b0a63d757c806dd5cef7706aad" alt="「about-github」リポジトリのセキュリティスキャン設定。" width="563"></div>

{% hint style="info" %}
初期設定後に新しいリポジトリを追加した場合は、それらのリポジトリも設定する必要があります。

既定の設定を自動的に適用するには、こちらを参照してください [新しいリポジトリの既定の PR/MR ガーティング設定](/docs/docs-ja/pr-torirsunogtingu/aikido-ci-gating-functionality/default-pr-mr-gating-configuration-for-new-repositories.md).
{% endhint %}

### PR コメントから直接問題を無視する <a href="#ignore-issues-directly-from-pr-comments" id="ignore-issues-directly-from-pr-comments"></a>

Aikido が検出結果に対してインラインの PR コメントを投稿した場合、次のようにコメントへ返信することで、GitHub からその問題を直接無視できます:

`@AikidoSec ignore: [無視する理由]`

例:

`@AikidoSec ignore: このシークレットはテスト専用です。`

これは、Aikido プラットフォームで手動で問題を無視するのと同じ操作です:

* その問題は Aikido で無視済みとしてマークされます。
* 無視理由が保存されます。
* すべてのブロッキング問題が解決または無視されると、PR gating は緑にできます。

### 失敗した PR チェックでマージをブロックする <a href="#make-failed-pr-checks-block-merges" id="make-failed-pr-checks-block-merges"></a>

Aikido は PR チェックを失敗させることができますが、その失敗したチェックがマージをブロックするかどうかは GitHub が決定します。必須のステータスチェックでブランチ保護を設定してください:

* [GitHub Docs: 保護されたブランチについて](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches#require-status-checks-before-merging)
* [GitHub Docs: ブランチ保護ルールの管理](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/managing-a-branch-protection-rule)

### 特定のリポジトリに例外を追加する <a href="#adding-exceptions-for-specific-repos" id="adding-exceptions-for-specific-repos"></a>

設定が少し異なる特定のリポジトリを 1 つ持ちたい場合があるでしょう。リポジトリアイテムの三点リーダーをクリックするか、1 つ以上の項目を選択して次の画面に進むことで、簡単に例外を追加できます **スキャンを設定** プロセスを再度実行します。

<div data-with-frame="true"><img src="/files/4e42f98e5babfb74019fbe72a1fa927d798a0ce3" alt="プロジェクトの構成管理オプションを備えた、重大な脆弱性のステータスダッシュボード。"></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/github-ci-pr-gating-via-aikido-dashboard.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.
