Skip to content

enable configuring uncompressed database in grype db#483

Merged
willmurphyscode merged 1 commit intomainfrom
fix-import-uncompressed-grype-db
Aug 6, 2025
Merged

enable configuring uncompressed database in grype db#483
willmurphyscode merged 1 commit intomainfrom
fix-import-uncompressed-grype-db

Conversation

@willmurphyscode
Copy link
Copy Markdown
Contributor

Previously, grype depended on the 'grype-db package' step, which includes the database, having been run. However, recent versions of grype can import the vulnerability.db file that results from 'grype-db build' directly. Therefore, yardstick should support configuring the grype database to be a .db file.

The main benefit is saving time in CI, where we sometimes build a grype database, and then compress it, and then import it (which includes decompressing it) on the same host. This change will allow quality gates to use less CPU time by preventing them from needing to zstd compress and then decompress the vulnerability database.

Previously, grype depended on the 'grype-db package' step, which
includes the database, having been run. However, recent versions of
grype can import the vulnerability.db file that results from 'grype-db
build' directly. Therefore, yardstick should support configuring the
grype database to be a .db file.

The main benefit is saving time in CI, where we sometimes build a grype
database, and then compress it, and then import it (which includes
decompressing it) on the same host. This change will allow quality gates
to use less CPU time by preventing them from needing to zstd compress
and then decompress the vulnerability database.

Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com>
@willmurphyscode willmurphyscode merged commit ef2523e into main Aug 6, 2025
3 checks passed
@willmurphyscode willmurphyscode deleted the fix-import-uncompressed-grype-db branch August 6, 2025 18:32
@willmurphyscode willmurphyscode added the bug Something isn't working label Aug 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants