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

权限

需要一个在企业级别具有 ViewAccountCodeScans 权限的服务用户。

授权

Authorization
string
header
必填

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

查询参数

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
org_ids
string[] | null

筛选出这些组织中的发现项。

响应

成功响应

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

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

has_next_page
boolean
默认值:false

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

total
integer | null

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