Files
puppetboard/bandit.sh
Julien Pivotto 6fa0a4a796 [Security] Implement bandit
Bandit (https://github.com/openstack/bandit) is a python
security linter.

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2016-12-07 10:05:34 +01:00

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