Refresh uv.lock for CVEs and add explicit CI permissions (closes #25)#26
Merged
Conversation
Refreshes uv.lock to current dependency versions (reflex 0.8.20 -> 0.9.1, authlib 1.5.2 -> 1.6.11, requests, urllib3, cryptography, etc.) to pick up security fixes flagged in #25. Authlib 1.6 tightened the type signature on `jwt.decode`; pass a `KeySet` built via `JsonWebKey.import_key_set` instead of a raw `{"keys": [...]}` dict. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Addresses the second half of #25: GitHub flags workflows that rely on default token permissions. Adds minimal `permissions:` blocks — top-level `contents: read` for read-only CI, plus `pull-requests: read/write` on the jobs that fetch PR info or post status comments. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #25.
uv sync --upgradeto refreshuv.lockand clear the known CVEs flagged in the issue. Notable bumps:reflex0.8.20 → 0.9.1,authlib1.5.2 → 1.6.11, plusrequests,urllib3,cryptography, etc.jwt.decode; switched toJsonWebKey.import_key_set({"keys": jwks})so we pass aKeySetinstead of a raw dict (functionally equivalent — same JWKS payload, just wrapped).permissions:blocks to every workflow that lacked them so theGITHUB_TOKENis no longer running with implicit defaults.ci.yml,_reusable-ci.yml,ci-forks.yml→ top-levelcontents: readfull-ci-comment.yml,full-ci-manual.yml→ top-levelcontents: read;pull-requests: readon the PR-info jobs;pull-requests: writeon the comment-posting jobsdeploy.yml,publish.ymlalready had per-job permissions — left as-isHeads-up: reflex 0.8.20 → 0.9.1
This is the riskiest part of the upgrade. Reflex 0.9 restructured into separate
reflex-base+reflex-components-*packages, which is why the lockfile diff is so noisy. Local checks pass:ruff check✅pyright✅pytest tests/test_clerk_provider_unit.py✅python -m reflex.utils.pyi_generator reflex_clerk_api(the build-component step) ✅uv build✅What this PR can not verify locally is the playwright demo suite (
tests/test_demo.py), which exercises the running demo against Clerk. That'll run as part of full CI on this PR — worth watching closely. If 0.9 breaks the demo flow, easiest mitigation is to pinreflex<0.9inuv.lockwhile keeping the rest of the upgrade.pyproject.toml'sreflex>=0.8.0constraint is unchanged, so published-package consumers aren't forced to 0.9.Test plan
set_clerk_sessionstill validates a real Clerk JWT against the newKeySetpath