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

[Snyk] Fix for 3 vulnerabilities #1

Merged
merged 4 commits into from
Sep 24, 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 Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12.3
FROM python:3.12.5

WORKDIR /usr/src/app

Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pymongo~=4.7.2
pymongo~=4.9.1
requests~=2.32.2
nltk~=3.8.1
nltk~=3.9.1
rapidfuzz~=3.9.3
2 changes: 1 addition & 1 deletion vaultlib/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ class NVDParallelAPICaller: # pylint: disable=R0902
"""
Introduces parallelism for API calls to NVD.
"""
def __init__( # pylint: disable=R0913
def __init__( # pylint: disable=R0913,R0917
self,
delay: float,
progress_callback: Callable[[int, int], None],
Expand Down
4 changes: 2 additions & 2 deletions vaultlib/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ def __init__(self, config_path: str = "config.json") -> None:
self.conn_retry_delay_mult: int = 3
# Number of threads used to fetch API data
self.fetch_threads: int = 3
# NLTK "Punkt" Pre-trained model URL
self.punkt_url: str = "punkt"
# NLTK "Punkt Tab" Pre-trained model URL
self.punkt_url: str = "punkt_tab"

# All Config values from config.json are converted from camelCase to snake_case
# overrides instance variable if exists
Expand Down
Loading