26
26
27
27
if os .name == 'posix' :
28
28
if sys .version_info < (3 , 5 ):
29
- from subprocess32 import ( # pylint: disable=import-error,no-name-in-module
29
+ from subprocess32 import ( # nosec # pylint: disable=import-error,no-name-in-module
30
30
check_call , check_output , CalledProcessError , DEVNULL , PIPE , Popen ,
31
31
TimeoutExpired )
32
32
else :
33
- from subprocess import ( # pylint: disable=import-error,no-name-in-module
33
+ from subprocess import ( # nosec # pylint: disable=import-error,no-name-in-module
34
34
check_call , check_output , CalledProcessError , DEVNULL , PIPE , Popen ,
35
35
TimeoutExpired )
36
36
@@ -44,7 +44,7 @@ def _singularity_supports_userns(): # type: ()->bool
44
44
if _USERNS is None :
45
45
try :
46
46
hello_image = os .path .join (os .path .dirname (__file__ ), 'hello.simg' )
47
- result = Popen (
47
+ result = Popen ( # nosec
48
48
[u"singularity" , u"exec" , u"--userns" , hello_image , u"true" ],
49
49
stderr = PIPE , stdout = DEVNULL ,
50
50
universal_newlines = True ).communicate (timeout = 60 )[1 ]
@@ -110,7 +110,7 @@ def get_image(dockerRequirement, # type: Dict[Text, Text]
110
110
str (dockerRequirement ["dockerImageId" ]),
111
111
str (dockerRequirement ["dockerPull" ])]
112
112
_logger .info (Text (cmd ))
113
- check_call (cmd , stdout = sys .stderr )
113
+ check_call (cmd , stdout = sys .stderr ) # nosec
114
114
found = True
115
115
elif "dockerFile" in dockerRequirement :
116
116
raise WorkflowException (SourceLine (
0 commit comments