From 3a0f1307d5bc7a4878362da72e5fae50cfc57e82 Mon Sep 17 00:00:00 2001 From: Will Murphy Date: Tue, 7 Jul 2026 14:33:07 -0400 Subject: [PATCH] chore(quality-gate): pass config file path Otherwise, when running in a development shell, which sets GRYPE_DB_CONFIG in the environment, the config file pointed to by that environment variable can override the one written by the quality gate and cause unexpected test behavior. Signed-off-by: Will Murphy --- tests/quality/configure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/quality/configure.py b/tests/quality/configure.py index 9c4b04d3..a34543cc 100644 --- a/tests/quality/configure.py +++ b/tests/quality/configure.py @@ -738,7 +738,7 @@ def build_db(cfg: Config): logging.warning(f"failed to fetch cache for {provider!r}, retrying: {e}") else: raise - subprocess.run([GRYPE_DB, "cache", "restore", "--path", cache_file], check=True) + subprocess.run([GRYPE_DB, "cache", "restore", "--path", cache_file, "-c", ".grype-db.yaml"], check=True) os.remove(cache_file) # run providers