跳转到内容

cnb-rs repo code-issue list

cnb-rs repo code-issue list [-r <RULE>] [-l <LEVEL>] [-L <N>] [--page <N>]
cnb-rs repo code-issue ls   [-r <RULE>] [-l <LEVEL>] [-L <N>] [--page <N>]

列出仓库源码扫描问题。

选项

  • -r, --rule <RULE>: 按规则过滤(如 LIC_CRITICAL / VUL_CRITICAL / critical-risk
  • -l, --risk-level <LEVEL>: 按严重程度过滤(info / warning / error / fatal / all)
  • -L, --limit <N>: 每页数量(默认 50)
  • --page <N>: 页码(默认 1)

输出列

含义
ID问题 record ID(用于 view 命令)
RISK严重等级
RULE触发的扫描规则
FILE:LINE文件路径 + 行号(grep-friendly)
AUTHORgit author 姓名

API

GET ${CNB_API_ENDPOINT}/{repo}/-/code/issues

另请参阅

Released under the MIT License.