Skip to content

Commit 00f0d3f

Browse files
authored
[SDL438] Add nosec B404 to subprocess imports for Bandit compliance (#33607)
Fix Bandit B404 security warning by adding nosec B404 comments to subprocess imports. Addresses SDL438 - Align Use of Python with Bandit Guidance. Ticket: CVS-177660
1 parent 2519769 commit 00f0d3f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

scripts/utils/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
import os
5-
import subprocess
5+
import subprocess # nosec B404
66
import tarfile
77
from datetime import datetime
88
from shutil import copyfile, copytree, rmtree

tools/commit_slider/commit_slider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (C) 2018-2026 Intel Corporation
22
# SPDX-License-Identifier: Apache-2.0
33

4-
import subprocess
4+
import subprocess # nosec B404
55
import os
66
import shutil
77
import sys

tools/commit_slider/utils/e2e_preparator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
try:
1010
import yaml
1111
except:
12-
import subprocess
12+
import subprocess # nosec B404
1313
import sys
1414
p = subprocess.Popen('{} -m pip install pyyaml'.format(
1515
sys.executable

tools/commit_slider/utils/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import shutil
66
import os
77
import sys
8-
import subprocess
8+
import subprocess # nosec B404
99
from enum import Enum
1010
import re
1111
import json

0 commit comments

Comments
 (0)