Skip to content

Commit 62b93e5

Browse files
authored
feat: add git repository annotations (#402)
Signed-off-by: Miguel Martinez Trivino <[email protected]>
1 parent 49ac85f commit 62b93e5

File tree

10 files changed

+916
-214
lines changed

10 files changed

+916
-214
lines changed

app/cli/api/attestation/v1/crafting_state.pb.go

Lines changed: 362 additions & 170 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/cli/api/attestation/v1/crafting_state.pb.validate.go

Lines changed: 355 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/cli/api/attestation/v1/crafting_state.proto

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,22 @@ message Attestation {
8484
string runner_url = 7;
8585
workflowcontract.v1.CraftingSchema.Runner.RunnerType runner_type = 8;
8686

87-
// SHA1 of the environment where the attestation was executed
88-
string sha1_commit = 9;
87+
// Head Commit of the environment where the attestation was executed (optional)
88+
Commit head = 9;
89+
}
90+
91+
message Commit {
92+
string hash = 1 [(validate.rules).string.min_len = 1];
93+
string author_email = 2 [(validate.rules).string.min_len = 1];
94+
string author_name = 3 [(validate.rules).string.min_len = 1];
95+
string message = 4 [(validate.rules).string.min_len = 1];
96+
google.protobuf.Timestamp date = 5;
97+
repeated Remote remotes = 6;
98+
99+
message Remote {
100+
string name = 1 [(validate.rules).string.min_len = 1];
101+
string url = 2 [(validate.rules).string.min_len = 1];
102+
}
89103
}
90104

91105
// Intermediate information that will get stored in the system while the run is being executed

0 commit comments

Comments
 (0)