-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Shim /v3/repos
API for actions/checkout
#29676
Comments
actions/checkout
fully compatibleactions/checkout
actions/checkout
/v3/repos
API for actions/checkout
This action would also call the api if you use an docker image / system without |
This was reported in Discord, I asked the user to share more details on how they are running into this issue. |
Yes, this section confirms that the affected code is only used when git is not available: |
I think we may consider just requiring |
The issue mentioned in the discord is this one on: push
jobs:
_:
runs-on: k8s # <--- change this to match what you use
container: buildpack-deps:noble # <--- any image with git would trigger this
steps:
- uses: https://github.com/actions/checkout@v3
with:
repository: christopher/service-container # <--- This also trigger the /v3 path log with the actions/runner on gitea with usable git is installed
That's what I'm doing for my own purposes, since 2021... |
The only other two API calls I see in this fallback code are here: These go to |
I don't think it's wise to require |
I guess I should say on this bug; I'm the user who reported it in discord, and #29654 is my report of this. The details are in #29654, but in short, the actions workflow that I have that runs into this is basically this example; the second repo's ref isn't plumbed in via the normal means. Manually specifying a ref to check out in the action works around this issue. |
Closing in favor of #29654. |
Description
Under condition
!ref && !commit
,actions/checkout
calls out to the GitHub API:https://github.com/actions/checkout/blob/8eb1f6a495037164bea451156472f35fdd6bafc0/src/github-api-helper.ts#L26
It will fetch
/api/v3/repos/[user]/[reponame]
which is not available on Gitea's API. I wonder whether we should make some shims specific for this because the action it by far the most commonly action to use.Original issue report: #29654
The text was updated successfully, but these errors were encountered: