TGTGInsighttelegram intelligenceLIVE / telegram public index
← Hypercube's Channel
Hypercube's Channel avatar

TGINSIGHT POST

Post #93

@SmartHypercube_channel

Hypercube's Channel

Views297帖子阅读量
发布10月21日2022/10/21 17:17
Post content

帖子内容

GitHub 发布了 fine-grained personal access tokens。以前这个问题很难解决:你和别人在一台服务器上合作,你们希望这台机器有权限读写某几个 GitHub 私有仓库。 1. 某个人在这台机器上创建一个 SSH key 并添加到自己的 GitHub 账号,坏处是合作者可以访问他的所有私有仓库了。 2. 某个人创建一个 personal access token 并放在这台机器上,坏处同上,因为 personal access token 不能按 repo 设置权限,只能允许读写所有私有仓库。 3. 为每个仓库创建一个 deploy key,坏处是要管理很多个不同的 deploy key,执行各种 git 命令时都要选择正确的那个 key,很不方便。(GitHub 不允许任何 deploy key 相同) 这个新功能就是给 2 加上了细粒度权限设置,一个 personal access token 最多可以拥有 50 个仓库的权限。可惜不能为每个仓库分别设置不同的权限,目前只支持指定一堆仓库,再指定对所有这些仓库都拥有什么权限。 https://github.blog/2022-10-18-introducing-fine-grained-personal-access-tokens-for-github/