tanium / octobot

github bot with slack and jira integration
MIT License
25 stars 16 forks source link

Update clone URL when re-using old clone directories #217

Closed matthauck closed 5 years ago

matthauck commented 5 years ago

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.

mikebroome commented 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

matthauck commented 5 years ago

For posterity: found a better solution here: #219.