dependabot-script icon indicating copy to clipboard operation
dependabot-script copied to clipboard

Private Repo for maven

Open anonymez opened this issue 4 years ago • 3 comments

Hi, I've alreadt checked that the issue of using private maven repository is solved as stated in:

  • https://github.com/dependabot/dependabot-core/issues/505
  • https://github.com/dependabot/dependabot-core/issues/503

Since I'm in a situation where all java artifacts are proxied by a nexus private installation, how can I setup the reference to my nexus? I know i could set the repo in my pom, but I rather prefer to set them in settings and then profile and i'm not sure dependabot will resolve them.

I was wondering if it could be solved adding an item to credential array in generic-update-script.rb

Thanks.

anonymez avatar Apr 20 '20 15:04 anonymez

Hey @anonymez, I'm by no way familiar with dependabot, but we are trying to get a private repo to work too. I'd definitely give it a shot just adding the credentials there. The credential array is used throught the whole process so that should do the job.

vinerich avatar Sep 01 '20 21:09 vinerich

Any luck with this?

yeikel avatar May 23 '21 05:05 yeikel

Hey @yeikel, sorry for the late reply. I digged into the code and figured how to do it, but I sadly can't really remember, also I don'ht have access to the project anymore.

I remember it is something to put into the rails config which is then used by dependabot-core .. But that is for the self hosted version. If you look for the github version there are config options in the web UI where you can set it.

If you are using dependabot with gitlab I can suggest you to use https://gitlab.com/dependabot-gitlab/dependabot. Under https://gitlab.com/dependabot-gitlab/dependabot/-/blob/master/doc/environment.md#private-registry-credentials it is explained how to use private repositories.

If you need more information please detail your use case and I can see if I can find my old configurations. Cheers.

vinerich avatar Jun 11 '21 12:06 vinerich