Invalid username or password #627
-
My deploy job keeps failing with en error This same access token used to work previously so not sure what's changed now. When changing to v4 I changed the properties from:
to what is now documented:
Link to action: https://github.com/cmacdonnacha/react-boilerplate/actions/runs/624000633 Link to workflow being used: https://github.com/cmacdonnacha/react-boilerplate/blob/master/.github/workflows/continuous-integration-workflow.yml#L89 |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
Can you paste the full log from the deployment step? I don't have permissions to view them. |
Beta Was this translation helpful? Give feedback.
-
Sure, here it is:
|
Beta Was this translation helpful? Give feedback.
-
Can you double check to make sure that secret still exists and actually contains an access token? The part that is suspicious to me is this line: I also see that you don't set Can you confirm the above by re-generating your secret and re-saving it within your repositories secrets menu? Additionally going forward you don't need to define a token at all unless you need additional permission scoping, in the case of your setup you simply need the following: - name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: build Let me know if that helps. |
Beta Was this translation helpful? Give feedback.
-
Hey @JamesIves Thanks for your reply. Just double checked and that token is still there. I think the property was called
Here's the token and permissions After re-generating the token it still didn't seem to work. However, after removing
|
Beta Was this translation helpful? Give feedback.
-
Yep, it was renamed to
Afterwards re-run the workflow, and it should deploy with the secret. I was able to reproduce the error you received by adding In general though you shouldn't use an access token unless you absolutely have to, the only use-case that I've encountered is the need to deploy cross accounts/repos. Using an SSH deploy token or the built in repository token (that defaults when |
Beta Was this translation helpful? Give feedback.
Yep, it was renamed to
token
. I think you're missing a step here, the name in the access token screen isn't the same as the name you provide in your repositories secrets menu.Settings
and go to theSecrets
menuAdd new repository secret
GITHUB_ACCESS_TOKEN
.Afterwards re-run the workflow, and it should …