hyness / spring-cloud-config-server

Docker build of the spring-cloud-config-server
Apache License 2.0
74 stars 54 forks source link

Issue with using a private Github repo #11

Closed devsetgo closed 4 years ago

devsetgo commented 5 years ago

I am trying to use the docker image with a private GitHub repository and get the following error (see below). If I use a a public repository works fine, but as soon as it is private and i use the token I get the following error. The token should allow access and does via the command line. Yet it fails when run in the image.

I have two factor authentication on if that help. I also tried using my username and password, still same issue.

Would appreciate any help. I am trying to setup a single Java application to use with Cloud Config, but I would primarily end up using it with Python applications. So my Java knowledge is limited.

org.eclipse.jgit.api.errors.TransportException: https://mytokenhere@github.com/devsetgo/myfiles.git: Authentication is required but no CredentialsProvider has been registered

devsetgo commented 5 years ago

Update, I can get this to run with a private repo if I use a volume as described in the documentation. Still not sure why it doesn't work with the token.