使用jenkins管道用bandit检查python代码中的漏洞

am46iovg  于 2023-04-19  发布在  Jenkins
关注(0)|答案(1)|浏览(139)

有人能帮我在jenkins:
1.安装所需的jenkins插件。
1.配置您的作业以仅扫描python文件。
1.使用bandit,只扫描目录-“examples”的python文件,并以html格式发布结果。报告命名为report.html。下面是我使用的命令-
bandit -r examples/*.py -f html -o report.html
1.现在点击构建时,它正在失败。任何人都可以帮助我:如何在jenkins管道中安装bandit?pip在jenkins中也不工作。我在shell命令中执行(os-linux 2,pyhthon-2.7系统配置)

li9yvcax

li9yvcax1#

使用如下并尝试
bandit -r“examples/*.py”-f html -o report.html

相关问题