Gitlab access token for a single project or group?

我与影子孤独终老i 提交于 2020-08-26 03:58:49

问题


Is there a way to make an access token that is only usable for one project? It seems there are only personal access tokens, which gives access to all of my projects.


回答1:


Yes!

See GitLab 13.3 (August 2020)

Project access tokens

Project level access tokens allow access to a project without the need to provision a new GitLab user.

Project access tokens can be generated by project Maintainers or Owners and be used to authenticate with the GitLab API.
Project access tokens will be authorized as Maintainers.

This new functionality will make programmatic access to GitLab easier, more secure, and less cost prohibitive.

See Documentation and Issue.




回答2:


Deploy keys allow read-only or read-write (if enabled) access to one or multiple repository. Deploy keys can be used for CI, staging or production servers. You can create a deploy key or add an existing one.

Docs: https://docs.gitlab.com/ee/user/project/deploy_tokens/



来源:https://stackoverflow.com/questions/57067748/gitlab-access-token-for-a-single-project-or-group

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!