Better solution to actions/upload-artifact v4 #15038

Open
opened 2025-11-02 11:28:43 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @TheBrokenRail on GitHub (Oct 20, 2025).

Feature Description

Right now, this is the situation:

  • Gitea supports actions/upload-artifact (and actions/download-artifact) v4
  • GitHub has officially deprecated actions/upload-artifact v3
  • GitHub Enterprise Server (GHES) still does not support actions/upload-artifact v4
    • And as far as I can tell, they have been completely radio-silent about when this will be fixed (which is kind of horrifying)
  • actions/upload-artifact v4 things Gitea is GHES and automatically blocks it

There are two workarounds:

  1. Keep using actions/upload-artifact v3
    • For obvious reasons, I'd prefer not to rely on deprecated code
    • And I imagine the Gitea maintainers don't want to support both the v3 and v4 APIs
  2. Use a patched version of actions/upload-artifact v4 (like this)
    • This works (and is arguably the best solution)
    • But it relies on one person's (really outdated) fork of actions/upload-artifact v4
    • I could make my own soft-fork, but then that's another thing I'd have to maintain

I wonder if it would be possible to have Gitea automatically patch actions/upload-artifact or somehow trick it into thinking it's running on github.com?

Screenshots

No response

Originally created by @TheBrokenRail on GitHub (Oct 20, 2025). ### Feature Description Right now, this is the situation: - Gitea supports `actions/upload-artifact` (and `actions/download-artifact`) v4 - GitHub has officially deprecated `actions/upload-artifact` v3 - GitHub Enterprise Server (GHES) *still* does not support `actions/upload-artifact` v4 - And as far as I can tell, they have been completely radio-silent about when this will be fixed (which is kind of horrifying) - `actions/upload-artifact` v4 things Gitea is GHES and automatically blocks it There are two workarounds: 1. Keep using `actions/upload-artifact` v3 - For obvious reasons, I'd prefer not to rely on deprecated code - And I imagine the Gitea maintainers don't want to support both the v3 and v4 APIs 2. Use a patched version of `actions/upload-artifact` v4 (like [this](https://github.com/christopherhx/gitea-upload-artifact)) - This works (and is arguably the best solution) - But it relies on one person's (really outdated) fork of `actions/upload-artifact` v4 - I could make my own soft-fork, but then that's another thing I'd have to maintain I wonder if it would be possible to have Gitea automatically patch `actions/upload-artifact` or somehow trick it into thinking it's running on `github.com`? ### Screenshots _No response_
GiteaMirror added the topic/gitea-actionstype/proposal labels 2025-11-02 11:28:43 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15038