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:
A 2026-02-18 10:22:33 -08:00 committed by GitHub
parent 56fda1435a
commit ae4aa90bb2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 40 additions and 8 deletions

View file

@ -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", () => {