You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "Lists all instances of the specified code scanning alert. You must use an access token with the `security_events` scope to use this endpoint. GitHub Apps must have the `security_events` read permission to use this endpoint.",
"description": "The number that identifies an alert. You can find this at the end of the URL for a code scanning alert within GitHub, and in the `number` field in the response from the `GET /repos/{owner}/{repo}/code-scanning/alerts` operation.",
11530
+
"in": "PATH",
11531
+
"type": "integer",
11532
+
"required": true,
11533
+
"enum": null,
11534
+
"allowNull": false,
11535
+
"mapToData": null,
11536
+
"validation": null,
11537
+
"alias": null,
11538
+
"deprecated": null
11539
+
},
11540
+
{
11541
+
"name": "page",
11542
+
"description": "Page number of the results to fetch.",
11543
+
"in": "QUERY",
11544
+
"type": "integer",
11545
+
"required": false,
11546
+
"enum": null,
11547
+
"allowNull": false,
11548
+
"mapToData": null,
11549
+
"validation": null,
11550
+
"alias": null,
11551
+
"deprecated": null
11552
+
},
11553
+
{
11554
+
"name": "per_page",
11555
+
"description": "Results per page (max 100).",
11556
+
"in": "QUERY",
11557
+
"type": "integer",
11558
+
"required": false,
11559
+
"enum": null,
11560
+
"allowNull": false,
11561
+
"mapToData": null,
11562
+
"validation": null,
11563
+
"alias": null,
11564
+
"deprecated": null
11565
+
},
11566
+
{
11567
+
"name": "ref",
11568
+
"description": "The Git reference for the results you want to list. The `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`.",
11569
+
"in": "QUERY",
11570
+
"type": "string",
11571
+
"required": false,
11572
+
"enum": null,
11573
+
"allowNull": false,
11574
+
"mapToData": null,
11575
+
"validation": null,
11576
+
"alias": null,
11577
+
"deprecated": null
11578
+
}
11579
+
],
11580
+
"responses": [
11581
+
{
11582
+
"code": 200,
11583
+
"description": "Response",
11584
+
"examples": [
11585
+
{
11586
+
"data": "[{\"ref\":\"refs/heads/main\",\"analysis_key\":\".github/workflows/codeql-analysis.yml:CodeQL-Build\",\"environment\":\"\",\"state\":\"open\",\"commit_sha\":\"39406e42cb832f683daa691dd652a8dc36ee8930\",\"message\":{\"text\":\"This path depends on a user-provided value.\"},\"location\":{\"path\":\"lib/ab12-gen.js\",\"start_line\":917,\"end_line\":917,\"start_column\":7,\"end_column\":18},\"classifications\":[\"library\"]},{\"ref\":\"refs/pull/3740/merge\",\"analysis_key\":\".github/workflows/codeql-analysis.yml:CodeQL-Build\",\"environment\":\"\",\"state\":\"fixed\",\"commit_sha\":\"b09da05606e27f463a2b49287684b4ae777092f2\",\"message\":{\"text\":\"This suffix check is missing a length comparison to correctly handle lastIndexOf returning -1.\"},\"location\":{\"path\":\"app/script.js\",\"start_line\":2,\"end_line\":2,\"start_column\":10,\"end_column\":50},\"classifications\":[\"source\"]}]"
11587
+
}
11588
+
]
11589
+
},
11590
+
{
11591
+
"code": 403,
11592
+
"description": "Response if GitHub Advanced Security is not enabled for this repository",
11593
+
"examples": null
11594
+
},
11595
+
{ "code": 404, "description": "Resource not found", "examples": null },
Copy file name to clipboardExpand all lines: src/generated/method-types.ts
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2429,6 +2429,19 @@ export type RestEndpointMethods = {
2429
2429
defaults: RequestInterface["defaults"];
2430
2430
endpoint: EndpointInterface<{url: string}>;
2431
2431
};
2432
+
/**
2433
+
* Lists all instances of the specified code scanning alert. You must use an access token with the `security_events` scope to use this endpoint. GitHub Apps must have the `security_events` read permission to use this endpoint.
2434
+
* @deprecated octokit.rest.codeScanning.listAlertsInstances() has been renamed to octokit.rest.codeScanning.listAlertInstances() (2021-04-30)
0 commit comments