File tree 3 files changed +4
-5
lines changed
3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ func TestGenerate(t *testing.T) {
43
43
Commit : "commit" ,
44
44
Context : []string {"issue-a" , "issue-b" },
45
45
},
46
- CVEMetadata :& report.CVEMeta {ID : "CVE-2020-1234" },
46
+ CVEMetadata : & report.CVEMeta {ID : "CVE-2020-1234" },
47
47
}
48
48
49
49
want := []Entry {
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ type Links struct {
27
27
type CVEMeta struct {
28
28
ID string `yaml:",omitempty"`
29
29
CWE string `yaml:",omitempty"`
30
- Description string `yaml:",omitempty"`
31
- CVSSMeta * CVSS `yaml:",omitempty"`
30
+ Description string `yaml:",omitempty"`
31
+ CVSSMeta * CVSS `yaml:",omitempty"`
32
32
}
33
33
type CVSS struct {
34
34
Version string `yaml:",omitempty"`
@@ -65,4 +65,3 @@ type Report struct {
65
65
Links Links `yaml:",omitempty"`
66
66
CVEMetadata * CVEMeta `yaml:"cve_metadata,omitempty"`
67
67
}
68
-
Original file line number Diff line number Diff line change @@ -42,6 +42,6 @@ func cvssV2SeverityByScore(score float32) string {
42
42
case score >= 7.0 && score <= 10.0 :
43
43
return "High"
44
44
default :
45
- return "None "
45
+ return ""
46
46
}
47
47
}
You can’t perform that action at this time.
0 commit comments