> 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-gitlab-cloud-with-personal-access-token.md).

# Personal Access Tokenを使ったGitLab Cloud向けAutoFix

> GitLab Autofix インテグレーションのインストールが OAuth フローでうまくいかない場合は、Personal Access Token (PAT) を使うようにも設定できます。

### 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/gitlab/autofix/personal-access-token).

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

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

1. 「**設定**' > '**アクセストークン**、グループページのナビゲーションから

   または、ショートカットリンクの「**ここでアクセストークンを生成**」を Aikido の個人用アクセストークン管理ページで使用します。

   ![](/files/d09ceb418f516ce2225407c3936547220f63084f)
2. 次のようなページに到達するはずです\
   グループの設定メニューを開き、「**アクセストークン**"

   ![](/files/aa56f60867743b4892b1812492c561c67fb58d15)
3. 「**追加** **新しいトークン**"
4. トークン名を入力してください。たとえば次のようなものをおすすめします：「**Aikido Security Autofix**"
5. 有効期限はカスタム指定にして、現在から 1 年後に設定するか、削除してください。
6. トークンには少なくとも「**Developer**"
7. 次に、トークンに対して以下の権限を選択する必要があります: **api** および **write\_repository.**

   ![](/files/9418fe00b612b8d6a3c1ec4548c034d9ccbd72e2)
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 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/autofix-to/configure/autofix-for-gitlab-cloud-with-personal-access-token.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.
