mirror of
https://github.com/github/codeql.git
synced 2025-12-22 11:46:32 +01:00
Python: Expand test of py/paramiko-missing-host-key-validation
This commit is contained in:
@@ -11,3 +11,10 @@ client.set_missing_host_key_policy(WarningPolicy) # bad
|
||||
client.set_missing_host_key_policy(AutoAddPolicy()) # bad
|
||||
client.set_missing_host_key_policy(RejectPolicy()) # good
|
||||
client.set_missing_host_key_policy(WarningPolicy()) # bad
|
||||
|
||||
# different import
|
||||
|
||||
import paramiko
|
||||
|
||||
client = paramiko.SSHClient()
|
||||
client.set_missing_host_key_policy(paramiko.AutoAddPolicy) # bad
|
||||
|
||||
Reference in New Issue
Block a user