Every command is sandboxed
Each command runs in its own sandbox, using bubblewrap on Linux and a Seatbelt profile on macOS. It can write to the repository and a temporary folder, and nowhere else. Each time the server starts, it tries to break out of its own sandbox, and if any attempt works, it won't start. You can turn the sandbox off with sandbox: none, and then the server refuses a git token.