diff --git a/README.md b/README.md index 8d6e01d1..87413070 100644 --- a/README.md +++ b/README.md @@ -288,7 +288,7 @@ The `url` should be either: as a zip archive - a url for a rest API that implements the [osv.dev](https://osv.dev/docs/) API - the `url` _should_ include the `/v1` e.g. if you wanted to use the `osv.dev` - staging API you would specify `https://api-staging.osv.dev/v1` as the `url` + test API you would specify `https://api.test.osv.dev/v1` as the `url` > The detector will attempt to detect the type of each database based on the > above, however you can explicitly provide the type if needed with the `type` @@ -330,9 +330,9 @@ extra-databases: name: GitHub Advisory Database (unreviewed) working-directory: 'advisory-database-main/advisories/unreviewed' - # include the osv staging api - - url: https://api-staging.osv.dev/v1 - name: GitHub Advisory Database (unreviewed) + # include the osv test api + - url: https://api.test.osv.dev/v1 + name: OSV.dev (test) # include a local directory database (relative) - url: file:/../relative/path/to/dir diff --git a/internal/configer/load_test.go b/internal/configer/load_test.go index 11a6a90b..20b3ec93 100644 --- a/internal/configer/load_test.go +++ b/internal/configer/load_test.go @@ -192,7 +192,7 @@ func TestLoad(t *testing.T) { "zip#https://github.com/github/advisory-database/archive/refs/heads/main.zip", "dir#file:/relative/path/to/dir", "dir#file:////root/path/to/dir", - "api#https://api-staging.osv.dev/v1", + "api#https://api.test.osv.dev/v1", "GitHub Advisory Database", "zip#https://my-site.com/osvs/all", "zip#https://github.com/github/advisory-database/archive/refs/heads/main.zip#advisory-database-main/advisories/unreviewed", diff --git a/internal/configer/testdata/extra-databases/.osv-detector.yml b/internal/configer/testdata/extra-databases/.osv-detector.yml index 267e9a8c..5404a13e 100644 --- a/internal/configer/testdata/extra-databases/.osv-detector.yml +++ b/internal/configer/testdata/extra-databases/.osv-detector.yml @@ -3,7 +3,7 @@ extra-databases: - url: https://github.com/github/advisory-database/archive/refs/heads/main.zip - url: file:/relative/path/to/dir - url: file:////root/path/to/dir - - url: https://api-staging.osv.dev/v1 + - url: https://api.test.osv.dev/v1 # named - url: https://github.com/github/advisory-database/archive/refs/heads/main.zip name: GitHub Advisory Database diff --git a/internal/configer/update_test.go b/internal/configer/update_test.go index 3ebb4543..e92233c0 100644 --- a/internal/configer/update_test.go +++ b/internal/configer/update_test.go @@ -181,7 +181,7 @@ func TestUpdateWithIgnores(t *testing.T) { - url: https://github.com/github/advisory-database/archive/refs/heads/main.zip - url: file:/relative/path/to/dir - url: file:////root/path/to/dir - - url: https://api-staging.osv.dev/v1 + - url: https://api.test.osv.dev/v1 - url: https://github.com/github/advisory-database/archive/refs/heads/main.zip name: GitHub Advisory Database - url: https://my-site.com/osvs/all