feat: [WARNING: behavior change] migrate to httpx with explicit TLS/proxy configuration#824
Conversation
…roxy configuration Migrate HTTP client from requests to httpx with consolidated configuration. Remove unofficial support for requests/httpx environment variables in favor of explicit Safety CLI configuration options. - Migrate HTTP client from requests to httpx - Remove proxy_timeout and proxy_required options (deprecated workarounds) - Add deprecation warnings for removed proxy parameters - Consolidate TLS/proxy configuration into explicit config modules - Add new SafetyPlatformClient with unified HTTP handling - Stop reading unofficial REQUESTS_* and HTTPX_* environment variables Note: Users relying on unofficial environment variables or importing Safety CLI as a library may experience connection failures and should migrate to official configuration methods.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
🚀 Artifacts — PR #824 by @yeisonvargasf
Download the wheel file and binaries with gh CLI or from the workflow artifacts. 📦 Install & RunPre-requisites# Install uv if needed
curl -LsSf https://astral.sh/uv/install.sh | sh
# Create and enter artifacts directory
mkdir artifacts && cd artifactsQuick Test with Python Packagebash -c 'set -euo pipefail; echo; echo "WARNING: You are about to download and execute CI artifacts from PR #824 by @yeisonvargasf. Do NOT proceed unless you have reviewed the PR diff and trust the source."; echo; read -rp "Type I understand to continue: " C; [ "$C" = "I understand" ] || { echo "Aborted."; exit 1; }; gh run download 19871521456 -n dist -R pyupio/safety; uvx safety-*-py3-none-any.whl --version'Run other Safety commands as followsuvx safety-*-py3-none-any.whl auth status
uvx safety-*-py3-none-any.whl auth login
uvx safety-*-py3-none-any.whl scan
|
Migrate HTTP client from requests to httpx with consolidated configuration. Remove unofficial support for requests/httpx environment variables in favor of explicit Safety CLI configuration options.
Note: Users relying on unofficial environment variables or importing Safety CLI as a library may experience connection failures and should migrate to official configuration methods.