| 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. |
| |
| Test: TestLintOffline/cve_metadata_bad_fields |
| Description: Field cve_metadata must contain valid entries for 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: |
| id: CVE.0000.1111 |
| cwe: TODO |
| review_status: REVIEWED |
| |
| -- golden -- |
| cve_metadata: id: not a valid CVE |
| cve_metadata: cwe: contains a TODO |