Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(policies): document multi-kind policies #1327

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jiparis
Copy link
Member

@jiparis jiparis commented Sep 16, 2024

Follow up to document multi-kind policies.

Signed-off-by: Jose I. Paris <jiparis@chainloop.dev>
@@ -32,6 +32,28 @@ spec:
path: my-script.rego
```

### Supporting multiple material types
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd review the example above to only use this new spec format, not the previous one, which is now deprecated correct? We should also rewrite the policies we have in place to that no?

- kind: SARIF
path: cves-sarif.rego
```
In these cases, Chainloop will choose the right script to execute, but externally it would be seen as a single policy.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should indicate that violations will be the sum of the violations in all the paths

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants