| 1 |
syntax = "proto3"; |
| 2 |
|
| 3 |
package in_toto_attestation.predicates.vulns.v02; |
| 4 |
|
| 5 |
import "google/protobuf/struct.proto"; |
| 6 |
import "google/protobuf/timestamp.proto"; |
| 7 |
|
| 8 |
option go_package = "github.com/in-toto/attestation/go/predicates/vulns/v02"; |
| 9 |
option java_package = "io.github.intoto.attestation.predicates.vulns.v02"; |
| 10 |
|
| 11 |
// Validation of all fields is left to the users of this proto. |
| 12 |
message Vulns { |
| 13 |
Scanner scanner = 1; |
| 14 |
ScanMetadata metadata = 2; |
| 15 |
} |
| 16 |
|
| 17 |
message Scanner { |
| 18 |
string uri = 1; |
| 19 |
optional string version = 2; |
| 20 |
VulnDatabase db = 3; |
| 21 |
repeated Result result = 4; |
| 22 |
} |
| 23 |
|
| 24 |
message VulnDatabase { |
| 25 |
optional string uri = 1; |
| 26 |
optional string version = 2; |
| 27 |
google.protobuf.Timestamp last_update = 3; |
| 28 |
} |
| 29 |
|
| 30 |
message Result { |
| 31 |
string id = 1; |
| 32 |
repeated Severity severity = 2; |
| 33 |
|
| 34 |
message Severity { |
| 35 |
string method = 1; |
| 36 |
string score = 2; |
| 37 |
} |
| 38 |
|
| 39 |
repeated google.protobuf.Struct annotations = 3; |
| 40 |
} |
| 41 |
|
| 42 |
message ScanMetadata { |
| 43 |
google.protobuf.Timestamp scan_started_on = 1; |
| 44 |
google.protobuf.Timestamp scan_finished_on = 2; |
| 45 |
} |