Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion app/cli/pkg/action/testdata/contract_v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,8 @@ spec:
attestation:
- ref: file://attestation-policy.yaml
policyGroups:
- ref: file://testdata/policy_group.yaml
- ref: sbom-quality
with:
user_name: "test-user"
skip:
- policy-to-skip

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

148 changes: 79 additions & 69 deletions app/controlplane/api/workflowcontract/v1/crafting_schema.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,8 @@ message PolicyGroupAttachment {
string ref = 1 [(buf.validate.field).string.min_len = 1];
// group arguments
map<string, string> with = 2;
// policy names to skip (matched against metadata.name)
repeated string skip = 3;
}

// Represents a group or policies
Expand Down
8 changes: 4 additions & 4 deletions app/controlplane/configs/config.devel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ prometheus_integration:
- org_name: "development"

# Policy providers configuration
policy_providers:
- name: chainloop
default: true
url: http://localhost:8002/v1
# policy_providers:
Copy link
Member Author

Choose a reason for hiding this comment

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

this was added by mistake in another PR

# - name: chainloop
# default: true
# url: http://localhost:8002/v1

enable_profiler: true
# federated_authentication:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: chainloop.dev/v1
kind: Contract
metadata:
name: contract-with-empty-skip
description: Test contract with empty skip list
spec:
materials:
- name: my-sbom
type: SBOM_CYCLONEDX_JSON
runner:
type: GITHUB_ACTION
policyGroups:
- ref: file://../testdata/policy_group_with_embedded.yaml
skip: []
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: chainloop.dev/v1
kind: Contract
metadata:
name: contract-with-valid-skip
description: Test contract with valid policy skip list
spec:
materials:
- name: my-sbom
type: SBOM_CYCLONEDX_JSON
runner:
type: GITHUB_ACTION
policyGroups:
- ref: file://../testdata/policy_group_with_embedded.yaml
skip:
- sbom-version-policy
Loading
Loading