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.Authorization: Bearer ********************curl --location --request GET 'https://api.github.com/repos///code-scanning/analyses' \
--header 'Authorization: Bearer <token>'[
{
"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"
}
]
【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通

扫码加入交流群