Skip to content

Commit cd2854c

Browse files
committed
Add almalinux10 support in osv.py
Signed-off-by: ambuj <kulshreshthaak.12@gmail.com>
1 parent e1e7a5b commit cd2854c

File tree

1 file changed

+2
-1
lines changed
  • vulnerabilities/importers

1 file changed

+2
-1
lines changed

vulnerabilities/importers/osv.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"cargo": "cargo",
4747
"almalinux:8": "rpm",
4848
"almalinux:9": "rpm",
49+
"almalinux:10": "rpm",
4950
}
5051

5152

@@ -312,7 +313,7 @@ def get_affected_purl(affected_pkg, raw_id):
312313
namespace = ""
313314
if purl_type == "maven":
314315
namespace, _, name = name.partition(":")
315-
if ecosys == "almalinux:8" or ecosys == "almalinux:9":
316+
if ecosys in ["almalinux:8","almalinux:9" , "almalinux:10"]:
316317
namespace = "almalinux"
317318

318319
purl = PackageURL(type=purl_type, namespace=namespace, name=name)

0 commit comments

Comments
 (0)