vex: allow FixedInVersion rewrite via CEL - #1975
Draft
crozzy wants to merge 1 commit into
Draft
Conversation
crozzy
force-pushed
the
vex-fixed-in-version
branch
from
August 3, 2026 17:28
9003429 to
94fee35
Compare
9 tasks
hdonnay
reviewed
Aug 6, 2026
| return "" | ||
| } | ||
| sum := sha256.Sum256([]byte(expr)) | ||
| return hex.EncodeToString(sum[:8]) |
Contributor
Author
There was a problem hiding this comment.
64 bits / 8 bytes seemed enough to signal the expression had changed and for something that is non-security related but full sha-256 is also fine, I can change that
This patch allows callers to rewrite FixedInVersions with a CEL expression. Expressions have access to all the PURL data with everything in a StringType except for the qualifiers which are MapType. Signed-off-by: crozzy <joseph.crosland@gmail.com>
crozzy
force-pushed
the
vex-fixed-in-version
branch
from
August 6, 2026 22:03
94fee35 to
8af3812
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This patch allows callers to rewrite FixedInVersions with a CEL expression. Expressions have access to all the PURL data with everything in a StringType except for the qualifiers which are MapType.