Skip to content

Commit 32a8bf7

Browse files
authored
Added back BASE_API_URL for the Socket API base (#62)
1 parent f30db3c commit 32a8bf7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

socketsecurity/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
__author__ = 'socket.dev'
2-
__version__ = '2.0.12'
2+
__version__ = '2.0.13'

socketsecurity/core/socket_config.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
from dataclasses import dataclass
22
from typing import Dict, Optional
33
from urllib.parse import urlparse
4+
import os
45

56
from socketsecurity.core.issues import AllIssues
67

78

89
@dataclass
910
class SocketConfig:
1011
api_key: str
11-
api_url: str = "https://api.socket.dev/v0"
12+
api_url: str = os.getenv("BASE_API_URL", "https://api.socket.dev/v0")
1213
timeout: int = 1200
1314
allow_unverified_ssl: bool = False
1415
org_id: Optional[str] = None

0 commit comments

Comments
 (0)