From 30cd243e1810c470f632d2486838292900ea28a9 Mon Sep 17 00:00:00 2001 From: Jacob Hummer Date: Tue, 14 Nov 2023 10:46:02 -0600 Subject: [PATCH] try this? --- src/main.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.ts b/src/main.ts index b75be6d..40c2f5f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -56,9 +56,8 @@ if (userName && userEmail) { await $({ stdio: "inherit" })`git config --global user.email ${userEmail}`; } -const { hostname } = new URL(githubContext.server_url); -const GITHUB_TOKEN = core.getInput("token"); +const prefix = new URL(githubContext.server_url).origin + "/"; +const githubToken = core.getInput("token"); await $({ stdio: "inherit", - env: { GITHUB_TOKEN }, -})`gh auth setup-git --hostname ${hostname}`; +})`git config --global http.${prefix}.extraheader ${`AUTHORIZATION: basic ${githubToken}`}`;