The property '#/registries' of type string did not match the following type: object #112596
-
Select Topic AreaBug BodyHi there, I am receiving an error within dependency graph that my dependabot config is invalid.
My dependabot.yml is as follows:
The github documentation lists this as an allowed value here: https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#registries Thank you for your time. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @dammitjim , thanks for pointing this out! This is actually an error in our docs 😱 I'll look to get that fixed. There are 2 places you can use the So in this case, what you need to do is something like:
You can read more information about what needs to be in that top level registries block here: https://docs.github.com/en/code-security/dependabot/working-with-dependabot/configuring-access-to-private-registries-for-dependabot |
Beta Was this translation helpful? Give feedback.
Hi @dammitjim , thanks for pointing this out! This is actually an error in our docs 😱 I'll look to get that fixed.
There are 2 places you can use the
registries
key: at the top level, where you define the registries, and within theupdates
blocks. At the top level, you need to define the registries and their access information if needed. Within the updates blocks (in your case, thepip
oractions
blocks), you can specifyregistries: "*"
which will tell Dependabot to use any/all of the registries you defined at the top level.So in this case, what you need to do is something like: