> 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/autofix-and-remediation/configure/autofix-for-gitlab-cloud-with-personal-access-token.md).

# AutoFix for Gitlab Cloud with Personal Access Token

> When the installation of the Gitlab Autofix integration does not work via the OAuth flow, you can also configure it to work with a Personal Access Token (PAT).

### Go to PAT management page in Aikido <a href="#go-to-pat-management-page-in-aikido" id="go-to-pat-management-page-in-aikido"></a>

**First**, go to the PAT management page in Aikdo, which can be [found here](https://app.aikido.dev/settings/integrations/gitlab/autofix/personal-access-token).

**Next**, follow the instructions below to generate an access token in Gitlab.

## Generate a "Group Access Token" in Gitlab <a href="#generate-a-group-access-token-in-gitlab" id="generate-a-group-access-token-in-gitlab"></a>

1. Navigate to '**Settings**' > '**Access tokens**', via the navigation of your Group's page

   Or use the shortcut link '**Generate Access Token here**' on the personal access token management page in Aikido.

   ![](/files/rsyyFcZQfIzr83pzRdrL)
2. You should end up on a page similar to this\
   You can navigate to this page yourself by opening your group's settings menu and selecting "**Access tokens**"

   ![](/files/I0zHYYuxP5LFXsZApV6V)
3. Click on "**Add** **new token**"
4. Enter a name for token, we suggest something like: "**Aikido Security Autofix**"
5. For the expiration, use custom defined and set it to 1 year from now, or remove it.
6. The token should have at least the role of "**Developer**"
7. Next you need to select the following permissions for the token: **api** and **write\_repository.**

   ![](/files/VST9B3vFVv98gCNpitYG)
8. Click on "**Create group access token**".
9. Copy the token on the next screen and insert it on the personal access token management page in 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/autofix-and-remediation/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.
