Skip to content

Commit 6e0b70a

Browse files
authored
Merge pull request #434 from puerco/vulnsv02-proto
VulnsV2: Add missing invocation to protos and spec
2 parents 4d9125d + e474a1f commit 6e0b70a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ option java_package = "io.github.intoto.attestation.predicates.vulns.v02";
1111
// Validation of all fields is left to the users of this proto.
1212
message Vulns {
1313
Scanner scanner = 1;
14-
ScanMetadata scan_metadata = 2;
14+
ScanMetadata metadata = 2;
1515
}
1616

1717
message Scanner {
1818
string uri = 1;
1919
optional string version = 2;
20-
VulnDatabase database = 3;
20+
VulnDatabase db = 3;
2121
repeated Result result = 4;
2222
}
2323

spec/predicates/vulns_02.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ The `predicate` contains a JSON-encoded data with the following fields:
129129
"id": "CVE-123",
130130
"severity": [
131131
{ "method": "nvd", "score": "medium"},
132-
{ "method": "cvss_score", "score", "5.2" }
132+
{ "method": "cvss_score", "score": "5.2" }
133133
]
134134
},
135135
{...}

0 commit comments

Comments
 (0)