Skip to content

Commit 6df4d88

Browse files
committed
WIP octokit/openapi updated
1 parent 2d22947 commit 6df4d88

File tree

1 file changed

+117
-0
lines changed

1 file changed

+117
-0
lines changed

scripts/update-endpoints/generated/endpoints.json

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11938,6 +11938,123 @@
1193811938
"note": null
1193911939
}
1194011940
},
11941+
{
11942+
"name": "List code scanning alerts for a repository",
11943+
"scope": "codeScanning",
11944+
"id": "listAlertInstances",
11945+
"method": "GET",
11946+
"url": "/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
11947+
"isDeprecated": false,
11948+
"deprecationDate": null,
11949+
"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.",
11950+
"documentationUrl": "https://docs.github.com/rest/reference/code-scanning#list-instances-of-a-code-scanning-alert",
11951+
"previews": [],
11952+
"headers": [],
11953+
"parameters": [
11954+
{
11955+
"name": "owner",
11956+
"description": "",
11957+
"in": "PATH",
11958+
"type": "string",
11959+
"required": true,
11960+
"enum": null,
11961+
"allowNull": false,
11962+
"mapToData": null,
11963+
"validation": null,
11964+
"alias": null,
11965+
"deprecated": null
11966+
},
11967+
{
11968+
"name": "repo",
11969+
"description": "",
11970+
"in": "PATH",
11971+
"type": "string",
11972+
"required": true,
11973+
"enum": null,
11974+
"allowNull": false,
11975+
"mapToData": null,
11976+
"validation": null,
11977+
"alias": null,
11978+
"deprecated": null
11979+
},
11980+
{
11981+
"name": "alert_number",
11982+
"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.",
11983+
"in": "PATH",
11984+
"type": "integer",
11985+
"required": true,
11986+
"enum": null,
11987+
"allowNull": false,
11988+
"mapToData": null,
11989+
"validation": null,
11990+
"alias": null,
11991+
"deprecated": null
11992+
},
11993+
{
11994+
"name": "page",
11995+
"description": "Page number of the results to fetch.",
11996+
"in": "QUERY",
11997+
"type": "integer",
11998+
"required": false,
11999+
"enum": null,
12000+
"allowNull": false,
12001+
"mapToData": null,
12002+
"validation": null,
12003+
"alias": null,
12004+
"deprecated": null
12005+
},
12006+
{
12007+
"name": "per_page",
12008+
"description": "Results per page (max 100).",
12009+
"in": "QUERY",
12010+
"type": "integer",
12011+
"required": false,
12012+
"enum": null,
12013+
"allowNull": false,
12014+
"mapToData": null,
12015+
"validation": null,
12016+
"alias": null,
12017+
"deprecated": null
12018+
},
12019+
{
12020+
"name": "ref",
12021+
"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`.",
12022+
"in": "QUERY",
12023+
"type": "string",
12024+
"required": false,
12025+
"enum": null,
12026+
"allowNull": false,
12027+
"mapToData": null,
12028+
"validation": null,
12029+
"alias": null,
12030+
"deprecated": null
12031+
}
12032+
],
12033+
"responses": [
12034+
{
12035+
"code": 200,
12036+
"description": "Response",
12037+
"examples": [
12038+
{
12039+
"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\"]}]"
12040+
}
12041+
]
12042+
},
12043+
{
12044+
"code": 403,
12045+
"description": "Response if GitHub Advanced Security is not enabled for this repository",
12046+
"examples": null
12047+
},
12048+
{ "code": 404, "description": "Resource not found", "examples": null },
12049+
{ "code": 503, "description": "Service unavailable", "examples": null }
12050+
],
12051+
"renamed": {
12052+
"before": { "scope": "codeScanning", "id": "listAlertsInstances" },
12053+
"after": { "scope": "codeScanning", "id": "listAlertInstances" },
12054+
"date": "2021-04-30",
12055+
"note": null
12056+
}
12057+
},
1194112058
{
1194212059
"name": "List code scanning analyses for a repository",
1194312060
"scope": "codeScanning",

0 commit comments

Comments
 (0)