Repository navigation
57 security update - #60
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates N2T’s Python packaging and runtime stack to address security alerts by upgrading dependencies, raising the minimum supported Python version to 3.11, and adding CI coverage with a new GitHub Actions workflow.
Changes:
- Bumped Python requirement to
>=3.11,<4.0and updated project version to0.12.3. - Updated dependency lock/exported requirements (FastAPI/Starlette/Pydantic/SQLAlchemy, etc.) and dev dependency pytest range.
- Updated
TemplateResponsecall sites and added a pytest GitHub Actions workflow.
Reviewed changes
Copilot reviewed 3 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
uv.lock |
Refreshes the locked dependency set for Python 3.11+ and upgrades multiple packages for security/maintenance. |
requirements.txt |
Updates exported runtime requirements to match the refreshed lockfile. |
pyproject.toml |
Raises minimum Python version, bumps project version, and updates dev dependency constraints. |
n2t/app.py |
Updates template rendering calls to the newer TemplateResponse calling convention. |
.github/workflows/test-n2t.yml |
Introduces CI to run pytest via uv (currently needs YAML/trigger fixes). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
sfisher
left a comment
There was a problem hiding this comment.
Thank you, @jsjiang .
I was able to test with the local tests you provided and they pass.
Thanks for the thorough info since I don't know much about n2t.
I believe this is all ok.
The github actions comments by copilot probably help with some of that. I didn't really test the github actions setup.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Here are the major updates:
Performed test items listed in the ezid-docs-internal repo.
Note: load tests have not been performed.
Please review and let me know if you have questions.
Thank you
Jing