Skip to content

Commit

Permalink
Dependabot: Allow updates.registries to be the string "*" (#3506)
Browse files Browse the repository at this point in the history
* Demonstrate issue #3502

* Dependabot: Allow `updates.registries` to be the string `"*"`

Fixes #3502
  • Loading branch information
kurtmckee authored Jan 9, 2024
1 parent f699ee0 commit 8ec54e6
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"registries": {
"my-custom-registry": {
"password": "${{ secrets.password }}",
"type": "npm-registry",
"url": "https://example.example",
"username": "success"
}
},
"updates": [
{
"directory": "/",
"package-ecosystem": "npm",
"registries": "not *",
"schedule": {
"interval": "daily"
}
}
],
"version": 2
}
23 changes: 16 additions & 7 deletions src/schemas/json/dependabot-2.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -890,13 +890,22 @@
"default": "auto"
},
"registries": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"uniqueItems": true,
"minItems": 1
"$comment": "'registries' must be either an array of strings, or the string constant '*'.",
"oneOf": [
{
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"uniqueItems": true,
"minItems": 1
},
{
"type": "string",
"const": "*"
}
]
},
"reviewers": {
"type": "array",
Expand Down
2 changes: 1 addition & 1 deletion src/test/dependabot-2.0/registries-top-level.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{
"directory": "/2",
"package-ecosystem": "npm",
"registries": ["*"],
"registries": "*",
"schedule": {
"interval": "daily"
}
Expand Down

0 comments on commit 8ec54e6

Please sign in to comment.