使用文档
报告与输出
| 格式 | 用途 |
|---|---|
markdown | 默认,人类可读 |
json | 机器解析 |
sarif | 接入 CI / 安全面板 |
dot | 攻击路径图(Graphviz) |
graphml | 攻击路径图(yEd 等) |
从 workspace 重新渲染
# 渲染为 SARIF
huntzero report /path/to/repo -f sarif -o report.sarif
# 渲染为攻击路径图
huntzero report /path/to/repo -f dot -o attack-path.dot
扫描结束后的中间产物保留在工作区,可随时换格式重出,无需重扫。
扫描时直接指定
huntzero scan /path/to/repo -f markdown -o report.md
huntzero ci . -f sarif -o report.sarif --fail-on high
ci 模式推荐 sarif,便于在流水线中作为代码扫描结果上传。