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

Can't push to github with 2FA #8665

Closed
buggtb opened this issue Mar 8, 2022 · 8 comments
Closed

Can't push to github with 2FA #8665

buggtb opened this issue Mar 8, 2022 · 8 comments

Comments

@buggtb
Copy link

buggtb commented Mar 8, 2022

Bug description

I don't know whats happening but when I open a new workspace using IntelliJ I have to jump through many hoops to actually push it back to github.

In gitlab I can open a terminal and commit push and it works, in github I get:

remote: Permission to unity-sds/unity-cs-terraform-transformer.git denied to buggtb.
fatal: unable to access 'https://github.com/unity-sds/unity-cs-terraform-transformer.git/': The requested URL returned error: 403

which is ironic because I created that repo and I'm an admin on it.

If I use the VCS tooling inside IntelliJ I get the same error.

Steps to reproduce

Create workspace via gitpod github button.

Commit and push.

Workspace affected

No response

Expected behavior

No response

Example repository

No response

Anything else?

No response

@axonasif
Copy link
Member

axonasif commented Mar 8, 2022

Hey @buggtb, can you try in a new workspace? Not sure if this has to do something but worth a try. Other than that, our IDE webapp team will be able to help if needed 🙏

@buggtb
Copy link
Author

buggtb commented Mar 8, 2022

Oh this isn't new, this has been the same in various workspaces for a few weeks

@buggtb
Copy link
Author

buggtb commented Mar 8, 2022

oooh, I suspect I know what it is, I have github 2FA enabled. Cause if I flip the url scheme and stick a key in the .ssh folder I can push to it.

@axonasif
Copy link
Member

axonasif commented Mar 8, 2022

Is it happening on VSCODE too? Can you please confirm?
If not:
Can you check if you have proper permissions granted for Github integration at https://gitpod.io/preferences ?
Also please see #8076 for more context.

@buggtb buggtb changed the title Can't push to github (Intellij maybe) Can't push to github with 2FA Mar 8, 2022
@axonasif
Copy link
Member

axonasif commented Mar 8, 2022

oooh, I suspect I know what it is, I have github 2FA enabled. Cause if I flip the url scheme and stick a key in the .ssh folder I can push to it.

Maybe try removing the github integration and adding it back, I have 2FA on my account too, probably the github token needs a refresh 🤔

@buggtb
Copy link
Author

buggtb commented Mar 8, 2022

yeah its mega confusing, the gitpod integration isn't on the org, so its probably that, but its a public repo, so it doesn't look like the stuff on the other ticket. Also if I create a token inside IntelliJ it doesn't work there either, but also doesn't tell anyone why.

Github make this so much harder than Gitlab 😒

@axonasif
Copy link
Member

axonasif commented Mar 8, 2022

yeah its mega confusing, the gitpod integration isn't on the org, so its probably that, but its a public repo, so it doesn't look like the stuff on the other ticket. Also if I create a token inside IntelliJ it doesn't work there either, but also doesn't tell anyone why.

Github make this so much harder than Gitlab 😒

That ticket applies to both public and private repos in some aspects. Just make sure that you have a proper github integration and check that github is not blocking gitpod in third-party-access as per the linked ticket.

@buggtb
Copy link
Author

buggtb commented Mar 8, 2022

Can confirm it was cause of the disabled integration on the org. Be nice on the other ticket to get more feedback when it something like that.

@buggtb buggtb closed this as completed Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants