Replies: 1 comment 6 replies
-
Is this just for access tokens? SSH and GITHUB_TOKEN are fine? I'm asking because I wanted to propose to drop the |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now you must run
checkout@v2
withpersist-credentials: false
in order for the deployment to follow through correctly if you're using an access token variable. This is confusing, and has caused some discussion in the past.It would be great if the action could tear down any pre-set variables from previous action runs so it starts on a fresh foot. The action already manages its own credentials so it should safely toss out any ones provided by others.
This is what
persist-credentials
actually does: https://github.com/actions/checkout/blob/main/src/git-auth-helper.ts#L137-L168I'm open to discussions/ideas on how to prevent this and I've created an issue for this here: #507
Beta Was this translation helpful? Give feedback.
All reactions