blob: f036c33070c21aad437c56af045ee0119156a7ff [file] [log] [blame]
Copyright 2023 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.
Test: TestLintOffline/cve_metadata_missing_fields
Description: Field cve_metadata (if not nil), must have an ID and CWE.
-- data/reports/GO-0000-0000.yaml --
id: GO-0000-0000
modules:
- module: golang.org/x/net
vulnerable_at: 1.2.3
packages:
- package: golang.org/x/net/http2
summary: A summary of the issue in golang.org/x/net
description: description
cve_metadata: {}
-- golden --
cve_metadata: id: missing
cve_metadata: cwe: missing