0

I have setup the drone host in my development environment. And I use github account as the authentication to login my drone website. After login, drone shows I have empty repository list. However, I didn't create any repository on github but I have an admin permission on one of the private repository. How can I let drone dicover that repository? Is there any configuration to be done for that case?

Joey Yi Zhao
  • 37,514
  • 71
  • 268
  • 523
  • On the "Account" page, doesn't the repository show up? – tkausl Dec 12 '16 at 22:55
  • It doesn't show up. This repository is not owned by my account. But I have the admin permission for this repository. – Joey Yi Zhao Dec 12 '16 at 22:58
  • This might be a bug, I've seen a similar issue for Bitbucket: https://github.com/drone/drone/issues/1667 – tkausl Dec 12 '16 at 23:02
  • Yes that issue is for Bitbucket but not sure it is an issue for Github. Where can I get confirmed about this issue? – Joey Yi Zhao Dec 12 '16 at 23:39
  • I'd recommend checking the third party application policy for your account, and for the organization that owns the repository. It is very possible the organization has restrictions on third party applications accessing its repositories. For more details see https://github.com/blog/1941-organization-approved-applications – Brad Rydzewski Dec 13 '16 at 00:23
  • I already add drone in the authorized application and gave the 'Full control of private repositories' permission. – Joey Yi Zhao Dec 13 '16 at 02:20
  • have you confirmed the organization that owns the repository has enabled the drone application at the organization-level? This is a common issue and would explain what you are seeing. – Brad Rydzewski Dec 13 '16 at 05:40
  • note that if you feel you feel you have enabled everything at both the user account and organization level, perhaps you could include screenshots of the two screens to confirm? What does the `/api/user/repos/remote` endpoint return in drone? Do you see your repository there? If not, it is not being returned from GitHub so perhaps you need to consult GitHub support. – Brad Rydzewski Dec 13 '16 at 05:41
  • Which version of drone? 0.4.x or 0.5.x? – mbeacom Dec 22 '16 at 03:19
  • I am using drone 0.5 – Joey Yi Zhao Dec 23 '16 at 22:06

0 Answers0