Skip to content

Commit 06a74e1

Browse files
committed
turn on bandit based static security analysis
1 parent 4f16af8 commit 06a74e1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

cwltool/resolver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,6 @@ def resolve_ga4gh_tool(document_loader, uri):
8484
ds2 = GA4GH_TRS_PRIMARY_DESCRIPTOR.format(reg, urllib.parse.quote(path, ""), urllib.parse.quote(version, ""), urllib.parse.quote(primary_path, ""))
8585
_logger.debug("Resolved %s", ds2)
8686
return ds2
87-
except Exception:
87+
except Exception: # nosec
8888
pass
8989
return None

tox.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
envlist =
33
py{27,34,35,36,37}-lint,
44
py{27,34,35,36,37}-unit,
5+
py{27,34,35,36,37}-bandit,
56
py{34,35,36,36,37}-mypy{2,3},
67
py27-pipconflictchecker,
78
py27-lint-readme,
@@ -31,6 +32,7 @@ deps =
3132
py{27,34,35,36,37}-unit: -rtest-requirements.txt
3233
py{27,34,35,36,37}-unit: galaxy-lib
3334
py{27,34,35,36,37}-lint: flake8
35+
py{27,34,35,36,37}-bandit: bandit
3436
py{34,35,36,36,37}-mypy{2,3}: mypy==0.620
3537

3638
setenv =
@@ -45,6 +47,7 @@ commands =
4547
py{27,34,35,36,37}-unit: coverage report
4648
py{27,34,35,36,37}-unit: coverage xml
4749
py{27,34,35,36,37}-unit: codecov --file coverage.xml
50+
py{27,34,35,36,37}-bandit: bandit -r cwltool
4851
py{27,34,35,36,37}-lint: flake8 schema_salad setup.py
4952
py{34,35,36,36,37}-mypy2: make mypy2
5053
py{34,35,36,36,37}-mypy3: make mypy3

0 commit comments

Comments
 (0)