| Copyright 2024 The Go Authors. All rights reserved. |
| Use of this source code is governed by a BSD-style |
| license that can be found in the LICENSE file. |
| |
| Expected output of test TestOSV/ok |
| command: "vulnreport osv 1" |
| |
| -- out -- |
| data/osv/GO-9999-0001.json |
| -- logs -- |
| info: osv: operating on 1 report(s) |
| info: osv data/reports/GO-9999-0001.yaml |
| info: osv: processed 1 report(s) (success=1; skip=0; error=0) |
| -- data/osv/GO-9999-0001.json -- |
| { |
| "schema_version": "1.3.1", |
| "id": "GO-9999-0001", |
| "modified": "0001-01-01T00:00:00Z", |
| "published": "0001-01-01T00:00:00Z", |
| "summary": "A problem with golang.org/x/vulndb", |
| "details": "A description of the issue", |
| "affected": [ |
| { |
| "package": { |
| "name": "golang.org/x/vulndb", |
| "ecosystem": "Go" |
| }, |
| "ranges": [ |
| { |
| "type": "SEMVER", |
| "events": [ |
| { |
| "introduced": "0" |
| } |
| ] |
| } |
| ], |
| "ecosystem_specific": {} |
| } |
| ], |
| "database_specific": { |
| "url": "https://pkg.go.dev/vuln/GO-9999-0001", |
| "review_status": "REVIEWED" |
| } |
| } |