Closed maxlambrecht closed 1 day ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 36.83%. Comparing base (
2ef6022
) to head (b62e437
). Report is 140 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Thanks! Can you add a test for this? I think you just need to check what's returned by a code block like https://github.com/sigstore/cosign/blob/65969ae877dd2e64520378905c5dda974c98a576/pkg/cosign/verify_test.go#L553-L556.
If adding this test isn't straightforward, that's fine, this is a simple enough change.
Thanks! Can you add a test for this? I think you just need to check what's returned by a code block like
If adding this test isn't straightforward, that's fine, this is a simple enough change.
It wasn't straightforward, but I managed to add a comprehensive test covering several scenarios. I refactored the existing test, which only covered a failing validation, and combined it with other cases to ensure thorough coverage.
Let me know if you need any further adjustments or additional scenarios covered.
Summary
This PR addresses an issue where the
bundleVerified
flag was not set to true after a successful online Rekor verification. The change ensures thatbundleVerified
accurately reflects the verification status when Rekor lookup is used.Resolves #3740
Release Note
Documentation