Can't mirror private GitHub repos with token as password #3929

Closed
opened 2025-11-02 05:30:56 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @SuperSandro2000 on GitHub (Sep 10, 2019).

  • Gitea version (or commit ref): 1.10.0+dev-271-g7eacdcf39
  • Git version: not applicable
  • Operating system:
  • Database (use [x]): Docker on Ubuntu
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL), can't provide URL
    • No
    • Not relevant
  • Log gist:
routers/repo/repo.go:323:MigratePost() [E] MigratePost: GET https://api.github.com/repos/SuperSandro2000/xxxxxxxxxxx: 404 Not Found []

Description

I want to mirror a private GitHub Repository and provide my login details via my username and a generated token. According to this page this should work but it yields a 500.

Originally created by @SuperSandro2000 on GitHub (Sep 10, 2019). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.10.0+dev-271-g7eacdcf39 - Git version: not applicable - Operating system: - Database (use `[x]`): Docker on Ubuntu - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (provide example URL), can't provide URL - [ ] No - [ ] Not relevant - Log gist: ```` routers/repo/repo.go:323:MigratePost() [E] MigratePost: GET https://api.github.com/repos/SuperSandro2000/xxxxxxxxxxx: 404 Not Found [] ```` ## Description I want to mirror a private GitHub Repository and provide my login details via my username and a generated token. According to [this page](https://github.com/settings/tokens/new) this should work but it yields a 500.
GiteaMirror added the type/question label 2025-11-02 05:30:56 -06:00
Author
Owner

@stale[bot] commented on GitHub (Nov 9, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Nov 9, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@SuperSandro2000 commented on GitHub (Nov 9, 2019):

Hey stale bot. This is not fixed.

@SuperSandro2000 commented on GitHub (Nov 9, 2019): Hey stale bot. This is not fixed.
Author
Owner

@lunny commented on GitHub (Nov 9, 2019):

How about use token as username?

@lunny commented on GitHub (Nov 9, 2019): How about use token as username?
Author
Owner

@SuperSandro2000 commented on GitHub (Nov 10, 2019):

I think I used the wrong permissions on the token. Would be nice if a note about this could be added to the gui.

@SuperSandro2000 commented on GitHub (Nov 10, 2019): I think I used the wrong permissions on the token. Would be nice if a note about this could be added to the gui.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3929