mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 13:47:19 +08:00
Fix mypy type errors in enterprise GitLab integration (#13205)
Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
@@ -69,13 +69,13 @@ async def verify_gitlab_signature(
|
||||
raise HTTPException(status_code=403, detail='Required payload headers missing!')
|
||||
|
||||
if IS_LOCAL_DEPLOYMENT:
|
||||
webhook_secret = 'localdeploymentwebhooktesttoken'
|
||||
webhook_secret: str | None = 'localdeploymentwebhooktesttoken'
|
||||
else:
|
||||
webhook_secret = await webhook_store.get_webhook_secret(
|
||||
webhook_uuid=webhook_uuid, user_id=user_id
|
||||
)
|
||||
|
||||
if header_webhook_secret != webhook_secret:
|
||||
if not webhook_secret or header_webhook_secret != webhook_secret:
|
||||
raise HTTPException(status_code=403, detail="Request signatures didn't match!")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user