-
Notifications
You must be signed in to change notification settings - Fork 38
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
For example, if I have this policy
apiVersion: workflowcontract.chainloop.dev/v1
kind: Policy
metadata:
name: test-http
description: HTTP policy that validates Chainloop platform version against expected version 1.2.3
spec:
policies:
- path: test-http.rego
kind: SBOM_CYCLONEDX_JSON
and I run it like this
chainloop policy develop eval --kind EVIDENCE --material ./empty.json -p test-http.yaml
I get
chainloop policy develop eval --kind EVIDENCE --material ./empty.json -p test-http.yaml
[
{
"violations": [],
"skip_reasons": [],
"skipped": false,
"ignored": true
}
]
with no indication if it was executed or not, in fact it was not.
As a minimum I'd make the policy fail indicating that no execution branch matched the criteria, and ideally we should show logging information that tells the user which path it was taken, even the script executed,
cc/ @jiparis
jiparis
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working