You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the download fails because the tarball_url redirects to the login page.
I would expect all URLs exposed in the API to work with token Authorization.
Is there another way to download the source tarball for a repo using the API? I tried to use the assets API, however it seems like source {tar,zip}balls aren't considered to be assets in a release.
Gitea Version
1.21.4
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
Fedora 38
How are you running Gitea?
I'm running Gitea via the official docker container gitea/gitea:1.21.4.
Database
SQLite
The text was updated successfully, but these errors were encountered:
Backport #29342 by @Zettat123Fix#29249
~~Use the `/repos/{owner}/{repo}/archive/{archive}` API to download.~~
Apply #26430 to archive download URLs.
Co-authored-by: Zettat123 <zettat123@gmail.com>
Description
I'm attempting to use the Gitea API to download a source tarball for my repository.
However, the download fails because the tarball_url redirects to the login page.
I would expect all URLs exposed in the API to work with token Authorization.
Is there another way to download the source tarball for a repo using the API? I tried to use the assets API, however it seems like source {tar,zip}balls aren't considered to be assets in a release.
Gitea Version
1.21.4
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
Fedora 38
How are you running Gitea?
I'm running Gitea via the official docker container
gitea/gitea:1.21.4
.Database
SQLite
The text was updated successfully, but these errors were encountered: