Skip to content
Discussion options

You must be logged in to vote

I figured out the problem! I was using the GH checkout action as a first step, and the GITHUB_TOKEN credentials were automatically persisting through the entire workflow. So anytime I tried to run a command requiring the auth token for the second remote repo, it was using the persisted credentials. I set persist-credentials to false, and my commands work as expected.

Some odd things about this, though –

  • If I have the auth token in the remote URL, I don’t see why the action would even try to use the persisted auth token.
  • Why did the clone work while the other commands didn’t? Super strange.

Anyway, I hope this helps someone down the line. Happy coding!

Replies: 5 comments 10 replies

Comment options

You must be logged in to vote
10 replies
@jebarrocal
Comment options

@galnadjar
Comment options

@FJCC
Comment options

@Bok-GiUng
Comment options

@noamnelke
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Product Feedback Share your thoughts and suggestions on GitHub features and improvements