Skip to content

Commit 57fcc00

Browse files
authored
Merge pull request #19 from amcmahon-rh/addBandit
Adding bandit to pipeline [RHELDST-12098]
2 parents 998b518 + ea5c7a0 commit 57fcc00

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
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 & 1 deletion
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
@@ -47,3 +47,8 @@ commands=
4747

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

0 commit comments

Comments
 (0)