Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore suse/suse cvrf. Other performance improvements. #172

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "appthreat-vulnerability-db"
version = "5.7.3"
version = "5.7.4"
description = "AppThreat's vulnerability database and package search library with a built-in file based storage. OSV, CVE, GitHub, npm are the primary sources of vulnerabilities."
authors = [
{name = "Team AppThreat", email = "cloud@appthreat.com"},
Expand Down
6 changes: 4 additions & 2 deletions vdb/lib/aqua.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def is_supported_source(self, zfname):
"oval",
"glad",
"mariner",
f"cvrf{os.sep}suse{os.sep}suse",
):
if distro in zfname:
return False
Expand All @@ -140,8 +141,9 @@ def is_supported_source(self, zfname):
except Exception:
pass
for year in range(1999, nvd_start_year):
if f"CVE-{year}-" in zfname:
return False
for pat in (f"CVE-{year}-", f"{os.sep}{year}{os.sep}", f"ALAS-{year}-", f"ALAS2-{year}-", f"openSUSE-SU-{year}-"):
if pat in zfname:
return False
if zfname.endswith(".json"):
return True
return False
Expand Down
Loading