Attempting to use worker to download gh artifact

I am attempting to download a GitHub artifact in a cf worker. I have written the JS and tested in my local environment and it works. However, when I try and run it on the worker playground I get this error.

<?xml version="1.0" encoding="utf-8"?><Error><Code>InvalidAuthenticationInfo</Code><Message>Authentication information is not given in the correct format. Check the value of Authorization header. RequestId:fdc12948-501e-00d3-59cf-6b1ea0000000 Time:2024-03-01T11:59:22.1038850Z</Message></Error>

The github auth header has the value of 'Bearer {gh_token}' however it seems that the cf fetch function does not permit there to be a space in the key?
Was this page helpful?