Skip to content

Commit

Permalink
FIX: use correct bandit codes
Browse files Browse the repository at this point in the history
  • Loading branch information
vdmitriyev committed Dec 10, 2024
1 parent e9af78c commit db5fc72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repos:
- id: check-docstring-first
- id: check-json
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
#- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-toml
- id: check-vcs-permalinks
Expand Down
4 changes: 2 additions & 2 deletions pymultissher/pymultissher.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def create_client(self, ssh_host: SSHCredentials) -> None:
"""

self.client = paramiko.SSHClient()
self.client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) # nosec CWE-295
self.client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) # nosec B507

# Load private key with password
try:
Expand Down Expand Up @@ -197,7 +197,7 @@ def execute_cmd_and_read_response(self, cmd: str) -> str:

channel = transport.open_session()
channel.set_combine_stderr(1) # not handling stdout & stderr separately
channel.exec_command(cmd) # nosec CWE-78
channel.exec_command(cmd) # nosec B601
channel.shutdown_write() # command was sent, no longer need stdin

def __response_read(channel):
Expand Down

0 comments on commit db5fc72

Please sign in to comment.