a month 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?
5 Replies
a month 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!
a month 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 • about 1 month ago
a month 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
a month 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
a month ago
did you set this into github's env secrets? can you output your entire logs here (hiding any sensitive info)
a month 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 • about 1 month ago
