Description
Description
I have a private repo, with an actions workflow that uses actions/checkout
(I've tried v3 and v4, both have this issue) to check out first itself, and then a different private repo, like this.
When I run this, the action fails with this error:
::group::Determining the default branch
Retrieving the default branch name
Not found.
Looking through the logs on the gitea side, I find:
2024/03/06 02:48:38 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v3/repos/[user]/[repo] for 10.89.0.2:0, 404 Not Found in 20.3ms @ web/goget.go:20(web.goGet)
Looking in the swagger ui, it looks like the base url is at /api/v1
, so I assume that a v3 version of the route is just nonexistent.
In the end, I was able to work around this issue by manually specifying a ref: master
to check out in the action's config, and that let the rest of the checkout succeed.
I'm having some trouble signing up on try.gitea.io at the moment, but I'll set up a repro on there when I get a chance.
Gitea Version
1.21.7
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.43.1
Operating System
linux (nixos unstable)
How are you running Gitea?
gitea via nixos's package (runs under systemd, no containers), behind a nginx reverse proxy.
gitea instance is under its own subdomain, no extra subdir that it lives under.
the actions runner is also installed via nixos's package manager, running under systemd, on the same box
Database
PostgreSQL