RepoCodeIssue

查询代码扫描问题列表。List code scan issues.

分页查询指定仓库的源码扫描问题列表。支持按问题规则(issue_rule)和严重程度(risk_level)筛选。返回问题标题、位置、严重程度等信息。 Paginate the source code scanning issue list of the specified repository. Supports filtering by issue rule (issue_rule) and severity level (risk_level). Returns issue title, location, severity, and other info. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-code:r

get/{slug}/-/code/issues

Request

  • Base URL: https://api.cnb.cool (the document declares no server; this is the origin it was published from)
  • URL: https://api.cnb.cool/{slug}/-/code/issues
  • Auth: API key in header Authorization

Path parameters

slugstring required

不带.git后缀的仓库名称。格式:组织名称/仓库名称。Repository name without .git suffix. Format: org/repo.

Query parameters

issue_rulestring

问题规则,用于筛选特定类型的问题。示例值:critical-risk, LIC_CRITICAL, VUL_CRITICAL

risk_levelstring

严重程度,用于筛选特定风险等级的问题。枚举值:info, warning, error, fatal, all

pageinteger

分页页码。Page number.

page_sizeinteger

分页页大小。Page size.

Response

OK

Changes

No recorded changes to this operation across all 1 revision of this API.