Skip to content

Commit 54368be

Browse files
committed
Fix grype not scanning C deps that dont have CPEs
1 parent c30f8ce commit 54368be

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/ci.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def check_dependencies() -> None:
222222
dest = os.path.join(SW, 'macos')
223223
os.makedirs(dest, exist_ok=True)
224224
install_bundle(dest, os.path.basename(dest))
225-
cmdline = [grype, '--by-cve', '--config', gc, '--fail-on', 'medium', '--only-fixed']
225+
cmdline = [grype, '--by-cve', '--config', gc, '--fail-on', 'medium', '--only-fixed', '--add-cpes-if-none']
226226
if (cp := subprocess.run(cmdline + ['dir:' + SW])).returncode != 0:
227227
raise SystemExit(cp.returncode)
228228
# Now test against the SBOM

bypy/sources.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@
6565
},
6666

6767
{
68-
"name": "libxml2 2.12.7",
68+
"name": "libxml2 2.12.10",
6969
"spdx": "MIT",
7070
"unix": {
7171
"file_extension": "tar.xz",
72-
"hash": "sha256:24ae78ff1363a973e6d8beba941a7945da2ac056e19b53956aeb6927fd6cfb56",
72+
"hash": "sha256:c3d8c0c34aa39098f66576fe51969db12a5100b956233dc56506f7a8679be995",
7373
"urls": ["https://download.gnome.org/sources/libxml2/{version_except_last}/{filename}"]
7474
}
7575
},

0 commit comments

Comments
 (0)