fix(ci): Forgejo release workflow fails — third-party actions not available on runner #134
Labels
No labels
a11y
backlog
beta-feedback
bug
enhancement
feature-request
frontend
good first issue
needs-triage
question
status:blocked
status:in-progress
status:review
vue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Circuit-Forge/peregrine#134
Loading…
Reference in a new issue
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?
Problem
The
.forgejo/workflows/release.ymlworkflow fails immediately (~4 seconds) when triggered by av*tag push. The runner picks up the job but cannot execute third-party actions:orhun/git-cliff-action@v3docker/setup-qemu-action@v3docker/setup-buildx-action@v3docker/login-action@v3docker/build-push-action@v6The CI workflow (
ci.yml) succeeds because it only usesactions/checkout@v4andactions/setup-python@v5, which appear to be available.Context
ubuntu-latestlabel)v0.9.8(run IDs 202, 204 on Forgejo)Possible causes
ACTIONS_RUNNER_SKIP_CHECKOUT=trueor no external action fetch allowedgithub.comfor action downloads--config-fileto point at a local action mirror (Gitea/Forgejo supports[actions] DEFAULT_ACTIONS_URL)FORGEJO_RELEASE_TOKEN,GH_GHCR_TOKEN,FORGEJO_CF_ORCH_TOKEN) were missing at first trigger — these are now set at org scope, but the action-fetch failure happens before secret injection anywayFix options
Option A — Configure Forgejo to fetch actions from GitHub (simplest)
In
app.iniunder[actions]:Requires runner to have outbound access to
github.com. Verify with:curl -I https://github.com/orhun/git-cliff-actionfrom the runner host.Option B — Mirror required actions locally
Mirror each action repo into
git.opensourcesolarpunk.com/actions/org:actions/checkoutorhun/git-cliff-actiondocker/setup-qemu-actiondocker/setup-buildx-actiondocker/login-actiondocker/build-push-actionThen update
app.ini:Option C — Replace third-party actions with inline shell steps
Rewrite
release.ymlusingrun:steps instead ofuses:for everything exceptcheckout:git-cliff-actionwithpip install git-cliff && git cliff --latestdocker buildxshell commandscurlpattern already at the bottomOption C is the most self-contained and removes the external action dependency entirely.
Recommended approach
Option A first (5-minute config change). If the runner has no GitHub access, fall back to Option C (rewrite with inline steps).
Related