Skip to content

Commit 4e7b34f

Browse files
committed
WIP octokit/openapi updated
1 parent 9d843b6 commit 4e7b34f

File tree

1 file changed

+112
-0
lines changed

1 file changed

+112
-0
lines changed

scripts/update-endpoints/generated/endpoints.json

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12110,6 +12110,118 @@
1211012110
],
1211112111
"renamed": null
1211212112
},
12113+
{
12114+
"name": "List instances of a code scanning alert",
12115+
"scope": "codeScanning",
12116+
"id": "listAlertInstances",
12117+
"method": "GET",
12118+
"url": "/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
12119+
"isDeprecated": false,
12120+
"deprecationDate": null,
12121+
"description": "Gets information about a SARIF upload, including the status and the URL of the analysis that was uploaded so that you can retrieve details of the analysis. For more information, see \"[Get a code scanning analysis for a repository](/rest/reference/code-scanning#get-a-code-scanning-analysis-for-a-repository).\" 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.",
12122+
"documentationUrl": "https://docs.github.com/rest/reference/code-scanning#list-recent-code-scanning-analyses-for-a-repository",
12123+
"previews": [],
12124+
"headers": [],
12125+
"parameters": [
12126+
{
12127+
"name": "owner",
12128+
"description": "",
12129+
"in": "PATH",
12130+
"type": "string",
12131+
"required": true,
12132+
"enum": null,
12133+
"allowNull": false,
12134+
"mapToData": null,
12135+
"validation": null,
12136+
"alias": null,
12137+
"deprecated": null
12138+
},
12139+
{
12140+
"name": "repo",
12141+
"description": "",
12142+
"in": "PATH",
12143+
"type": "string",
12144+
"required": true,
12145+
"enum": null,
12146+
"allowNull": false,
12147+
"mapToData": null,
12148+
"validation": null,
12149+
"alias": null,
12150+
"deprecated": null
12151+
},
12152+
{
12153+
"name": "alert_number",
12154+
"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.",
12155+
"in": "PATH",
12156+
"type": "integer",
12157+
"required": true,
12158+
"enum": null,
12159+
"allowNull": false,
12160+
"mapToData": null,
12161+
"validation": null,
12162+
"alias": null,
12163+
"deprecated": null
12164+
},
12165+
{
12166+
"name": "page",
12167+
"description": "Page number of the results to fetch.",
12168+
"in": "QUERY",
12169+
"type": "integer",
12170+
"required": false,
12171+
"enum": null,
12172+
"allowNull": false,
12173+
"mapToData": null,
12174+
"validation": null,
12175+
"alias": null,
12176+
"deprecated": null
12177+
},
12178+
{
12179+
"name": "per_page",
12180+
"description": "Results per page (max 100).",
12181+
"in": "QUERY",
12182+
"type": "integer",
12183+
"required": false,
12184+
"enum": null,
12185+
"allowNull": false,
12186+
"mapToData": null,
12187+
"validation": null,
12188+
"alias": null,
12189+
"deprecated": null
12190+
},
12191+
{
12192+
"name": "ref",
12193+
"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`.",
12194+
"in": "QUERY",
12195+
"type": "string",
12196+
"required": false,
12197+
"enum": null,
12198+
"allowNull": false,
12199+
"mapToData": null,
12200+
"validation": null,
12201+
"alias": null,
12202+
"deprecated": null
12203+
}
12204+
],
12205+
"responses": [
12206+
{
12207+
"code": 200,
12208+
"description": "Response",
12209+
"examples": [
12210+
{
12211+
"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\"]}]"
12212+
}
12213+
]
12214+
},
12215+
{
12216+
"code": 403,
12217+
"description": "Response if GitHub Advanced Security is not enabled for this repository",
12218+
"examples": null
12219+
},
12220+
{ "code": 404, "description": "Resource not found", "examples": null },
12221+
{ "code": 503, "description": "Service unavailable", "examples": null }
12222+
],
12223+
"renamed": null
12224+
},
1211312225
{
1211412226
"name": "List instances of a code scanning alert",
1211512227
"scope": "codeScanning",

0 commit comments

Comments
 (0)