Skip to content

chore(deps): update PyJWT to 2.15.1 across samples - #14639

Draft
XrossFox wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
XrossFox:dependabot-alerts-pyjwt
Draft

XrossFox wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
XrossFox:dependabot-alerts-pyjwt

Conversation

@XrossFox

Copy link
Copy Markdown
Contributor

Description

Bump PyJWT to 2.15.1 to resolve Dependabot security alerts:

  • appengine/standard/firebase/firenotes/backend/requirements.txt: update pyjwt from 1.7.1 to 2.15.1 (python_version >= '3.10')
  • iap/requirements.txt: pin PyJWT to 2.15.1
  • run/mcp-server/uv.lock: upgrade transitive pyjwt lock from 2.13.0 to 2.15.1 and normalize registry URLs to PyPI

Fixes b/572892896

Checklist

Testing

  • I have tested this change on a live environment and verified it works as intended.

Compliance & Style


Post-Approval Actions

  • Please merge this PR for me once it is approved

Bump PyJWT to 2.15.1 to resolve Dependabot security alerts:
- appengine/standard/firebase/firenotes/backend/requirements.txt: update pyjwt from 1.7.1 to 2.15.1 (python_version >= '3.10')
- iap/requirements.txt: pin PyJWT to 2.15.1
- run/mcp-server/uv.lock: upgrade transitive pyjwt lock from 2.13.0 to 2.15.1 and normalize registry URLs to PyPI
@product-auto-label product-auto-label Bot added samples Issues that are directly related to samples. api: appengine Issues related to the App Engine Admin API API. api: iap Issues related to the Identity-Aware Proxy API. api: run Issues related to the Cloud Run API. labels Oct 12, 2026

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request updates the pyjwt dependency to version 2.15.1 across multiple requirements files. Feedback suggests simplifying the dependency specification in appengine/standard/firebase/firenotes/backend/requirements.txt by removing the unnecessary ; python_version >= '3.10' environment marker, since Python versions below 3.10 are no longer supported.

@@ -1,5 +1,5 @@
Flask==3.1.3; python_version >= '3.9'
pyjwt==1.7.1; python_version < '3.0'
pyjwt==2.15.1; python_version >= '3.10'

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.

medium

Since Python versions below 3.10 are no longer supported, we should avoid specifying unnecessary environment markers like ; python_version >= '3.10'. We can simplify this by specifying pyjwt==2.15.1 directly, which is also consistent with how it is defined in iap/requirements.txt.

pyjwt==2.15.1
References
  1. Do not specify fallback dependency versions or environment markers for Python versions older than 3.10, as Python versions below 3.10 are no longer supported.

@amcolin amcolin 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.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: appengine Issues related to the App Engine Admin API API. api: iap Issues related to the Identity-Aware Proxy API. api: run Issues related to the Cloud Run API. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants