Debian Codegraph @

protos/in_toto_attestation/predicates/vulns/v0.1/vulns.proto

raw
1 syntax = "proto3";
2
3 package in_toto_attestation.predicates.vulns.v01;
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/v01";
9 option java_package = "io.github.intoto.attestation.predicates.vulns.v01";
10
11 // Validation of all fields is left to the users of this proto.
12 message Vulns {
13 Scanner scanner = 1;
14 ScanMetadata scan_metadata = 2;
15 }
16
17 message Scanner {
18 string uri = 1;
19 optional string version = 2;
20 VulnDatabase database = 3;
21 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 repeated Vulnerability vulnerabilities = 3;
32 }
33
34 message Vulnerability {
35 string id = 1;
36 repeated Severity severity = 2;
37
38 message Severity {
39 string method = 1;
40 string score = 2;
41 }
42
43 repeated google.protobuf.Struct annotations = 3;
44 }
45
46 message ScanMetadata {
47 google.protobuf.Timestamp scan_started_on = 1;
48 google.protobuf.Timestamp scan_finished_on = 2;
49 }