简体   繁体   English

GitHub 令牌 - 限制访问

[英]GitHub Token - Restrict Access

I am using GitHub token as the credential for others people.我使用 GitHub 令牌作为其他人的凭证。 Can make the token only allows the user to clone and pull , but NOT push or delete .可以使令牌只允许用户clonepull ,而不能pushdelete

GitHub tokens do not provide access to a repository, it is mainly to provide authentication of the user. GitHub 令牌不提供对存储库的访问,它主要提供用户的身份验证。 Clone or Pull or push are mainly GitHub repository functions and you can manage specific access using Setting --> Contributors for the repository.克隆或拉取或推送主要是 GitHub 存储库功能,您可以使用存储库的设置 --> 贡献者来管理特定访问。 Select the "Read" option in the contributors option of Repository Settings.在 Repository Settings 的贡献者选项中选择“Read”选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM