Skip to content

Commit cdebe40

Browse files
authored
docs: use the correct url for the osv.dev test api (#358)
1 parent 2f1ef70 commit cdebe40

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ The `url` should be either:
288288
as a zip archive
289289
- a url for a rest API that implements the [osv.dev](https://osv.dev/docs/) API
290290
- the `url` _should_ include the `/v1` e.g. if you wanted to use the `osv.dev`
291-
staging API you would specify `https://api-staging.osv.dev/v1` as the `url`
291+
test API you would specify `https://api.test.osv.dev/v1` as the `url`
292292

293293
> The detector will attempt to detect the type of each database based on the
294294
> above, however you can explicitly provide the type if needed with the `type`
@@ -330,9 +330,9 @@ extra-databases:
330330
name: GitHub Advisory Database (unreviewed)
331331
working-directory: 'advisory-database-main/advisories/unreviewed'
332332
333-
# include the osv staging api
334-
- url: https://api-staging.osv.dev/v1
335-
name: GitHub Advisory Database (unreviewed)
333+
# include the osv test api
334+
- url: https://api.test.osv.dev/v1
335+
name: OSV.dev (test)
336336
337337
# include a local directory database (relative)
338338
- url: file:/../relative/path/to/dir

internal/configer/load_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func TestLoad(t *testing.T) {
192192
"zip#https://github.com/github/advisory-database/archive/refs/heads/main.zip",
193193
"dir#file:/relative/path/to/dir",
194194
"dir#file:////root/path/to/dir",
195-
"api#https://api-staging.osv.dev/v1",
195+
"api#https://api.test.osv.dev/v1",
196196
"GitHub Advisory Database",
197197
"zip#https://my-site.com/osvs/all",
198198
"zip#https://github.com/github/advisory-database/archive/refs/heads/main.zip#advisory-database-main/advisories/unreviewed",

internal/configer/testdata/extra-databases/.osv-detector.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ extra-databases:
33
- url: https://github.com/github/advisory-database/archive/refs/heads/main.zip
44
- url: file:/relative/path/to/dir
55
- url: file:////root/path/to/dir
6-
- url: https://api-staging.osv.dev/v1
6+
- url: https://api.test.osv.dev/v1
77
# named
88
- url: https://github.com/github/advisory-database/archive/refs/heads/main.zip
99
name: GitHub Advisory Database

internal/configer/update_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func TestUpdateWithIgnores(t *testing.T) {
181181
- url: https://github.com/github/advisory-database/archive/refs/heads/main.zip
182182
- url: file:/relative/path/to/dir
183183
- url: file:////root/path/to/dir
184-
- url: https://api-staging.osv.dev/v1
184+
- url: https://api.test.osv.dev/v1
185185
- url: https://github.com/github/advisory-database/archive/refs/heads/main.zip
186186
name: GitHub Advisory Database
187187
- url: https://my-site.com/osvs/all

0 commit comments

Comments
 (0)