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

fix(): GitHub username not found when pushing to registry #589

Merged
merged 5 commits into from
Feb 20, 2025

Conversation

Jeffreyhung
Copy link
Member

@Jeffreyhung Jeffreyhung commented Feb 20, 2025

Restore getAuthUsername and pass placeholderusername if not found

Locally tested it with Simple-git and a GitHub App token. Confirmed Anthony's theory that the username field in https://username:[email protected]/owner/repo.git does not matter for both clone and push, so returning placeholderusername when no user is tied to a token, which usually is the case when it's a GitHub App token.

@Jeffreyhung Jeffreyhung marked this pull request as draft February 20, 2025 21:03
@Jeffreyhung Jeffreyhung marked this pull request as ready for review February 20, 2025 21:19
Copy link
Member

@asottile-sentry asottile-sentry left a comment

Choose a reason for hiding this comment

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

Copy link
Member

@asottile-sentry asottile-sentry left a comment

Choose a reason for hiding this comment

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

@Jeffreyhung Jeffreyhung merged commit 12a9328 into master Feb 20, 2025
11 checks passed
@Jeffreyhung Jeffreyhung deleted the fix-github-auth-issue-for-publish branch February 20, 2025 21:45
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.

2 participants