-
Notifications
You must be signed in to change notification settings - Fork 87
Improve GitHub support #448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
08f4ec7 to
6555cad
Compare
We also require a github token to download github action results.
5b6931b to
737e8b4
Compare
GaetanLepage
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ! Thanks :)
| # Allow substring match as hub uses yaml. Example string we match: | ||
| # " - oauth_token: ghp_abcdefghijklmnopqrstuvwxyzABCDEF1234\n" | ||
| token_match = re.search( | ||
| r"\s*oauth_token:\s+((?:gh[po]_)?[A-Za-z0-9]+)", line |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This removes reading of the token from the hub tool. It looks unrelated to ofborg removal. Is the removal intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes we had several instances where this token was out of date. Also hub now often stores git hub tokens in platform specific keychains. Using GH is better because the token than should always work and not leave the user with a 403 error, that they have to debug.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha, thank you! I'll try to migrate from hub to gh.
No description provided.