Forgejo action does not work with short name #557

Closed
opened 2026-05-06 08:53:11 +00:00 by lecris · 7 comments
Contributor

Summary

Local forgejo action names like ci/testing-farm@main should in principle be equivalent to https://forge.fedoraproject.org/ci/testing-farm@main, but that's not the case it seems (probably due to setup).

Details

Here is an example run as ci/testing-farm@main and failing to resolve, while this one with https://forge.fedoraproject.org/ci/testing-farm@main manages to resolve

  ☁️  git fetch 'https://data.forgejo.org/actions/checkout' # ref=v6
  ☁️  git clone 'https://data.forgejo.org/ci/testing-farm' # ref=main
⚙️ [runner]: unable to clone 'https://data.forgejo.org/ci/testing-farm' to '/data/.cache/act/78/89526b02598dc0a55fc9fac540d6a226000bf241be6ecbf4bcc412cf1b9f1c': Cloning into bare repository '/data/.cache/act/78/89526b02598dc0a55fc9fac540d6a226000bf241be6ecbf4bcc412cf1b9f1c'...\nremote: Not found.\nfatal: repository 'https://data.forgejo.org/ci/testing-farm/' not found: exit status 128

(it is trying to get them from forgejo instead of forge.fedoraproject.org)

### Summary Local forgejo action names like `ci/testing-farm@main` should in principle be equivalent to `https://forge.fedoraproject.org/ci/testing-farm@main`, but that's not the case it seems (probably due to setup). ### Details [Here](https://forge.fedoraproject.org/ci/_atomic-desktops-config/actions/runs/1/jobs/0/attempt/1) is an example run as `ci/testing-farm@main` and failing to resolve, while [this one](https://forge.fedoraproject.org/ci/_atomic-desktops-config/actions/runs/2/jobs/0/attempt/1) with `https://forge.fedoraproject.org/ci/testing-farm@main` manages to resolve <details> ``` ☁️ git fetch 'https://data.forgejo.org/actions/checkout' # ref=v6 ☁️ git clone 'https://data.forgejo.org/ci/testing-farm' # ref=main ⚙️ [runner]: unable to clone 'https://data.forgejo.org/ci/testing-farm' to '/data/.cache/act/78/89526b02598dc0a55fc9fac540d6a226000bf241be6ecbf4bcc412cf1b9f1c': Cloning into bare repository '/data/.cache/act/78/89526b02598dc0a55fc9fac540d6a226000bf241be6ecbf4bcc412cf1b9f1c'...\nremote: Not found.\nfatal: repository 'https://data.forgejo.org/ci/testing-farm/' not found: exit status 128 ``` (it is trying to get them from forgejo instead of forge.fedoraproject.org) </details>
ryanlerch added this to the Backlog project 2026-05-14 05:44:31 +00:00
humaton modified the project from Backlog to Sprint 21 2026-05-18 10:29:35 +00:00
Owner

ok, except in your example, if we change DEFAULT_ACTIONS_URL away from the the default of data.forgejo.org the actions/checkout action shortname wont resolve anymore.

ok, except in your example, if we change [DEFAULT_ACTIONS_URL](https://forgejo.org/docs/latest/admin/config-cheat-sheet/#actions-actions) away from the the default of `data.forgejo.org` the `actions/checkout` action shortname wont resolve anymore.
Owner

one workaround here would be to create an org actions on forge.fp.o and mirror the standard actions on https://data.forgejo.org/actions/

then we could change DEFAULT_ACTIONS_URL to https://forge.fedoraproject.org

that org would need to be maintained by someone though, if more actions are added.

one workaround here would be to create an org `actions` on forge.fp.o and mirror the standard actions on https://data.forgejo.org/actions/ then we could change `DEFAULT_ACTIONS_URL` to https://forge.fedoraproject.org that org would need to be maintained by someone though, if more actions are added.
Author
Contributor

I expect this is a common issue in upstream. My thinking is to allow DEFAULT_ACTIONS_URL to be a list behaving as fallback. There would be potential name collisions in both cases.

At least mirroring should not be that problematic, since that is done in upstream just as well https://code.forgejo.org/actions

I expect this is a common issue in upstream. My thinking is to allow `DEFAULT_ACTIONS_URL` to be a list behaving as fallback. There would be potential name collisions in both cases. At least mirroring should not be that problematic, since that is done in upstream just as well https://code.forgejo.org/actions
Owner

AUIU, the current setup we have would behave the same way as you are experiencing on codeberg -- ci/testing-farm@main would not resolve to codeberg.org/ci/testing-farm@main -- it would resolve to data.forgejo.org, and fail just as it does on forge.

That said, the mirroring should work -- its just who will maintain it.

The other option is to just use full URIs when referring to non-default actions (i.e.) in the actions provided by forgejo itself.

AUIU, the current setup we have would behave the same way as you are experiencing on codeberg -- ci/testing-farm@main would not resolve to codeberg.org/ci/testing-farm@main -- it would resolve to data.forgejo.org, and fail just as it does on forge. That said, the mirroring should work -- its just who will maintain it. The other option is to just use full URIs when referring to non-default actions (i.e.) in the actions provided by forgejo itself.
Owner

I think we should do the mirror, for now I will be maintaining the org. Will create SOP's for it and eventually find more maintainers.

I think we should do the mirror, for now I will be maintaining the org. Will create SOP's for it and eventually find more maintainers.
Owner

@humaton the new org has been created, and i have mirrored all the repos on code.forgejo.org/actions to the new org:

https://forge.fedoraproject.org/actions

@humaton the new org has been created, and i have mirrored all the repos on code.forgejo.org/actions to the new org: https://forge.fedoraproject.org/actions
Owner

final step is to update the config changing DEFAULT_ACTIONS_URL to forge.fedoraproject.org and then test -- will do this later today when more people are around to tell me if it breaks any actions.

final step is to update the config changing DEFAULT_ACTIONS_URL to `forge.fedoraproject.org` and then test -- will do this later today when more people are around to tell me if it breaks any actions.
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
forge/forge#557
No description provided.