You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For private git dependencies, it is recommended to use SSH. But GitHub themselves disengage SSH and also this is only feasable locally. On CIs for every private repo, a new SSH key has to be generated, which then can be entered in the repos as Deployment Key to allow fetching the dependency (one key CANNOT be used for multiple repos, unfortunately).
So we should give the hint to authenticate via access tokens, e.g. one generated with "GitHub App"s.
Page URL
https://dart.dev/tools/pub/dependencies#git-packages
Page source
https://github.com/dart-lang/site-www/tree/main/src/content/tools/pub/dependencies.md
Describe the problem
For private git dependencies, it is recommended to use SSH. But GitHub themselves disengage SSH and also this is only feasable locally. On CIs for every private repo, a new SSH key has to be generated, which then can be entered in the repos as
Deployment Key
to allow fetching the dependency (one key CANNOT be used for multiple repos, unfortunately).So we should give the hint to authenticate via access tokens, e.g. one generated with "GitHub App"s.
Here a common workflow:
Would that be a valid approach to link in the docs?
Expected fix
Provide a link or add an example how to fetch private repository dependencies from git via access tokens.
Additional context
No response
I would like to fix this problem.
The text was updated successfully, but these errors were encountered: