diff --git a/docs/spec/v1beta3/providers.md b/docs/spec/v1beta3/providers.md index 6492961cd..df4e9a394 100644 --- a/docs/spec/v1beta3/providers.md +++ b/docs/spec/v1beta3/providers.md @@ -1516,9 +1516,9 @@ kubectl create secret generic github-token --from-literal=token= #### GitLab When `.spec.type` is set to `gitlab`, the referenced secret must contain a key called `token` with the value set to a -[GitLab personal access token](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html). +[GitLab personal access token](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html). If available group and project access tokens can also be used. -The token must have permissions to update the commit status for the GitLab repository specified in `.spec.address`. +The token must have permissions to update the commit status for the GitLab repository specified in `.spec.address` (grant it the `api` scope). You can create the secret with `kubectl` like this: @@ -1526,6 +1526,10 @@ You can create the secret with `kubectl` like this: kubectl create secret generic gitlab-token --from-literal=token= ``` +For gitlab.com and current self-hosted gitlab installations that support only the Gitlab v4 API you need to use the project ID in the address instead of the project name. +Use an address like `https://gitlab.com/1234` (with `1234` being the project ID). +You can find out the ID by opening the project in the browser and clicking on the three dot button in the top right corner. The menu that opens shows the project ID. + #### Gitea When `.spec.type` is set to `gitea`, the referenced secret must contain a key called `token` with the value set to a