Skip to article frontmatterSkip to article content

๐Ÿ” Configuring GitHub authentication

GitHub authentication on shared cloud infrastructure is complicated.

Always remember, โ€œcloudโ€ is the same as โ€œsomeone elseโ€™s computerโ€. Itโ€™s not a good idea to store your credentials on someone elseโ€™s computer!

For this reason, we use a special tool called gh-scoped-creds to provide a special credential which grants restricted access to only certain GitHub resources for a limited amount of time.

Copy the GitHub authentication Notebookยถ

Thereโ€™s a special notebook titled GHAUTH.ipynb in the shared/ directory.

Right-click it, select โ€œCopyโ€, then return to your home directory by clicking the ๐Ÿ“ icon at the top of your file browser. Finally, right click in the empty space in your home directory and select โ€œPasteโ€.

Follow the instructions in the Notebookยถ

The first time you use this Notebook, you should open the โ€œFirst time setupโ€ hint and follow the instructions within.

After youโ€™ve completed first-time setup, run the code cell at the end of the Notebook and carefully follow the instructions output by this cell.

Granting permission for pushing to additional repositoryยถ

If you only granted access to one repository (recommended), you may want to add more later.

You can update the list of repositories you want to grant access to by visiting the configuration page for the CryoCloud GitHub application.