Skip to content

Commit

Permalink
feat: store FQ reference to the policy (#1284)
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Martinez <[email protected]>
  • Loading branch information
migmartri authored Sep 2, 2024
1 parent 3d32776 commit 091c5f8
Show file tree
Hide file tree
Showing 23 changed files with 1,743 additions and 692 deletions.
681 changes: 384 additions & 297 deletions app/controlplane/api/controlplane/v1/workflow_run.pb.go

Large diffs are not rendered by default.

17 changes: 12 additions & 5 deletions app/controlplane/api/controlplane/v1/workflow_run.proto
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ message AttestationServiceGetPolicyRequest {

message AttestationServiceGetPolicyResponse {
workflowcontract.v1.Policy policy = 1;
// FQDN of the policy in the provider
Reference reference = 2;

message Reference {
string url = 1;
string digest = 2;
}
}

message AttestationServiceGetContractRequest {
Expand Down Expand Up @@ -124,12 +131,12 @@ message WorkflowRunServiceListRequest {
// Filters
// by workflow
string workflow_name = 1 [(buf.validate.field) = {
ignore_empty: true,
ignore_empty: true
cel: {
message: "must contain only lowercase letters, numbers, and hyphens.",
expression: "this.matches('^[a-z0-9]([-a-z0-9]*[a-z0-9])?$')",
id: "name.dns-1123",
},
message: "must contain only lowercase letters, numbers, and hyphens."
expression: "this.matches('^[a-z0-9]([-a-z0-9]*[a-z0-9])?$')"
id: "name.dns-1123"
}
}];
// by run status
RunStatus status = 3;
Expand Down
Loading

0 comments on commit 091c5f8

Please sign in to comment.