InseeFrLab / legacy-onyxia-entrypoint

🔬 A data science oriented container launcher
MIT License
69 stars 3 forks source link

Personal access token #3

Open marchufschmitt opened 3 years ago

marchufschmitt commented 3 years ago
odysseu commented 2 years ago

It would be great if one could add personnal access tokens from several repositories (github.com, gitlab.com, ...) and to name them accordingly. For instance, it'd be nice to have the my account --> external services menu suggest :

================================================================= Connect your Gitlab, Github and Kaggle accounts

Connect your services to external accounts using personal access tokens and environment variables Git repo name Personal access token Environement variable actions
github.com **** $GIT_PERSONAL_ACCESS_TOKEN (default) 👁️ 🖊️
gitlab.com **** $GITLAB_PERSONAL_ACCESS_TOKEN 👁️ 🖊️
gitlab.my_company.com **** $GITLAB_MY_ENTERPRISE_PERSONAL_ACCESS_TOKEN 👁️ 🖊️
garronej commented 2 years ago

Hi,
Thanks for the suggestion.
Github is a special token, it allows to automatically clone private token.
For the more generic token you can use the "My secrets". The secret you create there can be made available as environment variable in your services.
Have you tried that?