Skip to content

Commit 7eb47f9

Browse files
committed
Pin jwcrypto and requests libraries to ensure safe version is used
1 parent 108bdbc commit 7eb47f9

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

requirements.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,17 @@ faker
77
fastapi==0.112.2
88
geojson
99
jsonschema
10-
jwcrypto
10+
jwcrypto>=1.5.6
1111
numpy>=1.22.2
1212
pyjwt>=2.4.0
1313
pyproj
1414
python-magic
1515
pytz
1616
qrcode
17+
requests>=2.32.3
1718
shapely
1819
simplejson
1920
swagger_spec_validator
20-
urllib3>=2.2.2
21+
urllib3>=2.4.0
2122
xlrd
2223
zipp>=3.19.1

spp_base/__manifest__.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,15 @@
3434
"spp_farmer_registry_base",
3535
],
3636
"external_dependencies": {
37-
"python": ["fastapi==0.112.2", "extendable_pydantic==1.3.0", "numpy>=1.22.2", "urllib3>=2.2.2", "zipp>=3.19.1"]
37+
"python": [
38+
"fastapi==0.112.2",
39+
"extendable_pydantic==1.3.0",
40+
"numpy>=1.22.2",
41+
"urllib3>=2.4.0",
42+
"zipp>=3.19.1",
43+
"jwcrypto>=1.5.6",
44+
"requests>=2.32.3",
45+
]
3846
}, # not directly required, pinned by Snyk to avoid a vulnerability and for fastapi, compatibility issues.
3947
"data": [
4048
"data/global_roles.xml",

spp_encryption/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"development_status": "Beta",
1010
"maintainers": ["jeremi", "gonzalesedwin1123"],
1111
"depends": ["g2p_encryption"],
12-
"external_dependencies": {"python": ["jwcrypto"]},
12+
"external_dependencies": {"python": ["jwcrypto>=1.5.6"]},
1313
"data": ["views/encryption_provider.xml"],
1414
"assets": {},
1515
"demo": [],

0 commit comments

Comments
 (0)