File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,15 @@ const (
37
37
// Message is an entry in the output stream. It will always have exactly one
38
38
// field filled in.
39
39
type Message struct {
40
- Config * Config `json:"config,omitempty"`
41
- Progress * Progress `json:"progress,omitempty"`
42
- OSV * osv.Entry `json:"osv,omitempty"`
43
- Finding * Finding `json:"finding,omitempty"`
40
+ Config * Config `json:"config,omitempty"`
41
+ Progress * Progress `json:"progress,omitempty"`
42
+ // OSV is emitted for every vulnerability in the current database
43
+ // that applies to user modules regardless of their version. If a
44
+ // module is being used at a vulnerable version, the corresponding
45
+ // OSV will be referenced in Findings depending on the type of usage
46
+ // and the desired scan level.
47
+ OSV * osv.Entry `json:"osv,omitempty"`
48
+ Finding * Finding `json:"finding,omitempty"`
44
49
}
45
50
46
51
// Config must occur as the first message of a stream and informs the client
You can’t perform that action at this time.
0 commit comments