简体   繁体   English

GitHub 个人访问令牌私人回购 scope

[英]GitHub Personal Access Token Private repo scope

I am currently trying out Netlify function and using Netlify-cli to setup the CD.我目前正在试用 Netlify function 并使用 Netlify-cli 设置 CD。 In the authorizing options, I picked the GitHub Personal Access Token and I want to know if the Full control of private repositories scope will include the private repos in the organization that I am apart of as I don't want it to access the repos in the organization.在授权选项中,我选择了 GitHub 个人访问令牌,我想知道Full control of private repositories是否将包括我所在的组织中的私有存储库,因为我不希望它访问存储库该组织。

The scope has a few implications and you should probably look at a user specific role for setting up access tokens without giving access to a user (yourself) as the owner of the org repositories you have. scope 有一些含义,您可能应该查看用于设置访问令牌的用户特定角色,而不授予用户(您自己)作为您拥有的组织存储库的所有者的访问权限。

Create a (machine) user that has access to only the one repository or repositories (private) that would limit the access to these repositories or an organization repository.创建一个(机器)用户,该用户只能访问一个或多个存储库(私有),这将限制对这些存储库或组织存储库的访问。 Since private tokens have read/write access this is a prudent approach to making sure you're limiting access to other repositories using the token.由于私有令牌具有读/写访问权限,因此这是一种谨慎的方法,可确保您使用该令牌限制对其他存储库的访问。

If at a later time this changes on Github, this will no longer be needed.如果稍后在 Github 上发生更改,则不再需要此设置。 It is the approach I have used to limit my exposure to a leaked token or access.这是我用来限制暴露于泄露的令牌或访问权限的方法。

暂无
暂无

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

相关问题 使用个人访问令牌 Netbeans 克隆私有 Github 回购 - Clone a Private Github Repo with a Personal Access Token Netbeans 从 github 私人仓库安装 package 没有个人访问令牌 - Install package from github private repo without personal access token GitHub 个人访问令牌 scope 仅用于从私人仓库获取发布数据 - GitHub personal access tokens scope only for getting releases data from private repo 使用个人访问令牌将 Gradle 上的脚本应用于私有(企业)github 存储库 - Apply Script on Gradle to private (enterprise) github repo using personal access token Github 用于访问私有存储库的个人访问令牌:/repos/:user/:repo/contents - Github personal access token for accessing private repository's: /repos/:user/:repo/contents 如何使用个人访问令牌在 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 Github使用访问令牌获取私人仓库 - Github GET on private repo with access token 在将个人访问令牌添加到 .npmrc 后,在私有仓库上获得 404 - Getting a 404 on a private repo after adding a personal access token to .npmrc 无法在私人仓库中使用个人访问令牌列出仓库 webhook - Cannot list repository webhooks using personal access token in private repo Git clone总是要求个人访问令牌(私人仓库) - Git clone always asks for Personal Access Token (private repo)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM