Skip to content

Commit

Permalink
rename to use vulns and avoid ambiguous types
Browse files Browse the repository at this point in the history
Signed-off-by: hectorj2f <[email protected]>
  • Loading branch information
hectorj2f committed Oct 13, 2024
1 parent 78d0e86 commit bd07c01
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions protos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ predicates have protobuf definitions:
artifact.
- [SCAI]: Evidence-based assertions about software artifact and supply
chain attributes.
- [VULN]: Describes how to store the results of scanners when detecting vulnerabilities in a software artifact.
- [VULNS]: Describes how to store the results of scanners when detecting vulnerabilities in a software artifact.
chain attributes.
- [Test Result]: Expresses the result of a test run in the software supply
chain.
Expand Down Expand Up @@ -52,7 +52,7 @@ testing the supported language bindings.
[SCAI]: in_toto_attestation/predicates/scai/
[SLSA Provenance]: in_toto_attestation/predicates/provenance/
[SLSA Verification Summary]: in_toto_attestation/predicates/vsa/
[VULN]: in_toto_attestation/predicates/vuln/
[VULNS]: in_toto_attestation/predicates/vulns/
[in-toto Link]: in_toto_attestation/predicates/link/
[Test Result]: in_toto_attestation/predicates/test_result/
[documentation]: ../docs/protos.md
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
syntax = "proto3";

package in_toto_attestation.predicates.vuln.v01;
package in_toto_attestation.predicates.vulns.v01;

import "google/protobuf/struct.proto";
import "google/protobuf/timestamp.proto";

option go_package = "github.com/in-toto/attestation/go/predicates/vuln/v1";
option java_package = "io.github.intoto.attestation.predicates.vuln.v1";
option go_package = "github.com/in-toto/attestation/go/predicates/vulns/v1";
option java_package = "io.github.intoto.attestation.predicates.vulns.v1";

// Validation of all fields is left to the users of this proto.
message Vuln {
Expand Down
2 changes: 1 addition & 1 deletion spec/predicates/vuln.md → spec/predicates/vulns.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ The `predicate` contains a JSON-encoded data with the following fields:

> > > > > This is a string representing the severity score based on the selected method.
**scanner.result.[*].vulnerability.annotations, optional** list
**scanner.result.[*].vulnerability.annotations, optional** list, map <string, value>

> > > > > This is a list of key/value pairs where scanners can add additional custom information.
Expand Down

0 comments on commit bd07c01

Please sign in to comment.