> 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/configure/autofix-for-bitbucket-with-workspace-access-token.md).

# Workspace Access Token を使用した Bitbucket 向け AutoFix

> Bitbucket Autofix インテグレーションのインストールが OAuth フローでうまくいかない場合、または Bitbucket のユーザーにリンクしたくない場合は、Workspace Access Token（WAT）で動作するようにも設定できます。

### Aikido の PAT 管理ページへ移動してください <a href="#go-to-pat-management-page-in-aikido" id="go-to-pat-management-page-in-aikido"></a>

**まず**、Aikdo の PAT 管理ページへ移動してください。これは [こちら](https://app.aikido.dev/settings/integrations/bitbucket/autofix/workspace-access-token).

**次に**、Bitbucket でアクセス トークンを生成するには以下の手順に従ってください。

## Bitbucket で「Workspace Access Token」を生成する <a href="#generate-a-group-access-token-in-gitlab" id="generate-a-group-access-token-in-gitlab"></a>

1. 「**ワークスペース設定**' > '**アクセストークン**」, Bitbucket ワークスペースページのナビゲーションから
2. 次のようなページが表示されるはずです<br>

   <figure><img src="https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-6f8b38fd959d54838f5d205174ae9c0d775cdeff%2FScherm%C2%ADafbeelding%202025-10-17%20om%2011.38.15.png?alt=media" alt="" width="563"><figcaption></figcaption></figure>
3. 「**アクセス トークンを作成**"
4. トークンの名前を入力してください。たとえば次のようなものをおすすめします: 「**Aikido Security Autofix**"
5. 有効期限は「No expiry」を選択することをおすすめします
6. 次に、トークンに対して以下の権限を選択する必要があります: 「**リポジトリ:write**」と **プルリクエスト:write**.
7. アクセス トークンの設定モーダルは次のようになっているはずです<br>

   <figure><img src="https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-068d9f4e08e5f119dea6237f18bcc70fed53e36d%2FScherm%C2%ADafbeelding%202025-10-17%20om%2011.39.10.png?alt=media" alt="" width="375"><figcaption></figcaption></figure>
8. 完了したら、「**作成**"
9. 次の画面でトークンをコピーし、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 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/autofix-to/configure/autofix-for-bitbucket-with-workspace-access-token.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.
