mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-28 11:11:47 +02:00
Update grype db as part of install
This commit is contained in:
4
.github/workflows/ci.py
vendored
4
.github/workflows/ci.py
vendored
@@ -211,7 +211,9 @@ def install_grype() -> str:
|
|||||||
data = download_with_retry(url)
|
data = download_with_retry(url)
|
||||||
with tarfile.open(fileobj=io.BytesIO(data), mode='r') as tf:
|
with tarfile.open(fileobj=io.BytesIO(data), mode='r') as tf:
|
||||||
tf.extract('grype', path=dest, filter='fully_trusted')
|
tf.extract('grype', path=dest, filter='fully_trusted')
|
||||||
return os.path.join(dest, 'grype')
|
exe = os.path.join(dest, 'grype')
|
||||||
|
subprocess.check_call([exe, 'db', 'update'])
|
||||||
|
return exe
|
||||||
|
|
||||||
|
|
||||||
IGNORED_DEPENDENCY_CVES = [
|
IGNORED_DEPENDENCY_CVES = [
|
||||||
|
|||||||
Reference in New Issue
Block a user