Skip to content
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

Handle variant in how policy is passed in paramiko #1078

Merged
merged 1 commit into from Dec 13, 2023

Commits on Dec 12, 2023

  1. Handle variant in how policy is passed in paramiko

    Paramiko permits various ways of importing the missing host key
    policy. It allows paramiko.client.AutoAddPolicy or paramiko.AutoAddPolicy.
    The later isn't being handled in Bandit.
    
    This change adds news tests and modifies the plugin to inspect the
    AST to determine whether the argument is an Attribute, Name, or
    Call.
    
    Fixes PyCQA#1077
    
    Signed-off-by: Eric Brown <eric_wade_brown@yahoo.com>
    ericwb committed Dec 12, 2023
    Configuration menu
    Copy the full SHA
    5e6d675 View commit details
    Browse the repository at this point in the history