ci: align actions/* references with code.forgejo.org mirror #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "agent/fix-actions-resolution"
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?
What
Aligns this repo's
.forgejo/workflows/branch-policy.ymlwith thecanonical template now on
automation/main:uses: actions/checkout@v4→uses: https://code.forgejo.org/actions/checkout@v4uses: actions/setup-node@v4→uses: https://code.forgejo.org/actions/setup-node@v4Also updates the branch-protection required-status-check name from
branch-policyto the actual Forgejo Actions contextBranch policy / branch-policy (pull_request)so merges aren'tfalsely blocked despite green CI.
Why
Forgejo Actions resolves bare
actions/<name>against the localForgejo instance, which has no
actions/*org. Every PR'sbranch-policy CI was failing in ~1s with 404 on
/actions/checkout/info/refs. Switching to full URLs atcode.forgejo.org(the official Forgejo Actions mirror) fixes theresolution.
The required-check rename matches the Forgejo Actions context
format (
<workflow_name>/<job_id> (<event>)) — protection stillgates on the same single check, just under its actual reported
name.
Companion to automation #3
(
ci(forgejo): bundle runner-and-actions infrastructure fixes),which landed the canonical template + role defaults updates and
the runner-recovery runbook.
How verified
automation/forgejo/templates/branch-policy/.forgejo/workflows/branch-policy.ymlon
automation/main(the canonical source).branch-policyCI runs against the head branch'sworkflow, which has the fix in place. CI passing here is the live
proof the fix works for this repo.
Refs: B3, automation #3.