[英]GitHub personal access tokens scope only for getting releases data from private repo
To get personal access tokens: https://github.com/settings/tokens获取个人访问令牌: https://github.com/settings/tokens
I have a private repository, from which I want to get the releases data ( https://github.com/**user_name**/**repo_name**/releases ) .我有一个私有存储库,我想从中获取发布数据( https://github.com/**user_name**/**repo_name**/releases ) 。 What scopes should I use for that purpose?
我应该为此目的使用什么范围?
Important note: I just want auth to the releases data only, not to the whole private repo.重要提示:我只想对发布数据进行身份验证,而不是对整个私人仓库进行身份验证。
What I've tried: this post suggests to use Full control of private repositories scope
, but I don't want to authorize the whole repository access, just the releases data.我试过的:这篇文章建议使用
Full control of private repositories scope
,但我不想授权整个存储库访问,只是发布数据。
Regarding API calls , the documentation still mention:关于API 调用,文档中还提到:
A token with
repo
scope returns a response that includes all public and private repositories we have access to see on github.com.带有
repo
scope的令牌返回一个响应,其中包括我们可以在 github.com 上看到的所有公共和私有存储库。
And that scope does grant full access to private and public repositories. scope 确实授予对私有和公共存储库的完全访问权限。
Try with a token screated with repo:status
, for testing: that would not grant write access.尝试使用
repo:status
创建的令牌进行测试:这不会授予写访问权限。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.