File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ type SecurityAdvisory struct {
30
30
Permalink string
31
31
// When the advisory was first published.
32
32
PublishedAt time.Time
33
+ // References linked to by this advisory.
34
+ References []Reference
33
35
// When the advisory was last updated; should always be >= PublishedAt.
34
36
UpdatedAt time.Time
35
37
// The vulnerabilities associated with this advisory.
@@ -43,6 +45,11 @@ type Identifier struct {
43
45
Value string
44
46
}
45
47
48
+ // A Reference is a URL linked to by the advisory.
49
+ type Reference struct {
50
+ URL string
51
+ }
52
+
46
53
// A Vuln represents a vulnerability.
47
54
type Vuln struct {
48
55
// The vulnerable Go package or module.
@@ -68,6 +75,7 @@ type gqlSecurityAdvisory struct {
68
75
Description string
69
76
Origin string
70
77
Permalink githubv4.URI
78
+ References []Reference
71
79
PublishedAt time.Time
72
80
UpdatedAt time.Time
73
81
Vulnerabilities struct {
@@ -104,6 +112,7 @@ func (sa *gqlSecurityAdvisory) securityAdvisory() (*SecurityAdvisory, error) {
104
112
Description : sa .Description ,
105
113
Origin : sa .Origin ,
106
114
Permalink : sa .Permalink .URL .String (),
115
+ References : sa .References ,
107
116
PublishedAt : sa .PublishedAt ,
108
117
UpdatedAt : sa .UpdatedAt ,
109
118
}
You can’t perform that action at this time.
0 commit comments