Skip to content

Commit c38f3c1

Browse files
authored
feat(policy): allow evidence and string material kind (#2305)
Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
1 parent 8fc5c34 commit c38f3c1

5 files changed

Lines changed: 85 additions & 97 deletions

File tree

app/controlplane/api/gen/frontend/workflowcontract/v1/crafting_schema.ts

Lines changed: 1 addition & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/controlplane/api/gen/jsonschema/workflowcontract.v1.PolicySpecV2.jsonschema.json

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

app/controlplane/api/gen/jsonschema/workflowcontract.v1.PolicySpecV2.schema.json

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

app/controlplane/api/workflowcontract/v1/crafting_schema.pb.go

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

app/controlplane/api/workflowcontract/v1/crafting_schema.proto

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -280,14 +280,8 @@ message PolicySpecV2 {
280280
}
281281

282282
// if set, it will match any material supported by Chainloop
283-
// except those not having a direct schema (STRING, ARTIFACT, EVIDENCE), since their format cannot be guessed by the crafter.
284-
// CONTAINER, HELM_CHART are also excluded, but we might implement custom policies for them in the future.
285283
CraftingSchema.Material.MaterialType kind = 3 [(buf.validate.field).enum = {
286-
not_in: [
287-
1,
288-
3,
289-
11
290-
]
284+
not_in: [3]
291285
}];
292286
}
293287

0 commit comments

Comments
 (0)