Skip to content

Commit 091c5f8

Browse files
authored
feat: store FQ reference to the policy (#1284)
Signed-off-by: Miguel Martinez <[email protected]>
1 parent 3d32776 commit 091c5f8

23 files changed

+1743
-692
lines changed

app/controlplane/api/controlplane/v1/workflow_run.pb.go

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

app/controlplane/api/controlplane/v1/workflow_run.proto

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ message AttestationServiceGetPolicyRequest {
5454

5555
message AttestationServiceGetPolicyResponse {
5656
workflowcontract.v1.Policy policy = 1;
57+
// FQDN of the policy in the provider
58+
Reference reference = 2;
59+
60+
message Reference {
61+
string url = 1;
62+
string digest = 2;
63+
}
5764
}
5865

5966
message AttestationServiceGetContractRequest {
@@ -124,12 +131,12 @@ message WorkflowRunServiceListRequest {
124131
// Filters
125132
// by workflow
126133
string workflow_name = 1 [(buf.validate.field) = {
127-
ignore_empty: true,
134+
ignore_empty: true
128135
cel: {
129-
message: "must contain only lowercase letters, numbers, and hyphens.",
130-
expression: "this.matches('^[a-z0-9]([-a-z0-9]*[a-z0-9])?$')",
131-
id: "name.dns-1123",
132-
},
136+
message: "must contain only lowercase letters, numbers, and hyphens."
137+
expression: "this.matches('^[a-z0-9]([-a-z0-9]*[a-z0-9])?$')"
138+
id: "name.dns-1123"
139+
}
133140
}];
134141
// by run status
135142
RunStatus status = 3;

0 commit comments

Comments
 (0)