Skip to content

Commit 7e11f26

Browse files
committed
fix: resolver alertas CodeQL y actualizar starlette para DoS fix
- Eliminar imports no usados en config.py, dependencies.py, operator.py, router_clean.py - Eliminar redundant assignment en api/index.py - Actualizar starlette de 0.47.2 a 0.49.2 para fix DoS vulnerability - Tests passing: 7/7
1 parent d5bb54b commit 7e11f26

File tree

7 files changed

+2
-9
lines changed

7 files changed

+2
-9
lines changed

api/index.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
from app.main import app
1717

1818
# Vercel expects the app to be named 'app'
19-
# If your FastAPI app is named differently, change this
20-
app = app
2119

2220

2321
# Optional: Add Vercel-specific middleware or configuration

api/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
fastapi==0.116.1
2-
starlette==0.47.2
2+
starlette==0.49.2
33
uvicorn[standard]==0.38.0
44
uvloop==0.21.0
55

app/auth/dependencies.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
from typing import Optional
32

43
from fastapi import Depends, HTTPException, Request

app/backoffice/router_clean.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
from fastapi import APIRouter, HTTPException, Request
1414
from fastapi.responses import HTMLResponse, JSONResponse
15-
from fastapi.staticfiles import StaticFiles
1615
from fastapi.templating import Jinja2Templates
1716
from pydantic import BaseModel, Field
1817

app/config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
It MUST NOT import FastAPI, routers, or app.main to avoid circular dependencies.
66
"""
77

8-
import os
98
from functools import lru_cache
109
from typing import List
1110

app/routers/operator.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from typing import List
2-
31
from fastapi import APIRouter, Depends, HTTPException, Path, status
42
from pydantic import BaseModel, Field
53

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
fastapi==0.116.1
2-
starlette==0.47.2
2+
starlette==0.49.2
33
uvicorn[standard]==0.38.0
44
uvloop==0.21.0
55

0 commit comments

Comments
 (0)