Skip to content

feat(policy): add auto match to policy schema#2402

Merged
Piskoo merged 4 commits intochainloop-dev:mainfrom
Piskoo:fix-update-matches-evaluation
Sep 4, 2025
Merged

feat(policy): add auto match to policy schema#2402
Piskoo merged 4 commits intochainloop-dev:mainfrom
Piskoo:fix-update-matches-evaluation

Conversation

@Piskoo
Copy link
Collaborator

@Piskoo Piskoo commented Aug 29, 2025

Summary

  • Extend policy schema with autoMatch that takes rego policy as either embedded script or standalone file
  • Add handle for empty results from non existing rule evaluation
  • Change MatchesEvaluation default return when rule does not exist to true
  • Change MatchesEvaluation to take evaluation violations instead of full evaluation result.

Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
@Piskoo Piskoo marked this pull request as ready for review August 29, 2025 13:53
@Piskoo Piskoo marked this pull request as draft September 1, 2025 14:21
Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
@Piskoo Piskoo changed the title feat(rego): update matches evaluation input parameters feat(policy): add auto match to policy schema Sep 3, 2025
@Piskoo Piskoo marked this pull request as ready for review September 3, 2025 23:05
@Piskoo Piskoo merged commit 89e6f45 into chainloop-dev:main Sep 4, 2025
13 checks passed
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