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

# Bitbucket Free & Standard: PR スキャンのセットアップ

{% hint style="warning" %}
この設定は、 **Bitbucket Free と Standard** Workspace Access Token が利用できず、代わりに専用ユーザーが使用されるプランです。

次のプランをお使いの場合は **Bitbucket Premium**の場合は、 [**Workspace Access Token**](/docs/docs-ja/pr-torirsunogtingu/bitbucket-pr-gating/bitbucket-ci-pr-gating-via-aikido-dashboard-with-a-workspace-access-token.md) ユーザーベースのセットアップの代わりに使用します。
{% endhint %}

## Bitbucket PR スキャンを設定する <a href="#setting-up-bitbucket-ci" id="setting-up-bitbucket-ci"></a>

{% stepper %}
{% step %}
**専用の Bitbucket ユーザーを作成する**

次のような専用ユーザーを作成します： `AikidoSec`。Aikido 専用にしてください。

このユーザーに、保護したいリポジトリへの管理者アクセス権を付与してください。Aikido はリポジトリの Webhook を作成・管理するためにそれを必要とします。
{% endstep %}

{% step %}
**統合を有効にする**

新しいユーザーとして Bitbucket にログインします。

Aikido で、次を開きます： [連携](https://app.aikido.dev/settings/integrations?section=ci) ページ。その後、次を選択します： **Bitbucket** の下で **PR Quality Gating**.

<div data-with-frame="true"><figure><img src="/files/83a768e5d51061ffaed2670560d6a292ea609192" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
**アクセスを付与**

Bitbucket にリダイレクトされます。要求されたアクセスを承認してください。

<div data-with-frame="true"><figure><img src="/files/db8953788449cba599131f99fad2ed0d164b8552" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
**最初のリポジトリを設定する**

認可後、Aikido は次を開きます： [Bitbucket PR Checks](https://app.aikido.dev/settings/integrations/bitbucket/checks) ページ。

まずは **1 つのリポジトリ** を最初に。広く展開する前に、すべてが正しく動作することを確認してください。

<div data-with-frame="true"><figure><img src="/files/93d494465db67ef7f0916da4d3afbf99d4139cb2" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
**新しい PR で確認する**

設定したリポジトリで新しい PR を開きます。その後、チェックが実行されることを確認してください。

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

コメントは、手順 1 で作成したユーザーとして表示されるはずです（たとえば、 `AikidoSec`).

<figure><img src="/files/94f5cc663939283c290fcf3ec8306bf4f7fefc35" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**すべてのリポジトリで有効にする**

結果に満足したら、次に戻ります： [Bitbucket PR Checks](https://app.aikido.dev/settings/integrations/bitbucket/checks) ページで、残りのリポジトリのチェックを有効にします。

<div data-with-frame="true"><figure><img src="/files/e9fd8417e243fe3bb74d2a0ed8d29eabe5ce9541" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
**新しいリポジトリの既定値を設定する**

右上の `アクション` をクリックして、次を選択します: `Set Default for New Repos` さらに、今後新しく追加されるリポジトリに対して自動構成を有効にします。

UI の手順が必要ですか？こちらを参照してください [新しいリポジトリの既定の PR/MR ガーティング設定](/docs/docs-ja/pr-torirsunogtingu/aikido-ci-gating-functionality/default-pr-mr-gating-configuration-for-new-repositories.md).
{% endstep %}
{% endstepper %}

{% hint style="info" %}
オン **Bitbucket Free と Standard**、あなたは **要求できません** Aikido のスキャンが成功することをマージ防止の条件にすることはできません。これには **Bitbucket Premium**.

Atlassian を参照してください： [マージ前にチェックを推奨または必須にする](https://support.atlassian.com/bitbucket-cloud/docs/suggest-or-require-checks-before-a-merge/).
{% endhint %}


---

# 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/bitbucket-pr-gating/bitbucket-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.
