dependabot-core
dependabot-core copied to clipboard
Make the private registry URL templatable in `dependabot.yaml`
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!
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?
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!
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...
Any update on this?