mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-11 13:20:05 +00:00
fix: gh CLI setup on remote VMs — pass local token through (#1444)
Fixes GitHub CLI authentication on remote VMs by passing local token through to remote installation script. Uses printf '%q' for safe shell escaping to prevent command injection.
This commit is contained in:
parent
56fda1435a
commit
ae4aa90bb2
3 changed files with 40 additions and 8 deletions
|
|
@ -500,7 +500,7 @@ describe("ensure_gh_auth", () => {
|
|||
ensure_gh_auth 2>&1
|
||||
`);
|
||||
expect(result.exitCode).not.toBe(0);
|
||||
expect(result.stdout + result.stderr).toContain("Failed to authenticate");
|
||||
expect(result.stdout + result.stderr).toContain("authentication failed");
|
||||
});
|
||||
|
||||
it("should fail when post-login auth status check fails", () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue