79206924

Date: 2024-11-20 11:13:18
Score: 1.5
Natty:
Report link

Use deploy tokens, they give read-only access to the repo and registry. Go to your project, Settings > Repository > Deploy tokens https://docs.gitlab.com/ee/user/project/deploy_tokens/index.html

As for the earlier answers about Private and Group tokens: According to GitLab documentation and opened issues, Project Access Tokens and Group Tokens have a breach, such as the holder can access any internal repository

From https://docs.gitlab.com/ee/user/project/settings/project_access_tokens.html#create-a-project-access-token

Project access tokens are treated as internal users. If an internal user creates a project access token, that token is able to access all projects that have visibility level set to Internal.

From https://gitlab.com/gitlab-org/gitlab/-/issues/413028

One of the consequences of this is that if we share a single read-only project access token with an external user, they can access any internal project in our Gitlab server instance, which we believe is an evident security hole.

Reasons:
  • Contains signature (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Den