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

Make the private registry URL templatable in `dependabot.yaml`

Open zma318 opened this issue 2 years ago • 3 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Feature description

Hello, we want to add a artifactory registry within dependabot.yml with

registries: coursera-artifactory: type: maven-repository url: ${{ secrets.ARTIFACTORY_HOST )}} username: ${{secrets.ARTIFACTORY_USERNAME}} password: ${{secrets.ARTIFACTORY_PASSWORD}}

However, we would like to make this url configurable, right now this is giving me an error url is not in a proper format with http or https.

I have searched the docs and only find there is one line here mentioned we can use optional protocol to override the default restriction.

I tried to add protocol in the config as well, while it gave me additional properties ["protocol"] outside of the schema when none are allowed.

Is this feature supported, if so what is the proper format to set protocol?

Thank you!

zma318 avatar Sep 19 '22 14:09 zma318

We don't currently support templating values in the registry URL fields.

I'm curious of your use case? Are you trying to open source code that you normally use internally? Or something else?

jeffwidman avatar Sep 21 '22 04:09 jeffwidman

Hi @jeffwidman, thanks for the info. We're trying to make this field configurable as it'll be easier for us to perform a migration. Thanks! Feel free to close this issue!

zma318 avatar Sep 22 '22 15:09 zma318

I can envision some realistic use cases for this beyond just a one-time migration... eg, for a templates repo inside a company, or if they want to only have to set the registry URL in one place and then pull it in multiple places in their code...

jeffwidman avatar Sep 22 '22 17:09 jeffwidman

Any update on this?

dariocurr avatar Jul 13 '23 08:07 dariocurr