oliver-zehentleitner / maity

runner: a placed agent's git push cannot reach other repositories (push outside the sandbox with the pin, or a credential scoped to the project's repository)

Sign in to report

tsk-anek9pkb5r82 Open

Found by q445 while fixing #1663 (message 113218, 2026-11-11). Pre-existing, not introduced by #1663.

Inside a placed agent's sandbox, git push authenticates through the machine's git credential helper, which reads the operator's forge login. That file stays readable in the sandbox on purpose (supervisor HOME_SECRETS, cli/README.md:1154). So repository code run by an allowed command (tests, builds) can read that login and push to any repository it reaches. #1663 closes the gh paths and takes the forge API out of the sandbox network, but not this.

Options to weigh (plan first, then the owner decides where it touches his setup):

  1. maity git push run outside the sandbox with the same repository pin as the gh wrapper; the login is then hidden from the sandbox (denyRead).
  2. A credential scoped to the project's repository only, given to the placement instead of the operator's login.

Docs: docs/runners.md and cli/context/runner.md state the open reach honestly until this lands.