Skip to content
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

Improve GitHub support #448

Merged
merged 3 commits into from
Jan 2, 2025
Merged

Improve GitHub support #448

merged 3 commits into from
Jan 2, 2025

Conversation

Mic92
Copy link
Owner

@Mic92 Mic92 commented Jan 2, 2025

No description provided.

@Mic92 Mic92 force-pushed the improve-github-support branch 2 times, most recently from 08f4ec7 to 6555cad Compare January 2, 2025 09:33
Mic92 added 2 commits January 2, 2025 11:05
We also require a github token to download github action results.
@Mic92 Mic92 force-pushed the improve-github-support branch from 5b6931b to 737e8b4 Compare January 2, 2025 10:06
@Mic92
Copy link
Owner Author

Mic92 commented Jan 2, 2025

cc @GaetanLepage

Copy link
Contributor

@GaetanLepage GaetanLepage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ! Thanks :)

@Mic92 Mic92 merged commit c85e370 into master Jan 2, 2025
3 checks passed
@Mic92 Mic92 deleted the improve-github-support branch January 2, 2025 10:14
# 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
Copy link
Contributor

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?

Copy link
Owner Author

@Mic92 Mic92 Jan 5, 2025

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.

Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants