You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an action that deploys to GitHub pages using either an access token or the built in actions Github token. Due to an existing issue the page build will always fail if the GitHub token is used instead of the access token, therefore in my action I advise users to use an access token for their credentials.
The problem I'm experiencing is when using actions/checkout@v2 instead of actions/checkout@v1 and I believe it's due to how the Github token gets persisted in the workspace.
I've tried the following configuration setup and it works, but it doesn't seem to actually clear the Github token credentials used for the checkout until after my action runs, meaning that the page build will fail when the user runs it.
I can change my configuration to the following and it will work, but it's not ideal as I doubt this will be obvious to the user that this needs to happen even after updating my README.
I've also tried using persist_credentials: false which feels like what I'd need, but the same post-job cleanup occurs instead of it occurring right after the checkout action complete. If this option did work I'd prefer this was defaulted to false as it conflicts with other actions that perform git commands.
The text was updated successfully, but these errors were encountered:
I have an action that deploys to GitHub pages using either an access token or the built in actions Github token. Due to an existing issue the page build will always fail if the GitHub token is used instead of the access token, therefore in my action I advise users to use an access token for their credentials.
The problem I'm experiencing is when using
actions/checkout@v2
instead ofactions/checkout@v1
and I believe it's due to how the Github token gets persisted in the workspace.I've tried the following configuration setup and it works, but it doesn't seem to actually clear the Github token credentials used for the checkout until after my action runs, meaning that the page build will fail when the user runs it.
As you can see here it's pushing to the full repository URL, but I'm guessing whatever is in the global configuration is causing this to not be paid attention to: https://github.com/JamesIves/github-pages-deploy-action/blob/dev/src/git.ts#L151-L154
I can change my configuration to the following and it will work, but it's not ideal as I doubt this will be obvious to the user that this needs to happen even after updating my README.
I've also tried using
persist_credentials: false
which feels like what I'd need, but the same post-job cleanup occurs instead of it occurring right after thecheckout
action complete. If this option did work I'd prefer this was defaulted tofalse
as it conflicts with other actions that perform git commands.The text was updated successfully, but these errors were encountered: