From 46425d61c3d04bb646fd84ba44aaaf05c5717f75 Mon Sep 17 00:00:00 2001 From: Shakar <5h4k4r.b4kr@gmail.com> Date: Mon, 18 Sep 2023 15:13:24 +0300 Subject: [PATCH] Adds Authorization header to create tree request Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com> --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index 356f40e..ce99d92 100644 --- a/index.js +++ b/index.js @@ -121,6 +121,11 @@ async function commitChanges(filePath) { sha: newBlobSha, }, ], + }, + { + headers: { + 'Authorization': `Bearer ${githubToken}`, + }, } );