Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 32a8bf7

Browse files
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‎

Lines changed: 1 addition & 1 deletion
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‎

Lines changed: 2 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /