Can anyone help me with this in jenkins:
Install the required jenkins plugins .
Configure your job to scan only python files .
Using bandit, scan only the python files of the directory- "examples" and publish the results in html format . And the report is named as report.html .And below is the command I used -
bandit -r examples/*.py -f html -o report.html
And when clicked on the build now, it is getting failed . Can any help me with this : how to install bandit in a jenkins pipeline ? and pip is also not working in jenkins . I am executing in shell command(os-linux2,pyhthon-2.7 system configuration)
use as below and try
bandit -r "examples/*.py" -f html -o report.html