junxnone / xwiki

https://junxnone.github.io/xwiki/
0 stars 0 forks source link

Programing Python Tools bandit #91

Open junxnone opened 4 years ago

junxnone commented 4 years ago

bandit 代码安全分析

Install

pip3 install bandit

Scan

bandit -r /path/to/your/code

-lll 只显示高危问题

使用配置文件

bandit -c config -r /path/to/your/code

bandit-config-generator 可用于产生配置文件 config file in YAML format

指定 baseline 文件

bandit -r /path/to/your/code -f json -o baseline.json
bandit -r /path/to/your/code -b baseline.json

Reference

junxnone commented 4 years ago

junxnone/examples#184