Add GRYPE_EXECUTABLE_PATH support to bypass Go build requirement#504
Merged
wagoodman merged 5 commits intoanchore:mainfrom Oct 23, 2025
Merged
Add GRYPE_EXECUTABLE_PATH support to bypass Go build requirement#504wagoodman merged 5 commits intoanchore:mainfrom
wagoodman merged 5 commits intoanchore:mainfrom
Conversation
- Code currently uses timestamp.isoformat(), which >= py-3.11 supports rfc3319 designations with stdlib - This removes the unused import since the project already pins to >=3.11, < 3.14 - All tests currently pass with this change Signed-off-by: James Gardner <james.gardner@chainguard.dev>
013cd9b to
2797c64
Compare
…ype executable install Signed-off-by: James Gardner <james.gardner@chainguard.dev>
2797c64 to
0d0e51a
Compare
Signed-off-by: James Gardner <james.gardner@chainguard.dev>
wagoodman
approved these changes
Oct 23, 2025
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.
Summary
Add opt-in environment variable
GRYPE_EXECUTABLE_PATHto allow using pre-built grype binaries instead of building from source. This enables running yardstick in distroless containers or environments without Go toolchain installed.This mirrors the implementation in grype-db-manager PR #699 for
GRYPE_DB_EXECUTABLE_PATH.Changes
Added
GRYPE_EXECUTABLE_PATHenvironment variable supportshutil.which()for executable validationTests the following scenarios:
Usage
Set environment variable to use system grype
export GRYPE_EXECUTABLE_PATH=/usr/bin/grypeYardstick will now use the pre-built binary instead of building from source