bitwarden serve service (#1895)

This commit is contained in:
Shuchang Zheng
2025-03-06 04:55:23 -08:00
committed by GitHub
parent 7b9fab05b8
commit da3d8dbbbb
2 changed files with 4 additions and 5 deletions

View File

@@ -33,6 +33,9 @@ from skyvern.forge.sdk.schemas.credentials import (
PasswordCredential,
)
LOG = structlog.get_logger()
BITWARDEN_SERVER_BASE_URL = f"{settings.BITWARDEN_SERVER}:{settings.BITWARDEN_SERVER_PORT or 8002}"
class BitwardenItemType(IntEnum):
LOGIN = 1
@@ -84,11 +87,6 @@ def get_list_response_item_from_bitwarden_item(item: dict) -> CredentialItem:
raise BitwardenGetItemError(f"Unsupported item type: {item['type']}")
LOG = structlog.get_logger()
BITWARDEN_SERVER_BASE_URL = f"http://localhost:{settings.BITWARDEN_SERVER_PORT or 8002}"
def is_valid_email(email: str | None) -> bool:
if not email:
return False