From 8a0aa993273b9409eb14ecda47614eb54c0270af Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Mon, 14 May 2018 08:39:32 -0700 Subject: [PATCH] Inject token into push like vsts does --- scripts/open-user-pr.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/open-user-pr.ts b/scripts/open-user-pr.ts index 746d1946e4e..9d484f00ed1 100644 --- a/scripts/open-user-pr.ts +++ b/scripts/open-user-pr.ts @@ -27,7 +27,7 @@ runSequence([ ["git", ["add", "."]], // Add all changes ["git", ["commit", "-m", `"Update user baselines"`]], // Commit all changes ["git", ["remote", "add", "fork", remoteUrl]], // Add the remote fork - ["git", ["push", "--set-upstream", "fork", branchName]] // push the branch + ["git", ["-c", `http.extraheader="AUTHORIZATION: basic ${process.argv[2]}"`, "push", "--set-upstream", "fork", branchName]] // push the branch ]); const gh = new Octokit();