4 months ago
Hello, I am trying to use the RAILWAY_TOKEN in my GitHub action and I am getting:
Unauthorized. Please login with `railway login`I am missing something?
Pinned Solution
4 months ago
I got it working by doing the following:
1. Go to personal account, create a token, DONT SELECT A WORKSPACE.
Get the token and use it as
RAILWAY_API_TOKEN
5 Replies
4 months ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!
4 months ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open brody • 4 months ago
4 months ago
hey, you have to use your account/team's token, not project token and export it via RAILWAY_API_TOKEN in your GitHub Action. if you need to use a specific project token, then you need to use RAILWAY_TOKEN as referenced by railway's docs
4 months ago
hey, thanks for the message! I tried to use my personal token and when trying to link the project, the error is the same: Unauthorized. Please login with railway login
The trace id: 8338076612206454428
thereis
hey, thanks for the message! I tried to use my personal token and when trying to link the project, the error is the same: Unauthorized. Please login with railway loginThe trace id: 8338076612206454428
4 months ago
did you set this into github's env secrets? can you output your entire logs here (hiding any sensitive info)
4 months ago
I got it working by doing the following:
1. Go to personal account, create a token, DONT SELECT A WORKSPACE.
Get the token and use it as
RAILWAY_API_TOKEN
Status changed to Solved brody • 4 months ago
Status changed to Open ray-chen • about 1 month ago
Status changed to Solved ray-chen • about 1 month ago
