0

I'm using the following package in order to generate a github app: https://github.com/swinton/github-app-demo.py

I was able to get the installation and all the details looks ok there. However, when I'm trying to list the repos, using the url: "installation/repositories", I'm getting an empty set. Thought maybe it's a permissions issue so granted the app all the possible permissions but still no luck.

update: when adding a new repo for my user I was able to see it. However, I can't see the organisation's repos.

Any ideas?

Thanks,

Nir.

Nir99
  • 185
  • 3
  • 15
  • Can you post ur code please? – DineshKumar Jul 14 '20 at 15:26
  • @DineshKumar- the code is in the link. https://github.com/swinton/github-app-demo.py didn't change anything meaningful. – Nir99 Jul 14 '20 at 20:16
  • Could you check whether the organization's repositories are private. Also, is the authentication properly setup. As per https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation one needs to provide an installation access token and this token gets invalidated when repository permissions are changed. Also the installation tokens expire after sometime. – Asif Kamran Malick Jul 21 '20 at 21:50
  • thanks @AsifKamranMalick. The issue was that I installed in my private area and not in the organization. Therefore, I wasn't able to see the organization's repos. – Nir99 Jul 22 '20 at 13:20
  • @Nir99 Glad it got resolved. It would be great you just post an answer and accept it. This will help others. – Asif Kamran Malick Jul 23 '20 at 05:55
  • @AsifKamranMalick done. – Nir99 Jul 23 '20 at 15:15

1 Answers1

0

The reason for this was that I've installed the the app in my private area and not in the organization. Therefore, I wasn't able to access the organization's private repos.

Nir99
  • 185
  • 3
  • 15