-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
Currently, when you reference a policy group, all the policies inside are created. My proposal is to have an attribute in the attachment of the policy groups in the contract that allows you to explicitly disable policies you want to skip.
For example, having this contract that runs all the policies in the quality group
apiVersion: chainloop.dev/v1
kind: Contract
metadata:
name: example-contract
spec:
policyGroups:
- ref: file://groups/sbom-quality-group.yaml
with:
bannedComponents: log4j@2.14.1
We could have
apiVersion: chainloop.dev/v1
kind: Contract
metadata:
name: example-contract
spec:
policyGroups:
- ref: file://groups/sbom-quality-group.yaml
with:
bannedComponents: log4j@2.14.1
bannedLicenses: AGPL-1.0-only, AGPL-1.0-or-later, AGPL-3.0-only, AGPL-3.0-or-later
skip:
- sbom-present
- my-other-policy