page
and per_page
parametersrules_count
field in the response give the number of rules0
is returned in this field.security_events
scope to use this endpoint.security_events
read permission to use this endpoint.tool_name
field is deprecated and will, in future, not be included in the response for this endpoint. The example response reflects this change. The tool name can now be found inside the tool
field.curl --location --request GET 'https://api.github.com/repos///code-scanning/analyses'
[
{
"analysis_key": "string",
"category": "string",
"commit_sha": "stringstringstringstringstringstringstri",
"created_at": "2019-08-24T14:15:22Z",
"deletable": true,
"environment": "string",
"error": "error reading field xyz",
"id": 0,
"ref": "string",
"results_count": 0,
"rules_count": 0,
"sarif_id": "6c81cd8e-b078-4ac3-a3be-1dad7dbd0b53",
"tool": {
"guid": "string",
"name": "string",
"version": "string"
},
"url": "http://example.com",
"warning": "123 results were ignored"
}
]
Authorization: Bearer ********************
tool_name
or tool_guid
, but not both.tool_guid
or tool_name
, but not both.ref
for a branch can be formatted either as refs/heads/<branch name>
or simply <branch name>
. To reference a pull request use refs/pull/<number>/merge
.YYYY-MM-DDTHH:MM:SSZ
.refs/heads/<branch name>
,refs/pull/<number>/merge
, or refs/pull/<number>/head
.【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通