Skip to content

Commit a1a571c

Browse files
fix(dependabot): add support for cargo and pub registries (SchemaStore#4853)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent f238fa3 commit a1a571c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/schemas/json/dependabot-2.0.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,6 +1027,7 @@
10271027
"type": {
10281028
"description": "Identifies the type of registry.",
10291029
"enum": [
1030+
"cargo-registry",
10301031
"composer-repository",
10311032
"docker-registry",
10321033
"git",
@@ -1035,6 +1036,7 @@
10351036
"maven-repository",
10361037
"npm-registry",
10371038
"nuget-feed",
1039+
"pub-repository",
10381040
"python-index",
10391041
"rubygems-server",
10401042
"terraform-registry"

src/test/dependabot-2.0/example.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
{
22
"enable-beta-ecosystems": true,
33
"registries": {
4+
"cargo-example": {
5+
"token": "${{secrets.MY_CARGO_REGISTRY_TOKEN}}",
6+
"type": "cargo-registry",
7+
"url": "https://my-registry.example.com"
8+
},
49
"composer": {
510
"password": "${{secrets.MY_PACKAGIST_PASSWORD}}",
611
"type": "composer-repository",
@@ -59,6 +64,11 @@
5964
"url": "https://nuget.example.com/v3/index.json",
6065
"username": "[email protected]"
6166
},
67+
"pub-example": {
68+
"token": "${{secrets.MY_PUB_TOKEN}}",
69+
"type": "pub-repository",
70+
"url": "https://pub.example.com"
71+
},
6272
"python-azure": {
6373
"replaces-base": true,
6474
"token": "${{secrets.MY_AZURE_DEVOPS_TOKEN}}",

0 commit comments

Comments
 (0)