Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add proto for test result predicate #233

Merged
merged 1 commit into from
May 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion protos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ predicates have protobuf definitions:

- [SLSA Verification Summary]: SLSA verification decision about a software
artifact.
- [in-toto Link]: Generic predicate that records a software supply chain step
- [in-toto Link]: Generic predicate that records a software supply chain step.
- [Test Result]: Expresses the result of a test run in the software supply
chain.

## Supported language bindings

Expand Down Expand Up @@ -43,6 +45,7 @@ testing the supported language bindings.

[SLSA Verification Summary]: in_toto_attestation/predicates/vsa/
[in-toto Link]: in_toto_attestation/predicates/link/
[Test Result]: in_toto_attestation/predicates/test_result/
[documentation]: ../docs/protos.md
[go]: ../go/
[python]: ../python/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

syntax = "proto3";

package in_toto_attestation.predicates.test_result.v0;

import "in_toto_attestation/v1/resource_descriptor.proto";

option go_package = "github.com/in-toto/attestation/go/predicates/test_result/v0";
option java_package = "io.github.intoto.attestation.predicates.test_result.v0";

message TestResult {
string result = 1;

repeated in_toto_attestation.v1.ResourceDescriptor configuration = 2;

string url = 3;

repeated string passed_tests = 4;

repeated string warned_tests = 5;

repeated string failed_tests = 6;
}
4 changes: 2 additions & 2 deletions spec/predicates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ our [vetting process], and may be of general interest:
artifact.
- [SPDX]: SPDX-formatted BOM for software artifacts.
- [CycloneDX]: CycloneDX BOM for software artifacts.
- [Test Results]: A generic schema to express results of any type of tests.
- [Test Result]: A generic schema to express results of any type of tests.

[CycloneDX]: https://cyclonedx.org/
[Link]: link.md
Expand All @@ -33,6 +33,6 @@ our [vetting process], and may be of general interest:
[SLSA Provenance]: https://slsa.dev/provenance
[SLSA Verification Summary]: vsa.md
[SPDX]: spdx.md
[Test Results]: test-results.md
[Test Result]: test-result.md
[in-toto 0.9]: https://github.com/in-toto/docs/blob/master/in-toto-spec.md#44-file-formats-namekeyid-prefixlink
[vetting process]: ../../docs/new_predicate_guidelines.md#vetting-process
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Predicate type: Test Results
# Predicate type: Test Result

Type URI: https://in-toto.io/attestation/test-result/v0.1

Expand Down