SSRF gate raises ValueError for an scp URL whose host resolves to a private IP.
()
| 142 | |
| 143 | |
| 144 | def test_scp_ssrf_gate_fires() -> None: |
| 145 | """SSRF gate raises ValueError for an scp URL whose host resolves to a private IP.""" |
| 146 | with patch("skillspector.input_handler._is_private_ip", return_value=True): |
| 147 | with pytest.raises(ValueError, match="private/internal IP"): |
| 148 | InputHandler()._validate_url_host("git@github.com:org/repo.git", ALLOWED_GIT_HOSTS) |
nothing calls this directly
no test coverage detected