Google Colab cannot access github private "organization" Repos with Third Party Restrictions enabled

Viewed 606

Goal: enable access to Github organization private repos from Google Colab and maintain Github Organization Restrictions as Third-party application access policy.

  • Unable to see private "organization" repos in Google Colab from Github tab in open dialog box.

  • Removed third party access restrictions in Github organization settings per link. Was able to see private repos for the organization.

  • Saved a test .pynb file to private repo. Was able to see and open. On opening, a gitlab permissions dialog flashed on the screen momentarily (was only able to read it by capturing with a camera image), and then the file opened in Gitlab. Other than the spurious dialog, access is enabled, but third party access restrictions are not in place.

  • After re-enabling restrictions per link I was only able to see public "organization" repos. No permissions dialog was presented as described.

1 Answers

When connecting from Google Colab to GitHub you can grant Colab access to your own private repos quite easily. But when it comes to an organizations' repos it needs some extra steps.

  1. Request access using the Colab main page and follow the instructions in the colab-github-demo.
  2. Now an owner of your organization has to grant access in the "Third-party-settings".
  3. Note that if you are also owner of the organization you get the "grant" option also on your private profile. Once granted and revoked there you will have to go to your organization settings to re-grant the access.
Related