Skip to content

Commit 53d4524

Browse files
committed
fix: ensure ssl verification happens with async client
gql recently had an issue reported where SSL connections are not verified by default: graphql-python/gql#529 They're planning to make it the default behaviour in their next release, but we should ensure SSL verification happens in the meantime.
1 parent 2a7f5e8 commit 53d4524

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ readme = "README.md"
88

99
[tool.poetry.dependencies]
1010
python = "^3.8"
11-
gql = {extras = ["aiohttp", "requests"], version = "^3.4.1"}
11+
gql = {extras = ["aiohttp", "requests"], version = "^3.5.1"}
1212
requests = "^2.31.0"
1313
aiohttp = {extras = ["speedups"], version = "^3.8.6"}
1414
pyjwt = {extras = ["crypto"], version = "^2.8.0"}

src/simple_github/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ async def _get_gql_session(self) -> ReconnectingAsyncClientSession:
249249
"Accept": "application/vnd.github+json",
250250
"Authorization": f"Bearer {token}",
251251
}
252-
transport = AIOHTTPTransport(url=GITHUB_GRAPHQL_ENDPOINT, headers=headers)
252+
transport = AIOHTTPTransport(url=GITHUB_GRAPHQL_ENDPOINT, headers=headers, ssl=True)
253253
self._gql_client = GqlClient(
254254
transport=transport, fetch_schema_from_transport=False
255255
)

0 commit comments

Comments
 (0)