Closed matthauck closed 5 years ago
A little additional context:
the &url
in this line updates the access token
https://github.com/tanium/octobot/blob/28da2df4c45c9b8bd34fa7d2221334bdc642f77a/src/git_clone_manager.rs#L46
Per GitHub, that's the way to do it : https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#http-based-git-access-by-an-installation
For posterity: found a better solution here: #219.
The access token used to clone it the previous time may no longer be valid, so make sure we always update to the latest one.