Conversation
Remove the RH Konflux-specific POLICY_BUNDLE_DIGEST default value from the verify-enterprise-contract and verify-conforma-konflux-ta task definitions. The default is moved to the enterprise-contract pipeline definition where it belongs, since only Konflux consumers need the digest pin. Non-Konflux consumers of tekton-catalog no longer inherit a default that doesn't apply to them. The pin-konflux-policy-bundle.sh script already handles empty POLICY_BUNDLE_DIGEST gracefully (no-op). Changes: - Clear POLICY_BUNDLE_DIGEST default to empty string in both tasks - Add POLICY_BUNDLE_DIGEST param to enterprise-contract pipeline - Update hack/update-policy-digest-in-tasks.sh to target the pipeline - Update docs to remove the digest default - Update test snapshots for the new no-op behavior
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (6)
💤 Files with no reviewable changes (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe enterprise-contract pipeline now defines and forwards the pinned policy bundle digest. The verification tasks default to an empty digest. The update script and documentation now reference the pipeline-level parameter. ChangesPolicy bundle digest configuration
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The pipeline now owns the Konflux digest pin while direct task consumers retain the unpinned default; the change is mergeable. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
Risk Assessment: moderate (2/5) DetailsLow-risk refactor by a frequent contributor moving the POLICY_BUNDLE_DIGEST default from tasks to the pipeline, with the main concern being silent behavioral change for direct task users who bypass the pipeline. |
|
Looks good to me |
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:
|
Remove the RH Konflux-specific POLICY_BUNDLE_DIGEST default value from the verify-enterprise-contract and verify-conforma-konflux-ta task definitions. The default is moved to the enterprise-contract pipeline definition where it belongs, since only Konflux consumers need the digest pin.
Non-Konflux consumers of tekton-catalog no longer inherit a default that doesn't apply to them. The pin-konflux-policy-bundle.sh script already handles empty POLICY_BUNDLE_DIGEST gracefully (no-op).
Changes:
Resolves: EC-2153