Skip to content

Commit

Permalink
[Vuln Fix]: Resolve mend vulnerabilities related to requests. (#1162)
Browse files Browse the repository at this point in the history
* resolved check-manifest issue

* updating keras version pin to <=3.4.0

* adding comment in requirements.txt to trigger mend check

---------

Co-authored-by: Armaan <[email protected]>
  • Loading branch information
micdavis and armaan-dhillon authored Jan 10, 2025
1 parent 4e4450a commit d42d9c1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ repos:
# requirements.txt
h5py>=2.10.0,
wheel>=0.33.1,
numpy>=1.22.0,
numpy<2.0.0,
pandas>=1.1.2,
python-dateutil>=2.7.5,
pytz>=2020.1,
Expand Down Expand Up @@ -80,7 +80,7 @@ repos:

# requirements-ml.txt
scikit-learn>=0.23.2,
'keras>=2.4.3,<3.0.0',
'keras>=2.4.3,<=3.4.0',
rapidfuzz>=2.6.1,
"tensorflow>=2.6.4,<2.15.0; sys.platform != 'darwin'",
"tensorflow>=2.6.4,<2.15.0; sys_platform == 'darwin' and platform_machine != 'arm64'",
Expand Down Expand Up @@ -108,7 +108,7 @@ repos:
rev: "0.48"
hooks:
- id: check-manifest
additional_dependencies: ['h5py', 'wheel', 'future', 'numpy', 'pandas',
additional_dependencies: ['h5py', 'wheel', 'future', 'numpy<2.0.0', 'pandas',
'python-dateutil', 'pytz', 'pyarrow', 'chardet', 'fastavro',
'python-snappy', 'charset-normalizer', 'psutil', 'scipy', 'requests',
'networkx','typing-extensions', 'HLL', 'datasketches', 'boto3']
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
check-manifest>=0.48
check-manifest>=0.50
black>=24.3.0
isort==5.12.0
pre-commit==2.19.0
Expand Down
2 changes: 1 addition & 1 deletion requirements-ml.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
scikit-learn>=0.23.2
keras>=3.0.0
keras<=3.4.0
rapidfuzz>=2.6.1
tensorflow>=2.16.0; sys.platform != 'darwin'
tensorflow>=2.16.0; sys_platform == 'darwin' and platform_machine != 'arm64'
Expand Down
5 changes: 3 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
h5py>=2.10.0
wheel>=0.33.1
numpy>=1.22.0
numpy<2.0.0
pandas>=1.1.2
python-dateutil>=2.7.5
pytz>=2020.1
Expand All @@ -11,10 +11,11 @@ python-snappy>=0.7.1
charset-normalizer>=1.3.6
psutil>=4.0.0
scipy>=1.10.0
requests>=2.28.1
requests==2.32.*
networkx>=2.5.1
typing-extensions>=3.10.0.2
HLL>=2.0.3
datasketches>=4.1.0
packaging>=23.0
boto3>=1.28.61
# adding comment to trigger mend check

0 comments on commit d42d9c1

Please sign in to comment.