Bandit (https://github.com/openstack/bandit) is a python security linter. Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
13 lines
201 B
Bash
Executable File
13 lines
201 B
Bash
Executable File
#!/bin/bash -xe
|
|
# Runs bandit tests
|
|
|
|
pyver="$(python -V 2>&1)"
|
|
|
|
if [[ $pyver =~ Python\ 2\.6 ]]
|
|
then
|
|
echo 'Bandit does not support python 2.6'
|
|
else
|
|
bandit -r puppetboard
|
|
bandit -r tests
|
|
fi
|