René's URL Explorer Experiment


Title: Mucha dev fail on any block by jonathanStrange0 · Pull Request #149 · SocketDev/socket-python-cli · GitHub

Open Graph Title: Mucha dev fail on any block by jonathanStrange0 · Pull Request #149 · SocketDev/socket-python-cli

X Title: Mucha dev fail on any block by jonathanStrange0 · Pull Request #149 · SocketDev/socket-python-cli

Description: Add --strict-blocking flag to fail on any existing security violations Introduces a new --strict-blocking flag that causes builds to fail when ANY security policy violations with blocking severity exist, not just new ones introduced in the current changes. This enables organizations to enforce zero-tolerance security policies across their entire codebase. Key Features: ✅ Fails on both NEW and EXISTING blocking violations (not just new ones) 🔒 Only affects error-level alerts (blocking severity), not warnings 🎯 Works in diff mode with full SCM integration 📊 Enhanced console output distinguishes NEW vs EXISTING violations ⚙️ --disable-blocking takes precedence when both flags are set Usage: socketcli --scm gitlab --pr-number 123 --strict-blocking Example Output: Security issues detected by Socket Security: - NEW blocking issues: 2 - EXISTING blocking issues: 5 (causing failure due to --strict-blocking) Why? Current Limitation The Socket CLI currently only fails builds when new security violations are introduced. Existing violations in the codebase are ignored, which means: - Teams can accumulate technical security debt over time - Protected branches may contain unresolved vulnerabilities - No enforcement mechanism for gradual security improvement - Difficult to implement zero-tolerance security policies Use Cases Enabled by This Feature 1. Zero-Tolerance Security Policies Organizations with strict security requirements can enforce that NO violations exist at any time. This is especially important for: - Financial services and healthcare applications - Government and defense contractors - PCI-DSS, HIPAA, or SOC2 compliant systems - Production/main branch protection 2. Gradual Security Improvement Teams can use --strict-blocking alongside standard scans to: - Block new violations immediately (standard behavior) - Monitor existing violations with warnings (strict scan with allow_failure: true) - Gradually resolve legacy issues - Eventually enforce strict blocking (set allow_failure: false) 3. Protected Branch Enforcement Require all security violations to be resolved before merging to critical branches: rules: - if: $CI_COMMIT_BRANCH == "main" # Only main branch requires strict blocking 4. Scheduled Security Audits Run periodic scans that fail if any violations accumulate over time, ensuring continuous security posture monitoring. Benefits - Prevents Security Debt: Stops violations from accumulating in the codebase - Clear Visibility: Console output explicitly shows NEW vs EXISTING issues - Flexible Adoption: Can be phased in gradually with allow_failure configuration - Backwards Compatible: Existing workflows continue to work unchanged - Well-Documented: Comprehensive README section and GitLab CI examples included Implementation Highlights - Added unchanged_alerts and removed_alerts fields to Diff class - Created get_unchanged_alerts() method to extract alerts from unchanged packages - Updated report_pass() exit code logic to check both new and unchanged alerts when enabled - Enhanced output_console_comments() to distinguish violation sources in console output - Added validation warnings for conflicting flags and API mode limitations - Comprehensive test coverage: 15+ new unit tests across 3 test files Related Documentation - Full usage guide in README (new "Strict Blocking Mode" section) - GitLab CI examples available (can be added in separate PR if needed) - Migration strategy guidance included Public Changelog New Feature: --strict-blocking Flag Added a new --strict-blocking flag that enforces zero-tolerance security policies by failing builds when ANY security violations with blocking severity exist, not just new ones. What's New: - Fail builds on both NEW and EXISTING blocking violations - Enhanced console output showing "NEW blocking issues" vs "EXISTING blocking issues" - Works in diff mode with full GitLab, GitHub, Bitbucket, and Azure DevOps integration - Only affects error-level alerts (blocking severity), not warnings Usage Example: socketcli --scm gitlab --pr-number 123 --strict-blocking Use Cases: - Enforce zero-tolerance security policies for critical branches - Prevent security debt accumulation over time - Gradually improve security posture with phased adoption - Meet compliance requirements (PCI-DSS, HIPAA, SOC2) Important Notes: - Only works in diff mode (requires baseline scan for comparison) - --disable-blocking flag takes precedence if both are set - See README for complete documentation and migration strategies

Open Graph Description: Add --strict-blocking flag to fail on any existing security violations Introduces a new --strict-blocking flag that causes builds to fail when ANY security policy violations with blocking severity ...

X Description: Add --strict-blocking flag to fail on any existing security violations Introduces a new --strict-blocking flag that causes builds to fail when ANY security policy violations with blocking severity ...

Opengraph URL: https://github.com/SocketDev/socket-python-cli/pull/149

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/checks(.:format)
route-controllerpull_requests
route-actionchecks
fetch-noncev2:cb578e85-b47d-d2bd-3b41-8ed44c827835
current-catalog-service-hash87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a
request-id83F6:355E09:12DC733:18E1237:696D5047
html-safe-nonce9a28da3cf89f192574e83d500631801542d12be23fa66d3147f6b70725d8e7a7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4M0Y2OjM1NUUwOToxMkRDNzMzOjE4RTEyMzc6Njk2RDUwNDciLCJ2aXNpdG9yX2lkIjoiNTUxNjIyMTcxMDU4MDE0MjE1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3e256ca93df7706877d57f038c994db81b53ed5c1eca227d6a2b5fd2b104c504
hovercard-subject-tagpull_request:3178110008
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/checks
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/SocketDev/socket-python-cli/pull/149/checks
twitter:imagehttps://avatars.githubusercontent.com/u/44637027?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/44637027?s=400&v=4
og:image:altAdd --strict-blocking flag to fail on any existing security violations Introduces a new --strict-blocking flag that causes builds to fail when ANY security policy violations with blocking severity ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None0944e430045f4fb5f7bd103e0660080acfe593174063212555773ca41c144a14
turbo-cache-controlno-preview
go-importgithub.com/SocketDev/socket-python-cli git https://github.com/SocketDev/socket-python-cli.git
octolytics-dimension-user_id69326764
octolytics-dimension-user_loginSocketDev
octolytics-dimension-repository_id802230750
octolytics-dimension-repository_nwoSocketDev/socket-python-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id802230750
octolytics-dimension-repository_network_root_nwoSocketDev/socket-python-cli
turbo-body-classeslogged-out env-production page-responsive full-width full-width-p-0
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release66b6e773801d28660016072069017cfcc851f54b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/pull/149/checks#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FSocketDev%2Fsocket-python-cli%2Fpull%2F149%2Fchecks
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FSocketDev%2Fsocket-python-cli%2Fpull%2F149%2Fchecks
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fchecks&source=header-repo&source_repo=SocketDev%2Fsocket-python-cli
Reloadhttps://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/pull/149/checks
Reloadhttps://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/pull/149/checks
Reloadhttps://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/pull/149/checks
SocketDev https://patch-diff.githubusercontent.com/SocketDev
socket-python-clihttps://patch-diff.githubusercontent.com/SocketDev/socket-python-cli
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FSocketDev%2Fsocket-python-cli
Fork 9 https://patch-diff.githubusercontent.com/login?return_to=%2FSocketDev%2Fsocket-python-cli
Star 5 https://patch-diff.githubusercontent.com/login?return_to=%2FSocketDev%2Fsocket-python-cli
Code https://patch-diff.githubusercontent.com/SocketDev/socket-python-cli
Issues 0 https://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/issues
Pull requests 3 https://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/pulls
Actions https://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/actions
Projects 0 https://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/projects
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/security
Please reload this pagehttps://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/pull/149/checks
Insights https://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/pulse
Code https://patch-diff.githubusercontent.com/SocketDev/socket-python-cli
Issues https://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/issues
Pull requests https://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/pulls
Actions https://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/actions
Projects https://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/projects
Security https://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/security
Insights https://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2FSocketDev%2Fsocket-python-cli%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2FSocketDev%2Fsocket-python-cli%2Fissues%2Fnew%2Fchoose
dacoburnhttps://patch-diff.githubusercontent.com/dacoburn
mainhttps://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/tree/main
mucha-dev-fail-on-any-blockhttps://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/tree/mucha-dev-fail-on-any-block
Conversation 1 https://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/pull/149
Commits 7 https://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/pull/149/commits
Checks 6 https://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/pull/149/checks
Files changed https://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/pull/149/files
Please reload this pagehttps://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/pull/149/checks
Please reload this pagehttps://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/pull/149/checks
Mucha dev fail on any block https://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/pull/149/checks#top
Please reload this pagehttps://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/pull/149/checks
Socket Security: Project Report https://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/pull/149/checks?check_run_id=60622543299
Socket Security: Pull Request Alerts https://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/pull/149/checks?check_run_id=60622545442
Socket Security Staging: Project Report https://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/pull/149/checks?check_run_id=60622545160
Socket Security Staging: Pull Request Alerts https://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/pull/149/checks?check_run_id=60622546935
Version Check on: pull_request https://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/actions/runs/21077373203
check_version https://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/actions/runs/21077373203/job/60622541970?pr=149
PR Preview on: pull_request https://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/actions/runs/21077373965
preview https://patch-diff.githubusercontent.com/SocketDev/socket-python-cli/actions/runs/21077373965/job/60622544189?pr=149
View full reporthttps://socket.dev/dashboard/org/SocketDev/sbom/a6c85f7a-a218-4fff-84e6-d85193d8d9f5
View more details on Socket Security https://socket.dev/dashboard/org/SocketDev/sbom/a6c85f7a-a218-4fff-84e6-d85193d8d9f5
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.