{"id":22385,"library":"socketsecurity","title":"Socket Security CLI","description":"Socket Security CLI for CI/CD, detecting supply chain threats in Python dependencies. Current version is 2.2.86, with frequent releases.","status":"active","version":"2.2.86","language":"python","source_language":"en","source_url":"https://github.com/SocketDev/socket-pypi","tags":["security","supply-chain","cli","ci-cd"],"install":[{"cmd":"pip install socketsecurity","lang":"bash","label":"Install package"}],"dependencies":[],"imports":[{"note":"Main class for CI/CD integration","symbol":"SocketSecurity","correct":"from socketsecurity import SocketSecurity"}],"quickstart":{"code":"from socketsecurity import SocketSecurity\nimport os\n\nclient = SocketSecurity(api_key=os.environ.get('SOCKET_SECURITY_API_KEY', ''))\nclient.check_dependencies()","lang":"python","description":"Initialize and run a dependency check using the API key from environment variable."},"warnings":[{"fix":"Upgrade to Python 3.11 or later.","message":"Python 3.10 and below are not supported; requires Python >= 3.11.","severity":"deprecated","affected_versions":"2.x"},{"fix":"Set SOCKET_SECURITY_API_KEY in your environment or pass api_key parameter.","message":"The API key must be set via environment variable SOCKET_SECURITY_API_KEY or passed directly; forgetting it causes authentication failures.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Set the SOCKET_SECURITY_API_KEY environment variable or pass api_key to SocketSecurity().","cause":"The API key is missing or not set in environment.","error":"socketsecurity.exceptions.AuthenticationError: API key not provided"},{"fix":"Run 'pip install socketsecurity' to install the package.","cause":"The package is not installed.","error":"ModuleNotFoundError: No module named 'socketsecurity'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}