Skip to content

Commit a1cc60c

Browse files
committed
satisfy bandit
1 parent e52bbba commit a1cc60c

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

cwl_utils/cwl_v1_0_expression_refactor.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,12 @@ def get_expression(
9191
return string
9292
if "$(" in string:
9393
runtime = CWLRuntimeParameterContext(
94-
cores=0, ram=0, outdir="/root", tmpdir="/tmp", outdirSize=0, tmpdirSize=0
94+
cores=0,
95+
ram=0,
96+
outdir="/root",
97+
tmpdir="/tmp", # nosec
98+
outdirSize=0,
99+
tmpdirSize=0,
95100
)
96101
try:
97102
do_eval(

cwl_utils/cwl_v1_1_expression_refactor.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,12 @@ def get_expression(
9191
return string
9292
if "$(" in string:
9393
runtime = CWLRuntimeParameterContext(
94-
cores=0, ram=0, outdir="/root", tmpdir="/tmp", outdirSize=0, tmpdirSize=0
94+
cores=0,
95+
ram=0,
96+
outdir="/root",
97+
tmpdir="/tmp", # nosec
98+
outdirSize=0,
99+
tmpdirSize=0,
95100
)
96101
try:
97102
do_eval(

cwl_utils/cwl_v1_2_expression_refactor.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,12 @@ def get_expression(
9191
return string
9292
if "$(" in string:
9393
runtime = CWLRuntimeParameterContext(
94-
cores=0, ram=0, outdir="/root", tmpdir="/tmp", outdirSize=0, tmpdirSize=0
94+
cores=0,
95+
ram=0,
96+
outdir="/root",
97+
tmpdir="/tmp", # nosec
98+
outdirSize=0,
99+
tmpdirSize=0,
95100
)
96101
try:
97102
do_eval(

0 commit comments

Comments
 (0)