Skip to content

57 security update - #60

Merged
jsjiang merged 10 commits into
mainfrom
57_security_update
Jul 2, 2026
Merged

jsjiang merged 10 commits into
mainfrom
57_security_update

Conversation

@jsjiang

@jsjiang jsjiang commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Here are the major updates:

  • upgraded packages and dependencies to resolve security alerts
  • updated requires-python to ">=3.11,<4.0"
  • modified TemplateResponse to use newer version syntax with named keyword arguments
  • added a github action to test n2t with pytest

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.0 and updated project version to 0.12.3.
  • Updated dependency lock/exported requirements (FastAPI/Starlette/Pydantic/SQLAlchemy, etc.) and dev dependency pytest range.
  • Updated TemplateResponse call 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.

Comment thread .github/workflows/test-n2t.yml Resolved
Comment thread .github/workflows/test-n2t.yml Resolved
Comment thread .github/workflows/test-n2t.yml Resolved

@sfisher sfisher left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

jsjiang and others added 3 commits July 2, 2026 08:23
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>
@jsjiang
jsjiang merged commit 6ce70ed into main Jul 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants