Add bandit scanning
- Add bandit target in tox.ini - Fix source issue preventing bandit from completing - Currently no found issues Change-Id: Iaf264b3af77ff78843462137e44ee029efc03434
This commit is contained in:
parent
689445280e
commit
864f0d35a5
|
@ -27,7 +27,6 @@ class DrydockSession(object):
|
||||||
|
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
host,
|
host,
|
||||||
*,
|
|
||||||
port=None,
|
port=None,
|
||||||
scheme='http',
|
scheme='http',
|
||||||
token=None,
|
token=None,
|
||||||
|
|
|
@ -7,3 +7,4 @@ oslo.versionedobjects[fixtures]>=1.23.0
|
||||||
oslo.config[fixtures]
|
oslo.config[fixtures]
|
||||||
yapf
|
yapf
|
||||||
flake8
|
flake8
|
||||||
|
bandit>=1.1.0
|
||||||
|
|
3
tox.ini
3
tox.ini
|
@ -32,6 +32,9 @@ commands = oslopolicy-sample-generator --config-file etc/drydock/drydock-policy-
|
||||||
commands = flake8 \
|
commands = flake8 \
|
||||||
{posargs}
|
{posargs}
|
||||||
|
|
||||||
|
[testenv:bandit]
|
||||||
|
commands = bandit -r drydock_provisioner -n 5
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
ignore=E302,H306,H304,D101,D102,D103,D104
|
ignore=E302,H306,H304,D101,D102,D103,D104
|
||||||
exclude= venv,.venv,.git,.idea,.tox,*.egg-info,*.eggs,bin,dist,./build/
|
exclude= venv,.venv,.git,.idea,.tox,*.egg-info,*.eggs,bin,dist,./build/
|
||||||
|
|
Loading…
Reference in New Issue