Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion internal/configer/load_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion internal/configer/update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down