From 933334b35046bc48b1d699dfd5056b015d71349f Mon Sep 17 00:00:00 2001
From: Hyro <generalkubo@gmail.com>
Date: Sat, 16 Jul 2022 18:46:00 +0200
Subject: [PATCH] fix(getGithubRelease): correct token pass

---
 src/utils/getGithubRelease.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/utils/getGithubRelease.ts b/src/utils/getGithubRelease.ts
index 1de7186..540a8e4 100644
--- a/src/utils/getGithubRelease.ts
+++ b/src/utils/getGithubRelease.ts
@@ -25,7 +25,7 @@ export default async(version: string, token: string, miscTestBuilds: boolean): P
         headers: {
             'Content-Type': 'application/json',
             'User-Agent': 'setup-bun-github-action',
-            'Authorization': token
+            'Authorization': `token ${token}`
         }
     })).json();
 
@@ -33,4 +33,4 @@ export default async(version: string, token: string, miscTestBuilds: boolean): P
         ...release,
         version: miscTestBuilds ? `timestamp-v${new Date(release.name).getTime().toString()}` : release.tag_name.replace('bun-v', '')
     };
-}
\ No newline at end of file
+}