Skip to content

Commit bfed154

Browse files
committed
contest: gh: fix the authentication token format
Apparently GH wants the word Bearer in the header. Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 5dad7b8 commit bfed154

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

contest/remote/gh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
def get(url, token):
4646
headers = {"Accept": "application/vnd.github+json",
4747
"X-GitHub-Api-Version": "2022-11-28",
48-
"Authorization": token}
48+
"Authorization": f"Bearer {token}"}
4949
return requests.get(url, headers=headers)
5050

5151

0 commit comments

Comments
 (0)