Issues with Tokens for Github Actions Continuous Deployment
eboyd3
FREEOP

2 months ago

I'm trying to set up continuous deployment for a project. Right now, I manually pull from main on Github then do railway up. I've set up a deploy.yml to do that automactically after every commit to main. However, it keeps saying my token is invalid. I've tried workspace and account tokens, copied from railway and put directly into Github as secrets. But it still says they're not valid. They don't work for commands like 'RAILWAY_TOKEN=your-token npx railway whoami' either. Any ideas why my tokens don't work?

4 Replies

Scoped tokens do not support commands such as whoami.


eboyd3
FREEOP

2 months ago

Ok, but what about the other issues? The whoami was just a test to see if the token was working at all


Project tokens should use RAILWAY_TOKEN’. Account/workspace tokens should use RAILWAY_API_TOKEN`.


(no markdown available for this content)


Welcome!

Sign in to your Railway account to join the conversation.

Loading...