Github:只读访问一个私人回购 [英] Github: readonly access to a private repo

查看:146
本文介绍了Github:只读访问一个私人回购的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Github上开发一些私人项目,并且我想每晚在我的部署服务器中添加cronjobs以从github中提取最新版本。我目前通过在每个部署服务器上生成密钥对并将公钥作为'部署密钥'添加到github项目中来完成此操作。然而,我最近发现这些部署密钥实际上具有写入项目的权限。因此,每个服务器管理员都可能开始编辑。此外,我可以将每个部署密钥添加到一个存储库,而我希望能够在同一个部署服务器上部署多个存储库。



有没有办法为Github上的选定用户提供私人存储库的只读访问权限?

twitter.com/defunkt/status/1678391086419969rel =noreferrer>拥有良好的权威性,(相对较新的)组织功能允许您将只读访问权限的人员添加到私人存储库。


I am developing some private projects on Github, and I would like to add nightly cronjobs to my deployments servers to pull the latest version from github. I am currently doing this by generating keypairs on every deployment server and adding the public key to the github project as 'Deployment key'.

However, I recently found out that these deployment keys actually do have write access to the project. Hence, every of the server administrators could potentially start editing. Furthermore I can add every deployment key to only one repository, whereas I would like to be able to deploy multiple repositories on one and the same deployment server.

Is there a way to provide read-only access for private repositories to selected users on Github?

解决方案

I have it on good authority that the (relatively new) "Organizations" feature allows you to add people with read-only access to a private repository.

这篇关于Github:只读访问一个私人回购的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆