简体   繁体   English

GitHub 个人访问令牌 scope 仅用于从私人仓库获取发布数据

[英]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.

相关问题 GitHub 个人访问令牌私人回购 scope - GitHub Personal Access Token Private repo scope 从 github 私人仓库安装 package 没有个人访问令牌 - Install package from github private repo without personal access token Github 版本 - 它们是私有仓库的私有版本吗? - Github releases - are they private for private repo? 无法让个人访问令牌与 github 一起用于自己的回购 - Can't get personal access tokens to work with github for own repo 我可以从私有 github 存储库公开发布吗? - Can I make releases public from a private github repo? 使用个人访问令牌 Netbeans 克隆私有 Github 回购 - Clone a Private Github Repo with a Personal Access Token Netbeans 如何使用个人访问令牌在 github 操作工作流 (B) 中从不同的存储库 (B) 提交和推送到私有存储库 (A) - How to commit and push to a private repo(A), from a different repo(B), in github actions workflow (B) , using personal access token 在将个人访问令牌添加到 .npmrc 后,在私有仓库上获得 404 - Getting a 404 on a private repo after adding a personal access token to .npmrc github 仅具有克隆访问权限的个人访问令牌 scope - github personal access token with clone access only scope 从 Postman 访问 Github 私有仓库 - Access Github private repo from Postman
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM