fix: gitleaks false positive — annotate session_token assignment as non-secret
This commit is contained in:
parent
aa67f905c4
commit
32ec9d8a41
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue