You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
workflow-next-reset@v4: unauthenticated git ls-remote exit 128 on PRIVATE repos → next/hotfixes never reset after a release #194
priority: highNeeds attention soon — not blocking, but don't let it sittype: bugSomething is broken or not behaving as expectedtype: ciChanges to CI workflows, actions, or build pipelines
against a bare, unauthenticated HTTPS URL. On a private repo that git ls-remote returns exit 128 (auth required). The step runs under bash --noprofile --norc -e -o pipefail, and the 2>/dev/null hides the real message, so the non-zero status silently kills the job. Because this gate job fails, the downstream reset-next / reset-hotfixes job is skipped — so next (and hotfixes) are never recreated after a release.
Public repos pass this line fine (anonymous ls-remote works), which is why this only bites private repos.
Evidence
cpm (private) — run 30783376195: log shows ⏳ Gating on @v1… immediately followed by ##[error]Process completed with exit code 128. next/hotfixes absent afterward.
gh-broker (private) — next-resetfailed on both releases: v0.2.0 (run 30773285378) and v0.2.1 (run 30778280943).
Public released repos (envm, polyfillme, jsonv-vscode) do not hit this.
Downstream impact (confirmed)
With next missing, the next feature push can't open its PR: feature-pr does git fetch --quiet origin "next" and dies with fatal: couldn't find remote ref next (cpm run 30783469722). So after any private-repo release, the staging flow is stuck until next/hotfixes are recreated by hand.
Fix
The job already has a token (GITHUB_TOKEN Permissions: Contents: write); the ls-remote just doesn't use it. Options, best first:
Authenticate the lookup — git ls-remote "https://x-access-token:${GH_TOKEN}@github.com/${REPO}.git" …, or replace it with gh api repos/${REPO}/git/ref/tags/${tag}.
Make the gate non-fatal — the tag-roll-forward wait is only a safety delay; a lookup failure should degrade to "proceed anyway", not abort the reset (e.g. || true and don't let pipefail kill it).
Drop the 2>/dev/null (or log on failure) so this is diagnosable next time.
(1)+(3) is the clean fix; (2) is a cheap safety net on top.
Repos needing manual next/hotfixes recreation now (post-release, private)
cpm, gh-broker — confirmed missing.
memcache — private + released; verify.
Recreate with git push origin master:next master:hotfixes once the workflow fix is in (otherwise the next release re-breaks them).
priority: highNeeds attention soon — not blocking, but don't let it sittype: bugSomething is broken or not behaving as expectedtype: ciChanges to CI workflows, actions, or build pipelines
Activity
cldmv-bot commentedon Aug 3, 2026
Closed in v4.18.4 — resolved by #195.