The Wire · Showcase
FastAPI Locks Down Automation, Pydantic Fixes Regex Flag Loss
By RepoJournal · Filed · About FastAPI & Pydantic
FastAPI is ditching long-lived tokens for short-lived PR Submit automation across sponsors, translations, and topic updates, while Pydantic patches a critical regex constraint bug that was silently dropping flags like re.ASCII.
FastAPI is systematizing its CI/CD security posture by replacing three separate long-lived personal access tokens with short-lived repository-scoped tokens from PR Submit [2] [3]. The shift covers sponsor updates, translation workflows, and GitHub topic repository maintenance [1], with tiangolo consolidating token management and crediting generated commits to the pr-submit bot rather than personal accounts. The move follows a sponsors Git authentication fix [4] that caught a credential leak in the workflow. On the Pydantic side, a critical bug fix addresses regex pattern handling in the experimental pipeline where compiled patterns were losing their flags: "a pattern built with re.ASCII stops being ascii-only" [6] because the constraint was folded down to just the source string, letting invalid input slip through while rejecting valid cases when re.IGNORECASE was dropped. The fix preserves the full re.Pattern instance instead of extracting only the pattern string. Minor dependency housekeeping includes a pytest-xdist version bump in FastAPI [5] and a pymdown-extensions update in Pydantic [7], both routine maintenance across 15 commits and 9 PRs in this period.
One email a day. Unsubscribe in one click.
Keep up with FastAPI & Pydantic in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.
One email a day. Unsubscribe in one click. Read a past issue →
Action items
- → Review FastAPI's new PR Submit token setup if you maintain downstream CI integrations fastapi/fastapi [plan]
- → Upgrade Pydantic to pick up the regex flag preservation fix if you use re.compile patterns with constraints pydantic/pydantic [monitor]
- → Watch for FastAPI's translation workflow changes if you contribute translations fastapi/fastapi [monitor]
References
- [1] 👥 Update FastAPI GitHub topic repositories ↗ fastapi/fastapi
- [2] 🔐 Use PR Submit for automated updates ↗ fastapi/fastapi
- [3] 🔐 Use PR Submit for translations ↗ fastapi/fastapi
- [4] 🐛 Fix Sponsors Git authentication (#16174) fastapi/fastapi
- [5] ⬆️ Raise pytest-xdist minimum (#16170) fastapi/fastapi
- [6] Preserve `re.Pattern` instance for compiled patterns in the experimental pipeline ↗ pydantic/pydantic
- [7] Bump pymdown-extensions from 11.0 to 11.0.1 ↗ pydantic/pydantic