> 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-torirsugtingu/cli-for-pr-and-release-gating/aikido-cli-release-and-pr-gating.md).

# Aikido CLI: リリースゲーティング

> Aikido Security CIクライアントを使用すると、Aikido SecurityのスキャンをJenkinsやCircleCIなどのカスタムCIパイプラインに統合できます。これにより、セキュリティスキャンをビルドプロセスの一部として確実に組み込めます。

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

* **リリースのゲート制御**：コミットに基づいて新しいリリースまたはビルドをブロックします。

### ステップごとのガイド <a href="#step-by-step-guide" id="step-by-step-guide"></a>

**ステップ1**：Aikido CIクライアントをグローバルにインストールします。こちらを参照してください [CI APIクライアント](https://www.npmjs.com/package/@aikidosec/ci-api-client).

```sh
# npmユーザー向け
$ npm install -g @aikidosec/ci-api-client

# yarnユーザー向け
$ yarn global add @aikidosec/ci-api-client
```

**ステップ2**：Aikido APIキーを設定します

1. APIキーを取得してください [継続的インテグレーション設定ページ](https://app.aikido.dev/settings/integrations/continuous-integration).
2. APIキーをグローバルに設定します：

```
$ aikido-api-client apikey <your-api-key-here>
```

**ステップ 3**：リリースまたはプルリクエストのスキャンを実行します\
この `scan-release` コマンドは **リリースゲート**.

```
$ aikido-api-client scan-release <repository_id or repository_name> <commit_id>
```

**オプション**:

* `--no-fail-on-dependency-scan`：新しい依存関係の脆弱性でビルドが失敗しないようにします。
* `--fail-on-sast-scan`：新しいSASTの問題が検出された場合にスキャンを失敗させます。
* `--fail-on-iac-scan`：新しいInfrastructure as Codeの問題が見つかった場合にスキャンを失敗させます。
* `--fail-on-secrets-scan`：露出したシークレットが検出された場合にスキャンを失敗させます。
* `--minimum-severity-level="CRITICAL"`：スキャンが失敗／ブロックされる最小重大度レベル\
  オプション： `低`, `中`, `高`, `重大` （デフォルト： `重大`)
* `--poll-interval [interval]`：更新されたスキャン結果を確認するためのポーリング間隔を設定します（デフォルト：10）。
* `--sla-mode`：SLAを超過した未解決の問題がある場合のみ、Aikidoが失敗するようにします。
* `--json`：機械可読なスキャン要約を出力します（`gate_passed` と `issue_breakdown`）および進捗出力をスキップします。

### より詳細なオプションについては <a href="#for-more-detailed-options" id="for-more-detailed-options"></a>

```
$ aikido-api-client help
```


---

# 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/pr-torirsugtingu/cli-for-pr-and-release-gating/aikido-cli-release-and-pr-gating.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.
