Can not access env.GITHUB_TOKEN in event handler

For some reason i can get my git hub token inside of the function i have done other debugging and it does work outside of the function. Normally i ask AI and it is pretty good at fixing my problems, Ive searched on here and online and i see where people have has problems similar but i can not get it fixed. here a paste bin of the cloud flare worker. if I hardcode the api key for testing it works just fine. https://pastebin.com/hUDWfrUH
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Was this page helpful?