-
Notifications
You must be signed in to change notification settings - Fork 153
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: added safety firewall #671
base: main
Are you sure you want to change the base?
Conversation
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 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
df33f3c
to
ae967ce
Compare
🚀 Build artifacts are ready for testing!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 artifacts Quick Test with Python Package# Download and run with uv
gh run download 12936729651 -n dist
uv run --with safety-3.2.14+feat-safety-firewall-py3-none-any.whl safety --version Binary Installation# Linux
gh run download 12936729651 -n safety-linux -D linux
cd linux && mv safety safety-pr && chmod +x safety-pr
# macOS
gh run download 12936729651 -n safety-macos -D macos
cd macos && mv safety safety-pr && chmod +x safety-pr
./safety-pr --version
|
@patch('safety.auth.utils.SafetyAuthSession.initialize_scan', return_value={'platform-enabled': True}) | ||
@patch('safety.auth.utils.SafetyAuthSession.check_project', return_value={'user_confirm': True}) | ||
@patch('safety.auth.utils.SafetyAuthSession.project', return_value={'slug': 'slug'}) | ||
def test_init_project(self, mock_get_auth_info, mock_is_valid, mock_get_auth_type, mock_initialize_scan, mock_check_project, mock_project): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there will be time we can work together on adding more tests.
I checkout this repo and executed:
Apart from package that still point to |
ae967ce
to
9b68c48
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ship it
9b68c48
to
3c14a9a
Compare
I want to increase coverage and improve the help commands that explain the "beta" features/commands. Then, I'll ship it. |
This PR integrates the Safety Firewall MVP back into the main repository.
Key changes:
Originally developed by @jakub-safetycli