forgejo/discussions
49
43

Support Forgejo Actions if Forgejo is hosted on a subpath #443

Open
opened 2026年02月06日 16:49:45 +01:00 by JulianWgs · 1 comment

Hi,

I talked with someone at FOSDEM about this, but I don't remember their name. They told be to open an issue here.

There is a long standing issue with the checkout action so that it doesn't work when the Git Forge (Github or Forgejo) is hosted under a supath. Github does not want to support this as it is only applicable to Forgejo instances. As the the repo for checkout action for Forgejo is a read-only mirror of the Github checkout action there is no way to contribute a fix that.

The fix (including test and doc changes) includes less than a 100 changed lines. I think it would be worthwhile considering to maintaining this out of tree patchset for Forgejo users. I am unfortunately not a JavaScipt / TypeScript programmer so I can't really take care of the code, but I would volunteer to test it.

There is also a rebased version from 2024.

Thank you & best regards
Julian

PS: When using Tailscale (as I am) to my knowledge it is not trivially possible to host Forgejo under a subdomain, so subpaths are kind of necessary in that case.

Hi, I talked with someone at FOSDEM about this, but I don't remember their name. They told be to open an issue here. There is a long standing [issue](https://github.com/actions/checkout/issues/1242) with the checkout action so that it doesn't work when the Git Forge (Github or Forgejo) is hosted under a supath. Github does not want to support this as it is only applicable to Forgejo instances. As the the [repo for checkout action](https://code.forgejo.org/actions/checkout) for Forgejo is a read-only mirror of the Github checkout action there is no way to contribute a fix that. The [fix](https://github.com/actions/checkout/pull/1305) (including test and doc changes) includes less than a 100 changed lines. I think it would be worthwhile considering to maintaining this out of tree patchset for Forgejo users. I am unfortunately not a JavaScipt / TypeScript programmer so I can't really take care of the code, but I would volunteer to test it. There is also a [rebased version](https://github.com/Arniiiii/checkout_path_fix) from 2024. Thank you & best regards Julian PS: When using Tailscale (as I am) to my knowledge it is not trivially possible to host Forgejo under a subdomain, so subpaths are kind of necessary in that case.

GitHub's actions/checkout has multiple problems. This is one of them. Another one is lack of support for Git repositories that use SHA-256. It's also not great that Forgejo Actions is reliant on GitHub for such an essential functionality.

I don't think it makes sense to soft-fork GitHub actions/checkout. Soft-forking does not seem to work well in case of actions/upload-artifact and actions/download-artifact.

It would be great if Forgejo Runner could perform essential operations like checkout and upload/download artifact without an action. An interesting option to explore would be whether Forgejo Runner could inject pre-built binaries into a job, similarly to what Docker/Podman does with --init. That could also solve some problems mentioned in #422 (somebody posted their alternative to actions/checkout in there). I'd also welcome if a group of people decided to build and maintain a completely new action that replaces GitHub's actions/checkout.

GitHub's actions/checkout has multiple problems. This is one of them. Another one is lack of support for Git repositories that use SHA-256. It's also not great that Forgejo Actions is reliant on GitHub for such an essential functionality. I don't think it makes sense to soft-fork GitHub actions/checkout. Soft-forking does not seem to work well [in case of actions/upload-artifact and actions/download-artifact](https://code.forgejo.org/forgejo/forgejo-actions-feature-requests/issues/85). It would be great if Forgejo Runner could perform essential operations like checkout and upload/download artifact without an action. An interesting option to explore would be whether Forgejo Runner could inject pre-built binaries into a job, similarly to what Docker/Podman does with `--init`. That could also solve some problems mentioned in https://codeberg.org/forgejo/discussions/issues/422 (somebody posted their alternative to actions/checkout in there). I'd also welcome if a group of people decided to build and maintain a completely new action that replaces GitHub's actions/checkout.
Sign in to join this conversation.
No Branch/Tag specified
No results found.
No results found.
Labels
Clear labels
User research - Accessibility
Requires input about accessibility features, likely involves user testing.
User research - Blocked
Do not pick as-is! We are happy if you can help, but please coordinate with ongoing redesign in this area.
User research - Community
Community features, such as discovering other people's work or otherwise feeling welcome on a Forgejo instance.
User research - Config (instance)
Instance-wide configuration, authentication and other admin-only needs.
User research - Errors
How to deal with errors in the application and write helpful error messages.
User research - Filters
How filter and search is being worked with.
User research - Future backlog
The issue might be inspiring for future design work.
User research - Git workflow
AGit, fork-based and new Git workflow, PR creation etc
User research - Labels
Active research about Labels
User research - Moderation
Moderation Featuers for Admins are undergoing active User Research
User research - Needs input
Use this label to let the User Research team know their input is requested.
User research - Notifications/Dashboard
Research on how users should know what to do next.
User research - Rendering
Text rendering, markup languages etc
User research - Repo creation
Active research about the New Repo dialog.
User research - Repo units
The repo sections, disabling them and the "Add more" button.
User research - Security
User research - Settings (in-app)
How to structure in-app settings in the future?
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
forgejo/discussions#443
Reference in a new issue
forgejo/discussions
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?