> 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/kdosukyan/connect-your-source-code/connect-bitbucket-data-center.md).

# Bitbucket Data Centerを接続する

Aikido を使用すると、Bitbucket Data Center を接続してリポジトリをスキャンできます。

#### ステップ 1. Aikido にサインイン

Aikido にログインする方法: **Google** または **Microsoft**.

#### ステップ 2. Bitbucket Data Center を選択

SCM 選択画面で、次を選択します: **Bitbucket Data Center**.

<figure><img src="/files/58885d75fc5193f1dab4bc48e3cd66999e7b046c" alt=""><figcaption></figcaption></figure>

#### ステップ 3. Bitbucket の詳細を追加

次を入力してください: `Bitbucket Data Center URL` および `HTTP アクセストークン`.

<figure><img src="/files/92db01e104d39cceffccf6a508d1454858265e59" alt=""><figcaption></figcaption></figure>

次の場所で確認できます: `HTTP アクセストークン` の下で **プロフィール** → **アカウントを管理** → **HTTP アクセストークン** → **トークンを作成**.

**必要なトークン権限**

Aikido は、お使いのオンプレミス Bitbucket インスタンスに対して次のトークン権限を要求します:

* **プロジェクト:** 書き込み
* **リポジトリ:** 書き込み

**なぜ書き込みアクセスが必要なのですか?**

AutoFix（マージ可能な PR の作成）や PR チェック（プルリクエストへのステータスチェックとコメントの投稿）を含む Aikido の全機能を利用するには、書き込みアクセスが必要です。

**スキャンだけ必要な場合**

チームが Aikido をリポジトリのスキャンと AI ペネトレーションテストにのみ使用する場合、 **読み取り権限** 読み取り専用アクセスのトークンを設定すれば、すべてのスキャン機能が期待どおりに動作します。

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

#### ステップ 4. プロジェクトを選択

接続したい Bitbucket プロジェクトを選択します。

<figure><img src="/files/14c18d7cb31c4652221682eec947f0435e98b9f0" alt=""><figcaption></figcaption></figure>

#### ステップ 5. リポジトリを選択して完了

Aikido にスキャンさせたいリポジトリを選択します。

セットアップを完了してスキャンを開始します。


---

# 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/kdosukyan/connect-your-source-code/connect-bitbucket-data-center.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.
