Skip to content

chore(deps): pin fastapi/starlette to prevent transparent major intrusion#92

Merged
MasayukiTa merged 1 commit into
mainfrom
chore/pin-fastapi-starlette
Jun 18, 2026
Merged

chore(deps): pin fastapi/starlette to prevent transparent major intrusion#92
MasayukiTa merged 1 commit into
mainfrom
chore/pin-fastapi-starlette

Conversation

@MasayukiTa

Copy link
Copy Markdown
Owner

背景

PR #90 マージ後、CI Build and Test(ubuntu/windows)が test_route_inventory で失敗。真因は requirements.txt の緩い下限(fastapi>=0.136.0 / starlette>=1.0.0)で、pipキャッシュ無効化時に最新が透過解決され 0.136.3→0.137.1include_router ルートが app.router.routes 上で Mount にネスト化 → ルート列挙テストが沈黙崩壊した(PR #91 でテスト側は再帰列挙に修正済)。

変更

再発防止として現在 green の版に exact pin(== house style に統一):

  • fastapi==0.137.1
  • starlette==1.3.1

以後の major/minor は Dependabot 明示 PR → CI レビュー経由になる。CVE-2024-47874 / CVE-2025-54121(starlette経由)は本版で修正済み。

🤖 Generated with Claude Code

…sion

Loose lower bounds (fastapi>=0.136.0, starlette>=1.0.0) let pip transparently
resolve the latest release whenever the CI pip cache (keyed on requirements.txt)
was invalidated by a dependency bump. The 0.136.3 -> 0.137.1 jump changed how
include_router routes appear in app.router.routes (now nested under Mount),
silently breaking the route-inventory test (got 7 /api routes, expected >10).

Pin to the currently-green versions so future major/minor updates come through
explicit Dependabot PRs that run CI, matching the == house style used by
uvicorn / python-multipart / pydantic-settings.

fastapi==0.137.1
starlette==1.3.1
@MasayukiTa MasayukiTa merged commit 371cf8f into main Jun 18, 2026
31 checks passed
@MasayukiTa MasayukiTa deleted the chore/pin-fastapi-starlette branch June 18, 2026 23:03
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.

1 participant