Skip to main content
GET
列出代码扫描发现项

权限

需要 服务用户个人访问令牌,并且该服务用户或令牌需具有组织级 ViewCodeScans 权限。

授权

Authorization
string
header
必填

服务用户凭据(前缀:cog_)

路径参数

org_id
string
必填

组织 ID(前缀:org-)

示例:

"org-abc123def456"

查询参数

after
string | null
first
integer
默认值:100
必填范围: 1 <= x <= 200
scan_id
string | null

筛选由此扫描生成的发现项。

repo_name
string | null

筛选此代码仓库中报告的发现项。

severity
enum<string>[] | null

筛选严重级别为以下任一值的发现项(critical、high、medium、low)。

可用选项:
critical,
high,
medium,
low
status
enum<string>[] | null

筛选状态为以下任一值的发现项(open、dismissed、resolved)。

可用选项:
open,
dismissed,
resolved

响应

成功响应

items
CodeScanFindingResponse · object[]
必填
end_cursor
string | null

用于获取下一页的游标;如果这是最后一页,则为 None。

has_next_page
boolean
默认值:false

此页之后是否还有更多条目。

total
integer | null

可选的总数(出于性能考虑可省略)。