Skip to content

Commit ea5c7a0

Browse files
committed
Adding bandit to pipeline [RHELDST-12098]
1 parent 037e80a commit ea5c7a0

File tree

2 files changed

+20
-12
lines changed

2 files changed

+20
-12
lines changed

.github/workflows/tox-test.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,17 @@ jobs:
8080
run: pip install tox
8181
- name: Run Tox
8282
run: tox -e docs
83+
bandit:
84+
runs-on: ubuntu-latest
85+
steps:
86+
- uses: actions/checkout@v2
87+
- name: Install RPM
88+
run: sudo apt-get install -y rpm
89+
- name: Setup Python
90+
uses: actions/setup-python@v2
91+
with:
92+
python-version: 3.8
93+
- name: Install Tox
94+
run: pip install tox
95+
- name: Run Tox
96+
run: tox -e bandit

tox.ini

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py27,py36,static,pidiff,docs
2+
envlist = py27,py36,static,pidiff,docs,bandit
33

44
[testenv]
55
deps=-rtest-requirements.txt
@@ -37,17 +37,6 @@ usedevelop=true
3737
commands=
3838
pytest --cov-report=html --cov-report=xml --cov=src {posargs}
3939

40-
[testenv:cov-travis]
41-
passenv = TRAVIS TRAVIS_*
42-
deps=
43-
-rtest-requirements.txt
44-
pytest-cov
45-
coveralls
46-
usedevelop=true
47-
commands=
48-
pytest --cov=src {posargs}
49-
coveralls
50-
5140
[testenv:docs]
5241
deps=
5342
sphinx
@@ -58,3 +47,8 @@ commands=
5847

5948
[pytest]
6049
testpaths = tests
50+
51+
52+
[testenv:bandit]
53+
deps = bandit
54+
commands = bandit -r . -ll --exclude './.tox,./misc/ci'

0 commit comments

Comments
 (0)