Skip to content

Commit

Permalink
nosec b701 false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinRyan committed May 2, 2019
1 parent 321a596 commit 5a2d967
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib/cylc/parsec/jinja2support.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ def jinja2environment(dir_=None):
if dir_ is None:
dir_ = os.getcwd()

env = Environment(
# Ignore bandit false positive: B701:jinja2_autoescape_false
# This env is not used to render content that is vulnerable to XSS.
env = Environment( # nosec
loader=ChoiceLoader([FileSystemLoader(dir_), PyModuleLoader()]),
undefined=StrictUndefined,
extensions=['jinja2.ext.do'])
Expand Down
4 changes: 2 additions & 2 deletions tests/hold-release/08-hold-family-inexact.t
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ set_test_number 2
install_suite $TEST_NAME_BASE hold-family
#-------------------------------------------------------------------------------
TEST_NAME=$TEST_NAME_BASE-val
run_ok $TEST_NAME cylc validate --set=HOLD_MATCH="'*FF'" $SUITE_NAME
run_ok $TEST_NAME cylc validate --set=HOLD_MATCH='*FF' $SUITE_NAME
#-------------------------------------------------------------------------------
TEST_NAME=$TEST_NAME_BASE-run
suite_run_ok $TEST_NAME cylc run --set=HOLD_MATCH="'*FF'" --reference-test \
suite_run_ok $TEST_NAME cylc run --set=HOLD_MATCH='*FF' --reference-test \
--debug --no-detach $SUITE_NAME
#-------------------------------------------------------------------------------
purge_suite $SUITE_NAME

0 comments on commit 5a2d967

Please sign in to comment.