pangeo-data / escience-2022

eScience 2022 course on Tools in Climate Science: Linking Observations with Modelling
https://pangeo-data.github.io/escience-2022/
Other
13 stars 2 forks source link

Recommendations on how to authenticate in Github #3

Open sarambl opened 1 year ago

sarambl commented 1 year ago

Thanks for an amazing tutorial with so many great resources! I was wondering what would be the recommendation on authentication for github and maybe in general workflow if we are using the egi notebook (jupyter hub?) during the course?

sarambl commented 1 year ago

@annefou , sorry to bother! But do you have any brilliant advice here? Last time I recall I thought it was a bit tidious with the tokens etc!

rabernat commented 1 year ago

I would recommend using the method established by 2i2c: https://docs.2i2c.org/en/latest/data/git.html. This uses @yuvipanda's gh-scoped-creds.

fairyeszhuo commented 1 year ago

I think it's nice to use at a terminal "gh auto login", to connect github directly.

yuvipanda commented 1 year ago

@fairyeszhuo the problem with that would be that any JupyterHub admin now can have full access to your GitHub, and that is a big security issue unfortunately.

fairyeszhuo commented 1 year ago

Great to know, I'll try this 2i2c suggested by rabernat.