Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(general): add support for windows 10 for aiohttp #6696

Merged
merged 7 commits into from
Sep 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions checkov/common/bridgecrew/platform_integration.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
from __future__ import annotations

import asyncio
import json
import logging
import os.path
import re
import sys
import uuid
from collections import namedtuple
from concurrent import futures
Expand Down Expand Up @@ -110,6 +112,7 @@
class BcPlatformIntegration:
def __init__(self) -> None:
self.clean()
self.set_config()

def clean(self) -> None:
self.bc_api_key = read_key()
Expand Down Expand Up @@ -361,6 +364,12 @@ def setup_http_manager(self, ca_certificate: str | None = None, no_cert_verify:
)
logging.debug('Successfully set up HTTP manager')

@staticmethod
def set_config() -> None:
# asyncio - on windows aiodns needs SelectorEventLoop
if sys.platform == 'win32':
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

def setup_bridgecrew_credentials(
self,
repo_id: str,
Expand Down
Loading