9

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!

Community
  • 1
  • 1
user2777473
  • 3,736
  • 5
  • 26
  • 39

2 Answers2

5

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

Community
  • 1
  • 1
trf
  • 1,279
  • 1
  • 13
  • 33
  • 2
    Doing this gives R/W permissions. Any way to grant read-only access? – user2777473 Oct 22 '13 at 14:17
  • @user2777473 currently I see no way to get a "read only" deploy key.. sounds like they do not currently exist on Github. – Erik May 27 '14 at 19:02
  • 3
    Now they do! [https://github.com/blog/2024-read-only-deploy-keys](https://github.com/blog/2024-read-only-deploy-keys) – ClarkZinzow Dec 23 '16 at 20:53
4

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.

Berik
  • 7,816
  • 2
  • 32
  • 40
  • The repo is not an organization. and none of the team members has github accounts. :-( We are distributing SSH keys for the access. – user2777473 Oct 22 '13 at 14:18