-
fork: rebuild #2 P5 stage 2b, server-side git credential for Gitea hosts (C2-read)
fork-tests / verify (pull_request) Successful in 5m23sreleased this
2026-10-19 20:28:38 +00:00 | 3486 commits to local since this releaseServer-side git (workspace clone, base-ref fetch) against one of the
company's Gitea hosts now authenticates with the run's Gitea identity:
the agent's dedicated one, else the shared one, failing closed on a
broken identity. Coverage audit #5.- modules/fork-gitea/domain/git-remote.ts: parse an http(s) remote into
its credential host key; build a git invocation whose credential
helper is scoped to the remote's exact origin, re-checks protocol and
host[:port], answers onlyget, clears ambient helpers, and sets no
GH_TOKEN/GITHUB_TOKEN. - modules/fork-gitea/index.ts: createGiteaGitRemoteAuth, resolving one
token per host per provider (a failure is not cached). - services/git-credentials.ts: two
fork-seam:gitea-git-remotelines
(+3 production lines in upstream files, 369 -> 372).
Mutation check: 23/24 caught. The survivor (dropping the null-host
guard before the resolver) is equivalent: the resolver returns
configured: falsefor a null host.Co-Authored-By: Claude Opus 5.5 [email protected]
Downloads
- modules/fork-gitea/domain/git-remote.ts: parse an http(s) remote into