Skip to content

Commit ba32313

Browse files
authored
[security] set min version of jinja2, cryptography, python (#229)
Why === * There were Dependabot alerts for the indirect dependencies jinja2 and cryptography. What changed === * Set the min versions in pyproject.toml that resolve the security issue * Had to bump python min version too because cryptography didn't like 3.9 Test plan === * CI passes
1 parent d0c633c commit ba32313

File tree

3 files changed

+56
-99
lines changed

3 files changed

+56
-99
lines changed

.semaphore/semaphore.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@ blocks:
1212
jobs:
1313
- name: flake8
1414
commands:
15-
- sem-version python 3.9
15+
- sem-version python 3.10
1616
- checkout --use-cache
1717
- pip install poetry==1.3.2 --no-cache
1818
- poetry install --no-root --no-interaction --no-ansi
1919
- poetry run flake8
2020
- name: unittest
2121
commands:
22-
- sem-version python 3.9
22+
- sem-version python 3.10
2323
- checkout --use-cache
2424
- pip install poetry==1.3.2 --no-cache
2525
- poetry install --no-interaction --no-ansi
2626
- poetry run coverage run -m unittest
2727
- poetry run coverage report -m --include='src/*'
2828
- name: mypy
2929
commands:
30-
- sem-version python 3.9
30+
- sem-version python 3.10
3131
- checkout --use-cache
3232
- pip install poetry==1.3.2 --no-cache
3333
- poetry install --no-root --no-interaction --no-ansi

poetry.lock

Lines changed: 50 additions & 95 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ homepage = "https://github.com/replit/replit-py"
1010
documentation = "https://replit-py.readthedocs.org/"
1111

1212
[tool.poetry.dependencies]
13-
python = ">=3.9,<4.0"
13+
python = ">=3.10,<4.0"
1414
typing_extensions = "^4"
1515
Flask = ">=3.1.0"
16+
jinja2 = ">=3.1.5"
1617
Werkzeug = ">=3,<4"
1718
aiohttp = ">=3.10.11"
1819
requests = "^2.25.1"
1920
pyseto = "^1.6.11"
21+
cryptography = ">=44.0.1"
2022
protobuf = "^4.21.8"
2123
urllib3 = ">=1.26,<3"
2224
aiohttp-retry = "^2.8.3"

0 commit comments

Comments
 (0)