Skip to content

test(cli): cover attestation push policy enforcement behavior#2774

Merged
matiasinsaurralde merged 1 commit intochainloop-dev:mainfrom
matiasinsaurralde:test/attestation-push-policy-enforcement
Feb 23, 2026
Merged

test(cli): cover attestation push policy enforcement behavior#2774
matiasinsaurralde merged 1 commit intochainloop-dev:mainfrom
matiasinsaurralde:test/attestation-push-policy-enforcement

Conversation

@matiasinsaurralde
Copy link
Contributor

Summary

  • Extracts attestation push policy-enforcement checks into a focused helper for easier validation.
  • Adds subtests for current behavior:
    • strategy is advisory + non-gated violations does not block push
    • strategy is advisory + gated violations returns a gate error
  • Establishes a baseline for the follow-up feature work on per-policy gate overrides (feat(policies): allow disabling gating restrictions for specific policies #2769).

Extract policy enforcement checks in attestation push into a helper and add
unit subtests for advisory/non-gated and advisory/gated violation scenarios.

Signed-off-by: Matías Insaurralde <[email protected]>
@matiasinsaurralde matiasinsaurralde merged commit ba8c998 into chainloop-dev:main Feb 23, 2026
14 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