Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set up github readonly access

Tags:

github

I have a private repo at github and the access is controlled by deployment ssh key pairs. Now I want to set up a read-only access for CI.

I searched this: Github: readonly access to a private repo

but still clueless.

Anybody can let me know how to do it?

Thanks in advance!

like image 246
user2777473 Avatar asked Oct 22 '13 13:10

user2777473


People also ask

Can I Fork a GitHub repository with read-only access?

The read-only access that we currently offer to GitHub Organizations still allows users to both clone and fork the repositories that they have permission to read This does not give users the ability to push data, so this should work for your particular use case. Hope this helps!

Can I add people with read-only access to a private repository?

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. Show activity on this post. For anyone else finding this question, know that nowadays you can in fact create read-only deploy keys:

How do I create a read-only access team on GitHub?

You may be looking for GitHub deploy keys. See answers to this question for more detail. Go to https://github.com/organizations/<your organisation>/teams, there you can create a read-only access team for your repository. The difficulty of finding this page surprises me every time I need it.

Does GitHub CloudApp interfere with read-only access?

With GitHub CloudApp, this can interfere with read-only access as URL’s in CloudApp are either allow or block and takes precedence over URL policy. Read-only access needs access to the base URL’s but needs to find URL’s with keywords in them to block accordingly.


2 Answers

You may be looking for GitHub deploy keys. See answers to this question for more detail.

like image 192
trf Avatar answered Oct 12 '22 23:10

trf


Go to https://github.com/organizations/<your organisation>/teams, there you can create a read-only access team for your repository.

The difficulty of finding this page surprises me every time I need it.

like image 34
Berik Avatar answered Oct 13 '22 00:10

Berik