I want to add my github personal access token(for authenticating github graphql api) to my code but github keeps removing it from developer settings as soon as it is deployed. i tried adding it as an environment variable by adding it to secrets and declaring it under
env: in the github actions CI script and then called it in the code using
process.env.PA_TOKEN but it stil doesn’t authenticate although i get a different error message in the console now saying
Uncaught ReferenceError: process is not defined . What am i doing wrong?
Note: The token works fine locally before it is removed from developer settings after deployment