gitea: Can't migrate from github without login + login does not work with 2FA

  • Gitea version (or commit ref): b84a251fc
  • Git version: 2.11.0
  • Operating system: DietPi (based on Raspbian Stretch)
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist: x

Description

I want to clone (migrate) a public repository from Github to my account. I don’t want to migrate any Issues, Wikis or anything. Just the repository. Every time I try to do that, it tells me I have to put in my credentials (I should not have to). If I put in my credentials, it still does not work, because it does not accept 2FA.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 22 (11 by maintainers)

Most upvoted comments

Glad I found this issue, my username was filled in automatically, but the credentials fields weren’t visible by default. Perhaps it would be better to give a regular user more specific feedback about the issue. Feedback is indeed in the log as “401 bad credentials”. But in the web interface, the only message is " failed".

Is your browser filling in credentials for some reason? I can migrate/clone that repo successfully on both try as well as my local build with no credentials.

Well. I didn’t know it even fills in hidden entries. I purposefully never opened it to not even let it think about filling in anything. This seemed to be it. Sorry about all the fuzz.

Unauthenticated requests are very limited by Github API and would fail for many migrations

Is your browser filling in credentials for some reason?
I can migrate/clone that repo successfully on both try as well as my local build with no credentials.

You should be able to use a personal access token for this:

At github go to https://github.com/settings/tokens and create one then you can use that token as the username on the migration form