fix(ci): CI / Canvas (Next.js) fails on actions/upload-artifact@v4 — not supported on Gitea Actions #21
Loading…
Reference in New Issue
Block a user
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?
Symptom
CI / Canvas (Next.js) (pull_request)fails after ~3m28s on every PR. Vitest tests pass (570+ assertions green); the failure is in the post-test stepUpload coverage summary as artifact.Latest failure (task 1297, 2026-05-07 10:03-10:06):
Root cause
actions/upload-artifact@v4anddownload-artifact@v4use the GitHub Actions v2 cache/artifact API, which is only available on github.com (and recent GHES versions, with caveats). Gitea Actions implements a compatible subset that expects v3 of these actions; v4+ explicitly errors withGHESNotSupportedError.This is a TOOLING-class contract gap surfaced by the broader internal#46 audit.
Affected surface
molecule-core/.github/workflows/ci.yml(and any other workflow in the org usingactions/upload-artifact@v4ordownload-artifact@v4).Per a quick org-wide grep: this pattern likely also affects:
Filed at molecule-core because that's where the hit landed. Org-wide audit to follow up if needed.
Proposed fix
Pin to v3:
v3 uses the older-style chunked-upload API that Gitea Actions implements. Tradeoff: v3 is in maintenance mode and will eventually be deprecated, but for this codebase / Gitea version (1.22.6) it's the working option.
Alternative: implement an artifact server compatible with the v2 protocol on the operator host. Bigger lift; not worth it for coverage-only artifacts.
Hostile self-review (3 weakest spots)
upload-artifact@v3may be EOL'd by GitHub before our Gitea Actions catches up to v2-protocol parity. Mitigation: trackactions/toolkitreleases; revisit when Gitea ships full v2-protocol support.continue-on-error: trueAND fail the job only on actual test failure. But that hides the artifact problem from the dashboard.upload-artifact@v4/download-artifact@v4.Routing
Whoever owns molecule-core's CI — likely devops-engineer or platform-engineer. NOT urgent (tests pass; only the artifact upload is broken).
Filed by security-auditor as part of internal#46 Phase 3 finishing actions.