feat(EC-1829): include annotations in OCI referrers response#3311
feat(EC-1829): include annotations in OCI referrers response#3311joejstuart wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (3)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughUpdated the ChangesOCI Image Referrers Annotations Field
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
The ec.oci.image_referrers Rego builtin now returns manifest annotations for each referrer descriptor, enabling policies to filter or sort duplicate referrers by annotation values (e.g., timestamps). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
annotationsfield (map[string]string) to theec.oci.image_referrersRego builtin responsenewAnnotationsTerm()helper, consistent with how annotations are handled in other OCI builtinsChanges
internal/rego/oci/oci.go: Added annotations to the descriptor type declaration and response buildinginternal/rego/oci/oci_test.go: Added annotations field presence assertion and dedicated structural testTest plan
TestOCIImageReferrerssubtests passannotations field is an objectsubtest validates annotations are returned as an object on every descriptorinternal/rego/ociunit test suite passes with no regressionsJira: EC-1829
🤖 Generated with Claude Code