Merge "Add Bandit non-voting job"
This commit is contained in:
commit
cd1dc08a00
17
.zuul.yaml
17
.zuul.yaml
@ -60,6 +60,21 @@
|
|||||||
tempest_test_regex: horizon
|
tempest_test_regex: horizon
|
||||||
tox_envlist: all
|
tox_envlist: all
|
||||||
|
|
||||||
|
- job:
|
||||||
|
# Security testing for known issues
|
||||||
|
name: horizon-tox-bandit-baseline
|
||||||
|
parent: openstack-tox
|
||||||
|
timeout: 2400
|
||||||
|
vars:
|
||||||
|
tox_envlist: bandit-baseline
|
||||||
|
irrelevant-files:
|
||||||
|
- ^.*\.rst$
|
||||||
|
- ^.*\locale/.*$
|
||||||
|
- ^doc/.*$
|
||||||
|
- ^releasenotes/.*$
|
||||||
|
- ^setup.cfg$
|
||||||
|
- ^tools/.*$
|
||||||
|
|
||||||
- project:
|
- project:
|
||||||
check:
|
check:
|
||||||
jobs:
|
jobs:
|
||||||
@ -68,6 +83,8 @@
|
|||||||
voting: false
|
voting: false
|
||||||
- horizon-dsvm-tempest-plugin
|
- horizon-dsvm-tempest-plugin
|
||||||
- openstack-tox-lower-constraints
|
- openstack-tox-lower-constraints
|
||||||
|
- horizon-tox-bandit-baseline:
|
||||||
|
voting: false
|
||||||
gate:
|
gate:
|
||||||
jobs:
|
jobs:
|
||||||
- horizon-openstack-tox-python3-django111
|
- horizon-openstack-tox-python3-django111
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
# Hacking should appear first in case something else depends on pep8
|
# Hacking should appear first in case something else depends on pep8
|
||||||
hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
|
hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
|
||||||
#
|
#
|
||||||
|
bandit>=1.4.0 # Apache-2.0
|
||||||
coverage!=4.4,>=4.0 # Apache-2.0
|
coverage!=4.4,>=4.0 # Apache-2.0
|
||||||
doc8>=0.6.0 # Apache-2.0
|
doc8>=0.6.0 # Apache-2.0
|
||||||
flake8-import-order==0.12 # LGPLv3
|
flake8-import-order==0.12 # LGPLv3
|
||||||
|
7
tox.ini
7
tox.ini
@ -177,6 +177,13 @@ application-import-names = horizon,openstack_dashboard
|
|||||||
[hacking]
|
[hacking]
|
||||||
local-check-factory = horizon.hacking.checks.factory
|
local-check-factory = horizon.hacking.checks.factory
|
||||||
|
|
||||||
|
[testenv:bandit]
|
||||||
|
commands = bandit -r horizon openstack_auth openstack_dashboard -n5 -x tests -ll
|
||||||
|
|
||||||
|
[testenv:bandit-baseline]
|
||||||
|
envdir = {toxworkdir}/bandit
|
||||||
|
commands = bandit-baseline -r horizon openstack_auth openstack_dashboard -n5 -x tests -ii -ll
|
||||||
|
|
||||||
[doc8]
|
[doc8]
|
||||||
# File extensions to check
|
# File extensions to check
|
||||||
extensions = .rst, .yaml
|
extensions = .rst, .yaml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user