Repository navigation
GitLab Fine-Grained Tokens #1121
|
Logging into Sveltia CMS via a GitLab Personal access token works as expected, however the token will log into any Sveltia CMS site hosted on my GitLab account; not great for client stuff. What specific resource permissions does a GitLab fine-grained token require to work? I can find no details about this in the documentation. Thanks. |
Replies: 1 comment 2 replies
|
Thanks for asking! Unfortunately, GitLab’s fine-grained personal access tokens don’t work with Sveltia CMS yet, and the blocker is on GitLab’s side. We had a similar report in #772. Sveltia CMS reads most of what it needs through GitLab’s GraphQL API, and fine-grained tokens can now read nearly all of it. The exception is Once GitLab adds it, these permissions should be enough:
The editorial workflow will probably also need Merge Request permissions, and the deploy button will need Pipeline: Create. In the meantime, there are two ways to limit access for client sites:
|
Thanks for asking! Unfortunately, GitLab’s fine-grained personal access tokens don’t work with Sveltia CMS yet, and the blocker is on GitLab’s side. We had a similar report in #772.
Sveltia CMS reads most of what it needs through GitLab’s GraphQL API, and fine-grained tokens can now read nearly all of it. The exception is
Project.userPermissions, which the CMS uses at sign-in to check that you can push to the repository. GitLab hasn’t yet enabled fine-grained token access for theProjectPermissionstype: it’s still on their to-do list. No permission you choose when creating the token can grant it, so sign-in fails with "Couldn’t check your access to the repository."Once GitLab adds it, t…