Debian Codegraph @

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

raw
1 // Keep in sync with schema at https://slsa.dev/provenance/v0.1
2 syntax = "proto3";
3
4 package in_toto_attestation.predicates.provenance.v01;
5
6 import "google/protobuf/struct.proto";
7 import "google/protobuf/timestamp.proto";
8
9 option go_package = "github.com/in-toto/attestation/go/predicates/provenance/v01";
10 option java_package = "io.github.intoto.attestation.predicates.provenance.v01";
11
12 // Proto representation of predicate type https://slsa.dev/provenance/v0.1
13 message Provenance {
14 Builder builder = 1;
15 Recipe recipe = 2;
16 Metadata metadata = 3;
17 repeated Material materials = 4;
18 }
19
20 message Builder {
21 string id = 1;
22 }
23
24 message Recipe {
25 string type = 1;
26 int32 defined_in_material = 2;
27 string entry_point = 3;
28 google.protobuf.Struct arguments = 4;
29 google.protobuf.Struct environment = 5;
30 }
31
32 message Metadata {
33 string build_invocation_id = 1;
34 google.protobuf.Timestamp build_started_on = 2;
35 google.protobuf.Timestamp build_finished_on = 3;
36 Completeness completeness = 4;
37 bool reproducible = 5;
38 }
39
40 message Completeness {
41 bool arguments = 1;
42 bool environment = 2;
43 bool materials = 3;
44 }
45
46 message Material {
47 string uri = 1;
48 map<string, string> digest = 2;
49 }