| 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 TestFix/no_change | |
| command: "vulnreport fix 1" | |
| -- out -- | |
| data/reports/GO-9999-0001.yaml | |
| data/osv/GO-9999-0001.json | |
| -- logs -- | |
| info: fix: operating on 1 report(s) | |
| info: fix data/reports/GO-9999-0001.yaml | |
| info: GO-9999-0001: checking that all packages exist | |
| info: GO-9999-0001: checking symbols (use -skip-symbols to skip this) | |
| info: GO-9999-0001: skipping symbol checks for package golang.org/x/vulndb/cmd/vulnreport (no symbols) | |
| info: GO-9999-0001: checking for missing GHSAs and CVEs (use -skip-alias to skip this) | |
| info: GO-9999-0001: checking that all references are reachable | |
| info: fix: 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": { | |
| "imports": [ | |
| { | |
| "path": "golang.org/x/vulndb/cmd/vulnreport" | |
| } | |
| ] | |
| } | |
| } | |
| ], | |
| "database_specific": { | |
| "url": "https://pkg.go.dev/vuln/GO-9999-0001", | |
| "review_status": "REVIEWED" | |
| } | |
| } | |
| -- data/reports/GO-9999-0001.yaml -- | |
| id: GO-9999-0001 | |
| modules: | |
| - module: golang.org/x/vulndb | |
| vulnerable_at: 0.0.0-20240716161253-dd7900b89e20 | |
| packages: | |
| - package: golang.org/x/vulndb/cmd/vulnreport | |
| summary: A problem with golang.org/x/vulndb | |
| description: A description of the issue | |
| review_status: REVIEWED |