From cb56da890c428bd9ceec8382dbf2fe56b2f276c9 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 17 Oct 2025 10:29:45 +0530 Subject: [PATCH] Update grype db as part of installation --- setup/unix-ci.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup/unix-ci.py b/setup/unix-ci.py index a4be7d7165..3edc0e146a 100644 --- a/setup/unix-ci.py +++ b/setup/unix-ci.py @@ -160,7 +160,9 @@ def install_grype() -> str: data = download_with_retry(url) with tarfile.open(fileobj=io.BytesIO(data), mode='r') as tf: tf.extract('grype', path=dest, filter='fully_trusted') - return os.path.join(dest, 'grype') + exe = os.path.join(dest, 'grype') + subprocess.run([exe, 'db', 'update']) + return exe IGNORED_DEPENDENCY_CVES = [ @@ -222,7 +224,7 @@ def check_dependencies() -> None: print('Testing against the SBOM', flush=True) import runpy orig = sys.argv, sys.stdout - sys.argv = ['bypy', 'sbom', 'myproject', '1.0.0'] + sys.argv = ['bypy', 'sbom', 'calibre', '1.0.0'] buf = io.StringIO() sys.stdout = buf runpy.run_path('bypy-src')