fix: Disable SSL verification in figma ingest source
Some checks failed
DSS Project Analysis / dss-context-update (push) Has been cancelled

Same fix as applied to dss/figma/figma_tools.py - the figma-sync.py script
uses dss/ingest/sources/figma.py which has its own aiohttp client.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-12 06:37:51 -03:00
parent 754ac173a8
commit 421e43cf76

View File

@@ -11,6 +11,7 @@ from dataclasses import dataclass
from typing import Any, Dict, List, Optional, Tuple from typing import Any, Dict, List, Optional, Tuple
import aiohttp import aiohttp
import ssl
from ...models.component import AtomicType, Component from ...models.component import AtomicType, Component
from ..base import DesignToken, TokenCollection, TokenSource, TokenType from ..base import DesignToken, TokenCollection, TokenSource, TokenType
@@ -110,7 +111,15 @@ class IntelligentFigmaClient:
self._session: Optional[aiohttp.ClientSession] = None self._session: Optional[aiohttp.ClientSession] = None
async def __aenter__(self): async def __aenter__(self):
self._session = aiohttp.ClientSession(headers={"X-Figma-Token": self.token}) # Disable SSL verification for corporate proxy compatibility
ssl_context = ssl.create_default_context()
ssl_context.check_hostname = False
ssl_context.verify_mode = ssl.CERT_NONE
connector = aiohttp.TCPConnector(ssl=ssl_context)
self._session = aiohttp.ClientSession(
headers={"X-Figma-Token": self.token},
connector=connector
)
return self return self
async def __aexit__(self, *args): async def __aexit__(self, *args):