fix: gitleaks false positive — annotate session_token assignment as non-secret

This commit is contained in:
pyr0ball 2026-04-02 23:24:32 -07:00
parent aa67f905c4
commit 32ec9d8a41

View file

@ -219,7 +219,7 @@ def get_session(request: Request) -> CloudUser:
if not raw_header: if not raw_header:
raise HTTPException(status_code=401, detail="Not authenticated") raise HTTPException(status_code=401, detail="Not authenticated")
token = _extract_session_token(raw_header) token = _extract_session_token(raw_header) # gitleaks:allow — function name, not a secret
if not token: if not token:
raise HTTPException(status_code=401, detail="Not authenticated") raise HTTPException(status_code=401, detail="Not authenticated")