Skip to content

Commit a6a8087

Browse files
committed
WIP octokit/openapi updated
1 parent 2b16a17 commit a6a8087

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
@@ -11709,6 +11709,123 @@
1170911709
],
1171011710
"renamed": null
1171111711
},
11712+
{
11713+
"name": "List code scanning alerts for a repository",
11714+
"scope": "codeScanning",
11715+
"id": "listAlertInstances",
11716+
"method": "GET",
11717+
"url": "/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
11718+
"isDeprecated": false,
11719+
"deprecationDate": null,
11720+
"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.",
11721+
"documentationUrl": "https://docs.github.com/rest/reference/code-scanning#list-instances-of-a-code-scanning-alert",
11722+
"previews": [],
11723+
"headers": [],
11724+
"parameters": [
11725+
{
11726+
"name": "owner",
11727+
"description": "",
11728+
"in": "PATH",
11729+
"type": "string",
11730+
"required": true,
11731+
"enum": null,
11732+
"allowNull": false,
11733+
"mapToData": null,
11734+
"validation": null,
11735+
"alias": null,
11736+
"deprecated": null
11737+
},
11738+
{
11739+
"name": "repo",
11740+
"description": "",
11741+
"in": "PATH",
11742+
"type": "string",
11743+
"required": true,
11744+
"enum": null,
11745+
"allowNull": false,
11746+
"mapToData": null,
11747+
"validation": null,
11748+
"alias": null,
11749+
"deprecated": null
11750+
},
11751+
{
11752+
"name": "alert_number",
11753+
"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.",
11754+
"in": "PATH",
11755+
"type": "integer",
11756+
"required": true,
11757+
"enum": null,
11758+
"allowNull": false,
11759+
"mapToData": null,
11760+
"validation": null,
11761+
"alias": null,
11762+
"deprecated": null
11763+
},
11764+
{
11765+
"name": "page",
11766+
"description": "Page number of the results to fetch.",
11767+
"in": "QUERY",
11768+
"type": "integer",
11769+
"required": false,
11770+
"enum": null,
11771+
"allowNull": false,
11772+
"mapToData": null,
11773+
"validation": null,
11774+
"alias": null,
11775+
"deprecated": null
11776+
},
11777+
{
11778+
"name": "per_page",
11779+
"description": "Results per page (max 100).",
11780+
"in": "QUERY",
11781+
"type": "integer",
11782+
"required": false,
11783+
"enum": null,
11784+
"allowNull": false,
11785+
"mapToData": null,
11786+
"validation": null,
11787+
"alias": null,
11788+
"deprecated": null
11789+
},
11790+
{
11791+
"name": "ref",
11792+
"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`.",
11793+
"in": "QUERY",
11794+
"type": "string",
11795+
"required": false,
11796+
"enum": null,
11797+
"allowNull": false,
11798+
"mapToData": null,
11799+
"validation": null,
11800+
"alias": null,
11801+
"deprecated": null
11802+
}
11803+
],
11804+
"responses": [
11805+
{
11806+
"code": 200,
11807+
"description": "Response",
11808+
"examples": [
11809+
{
11810+
"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\"]}]"
11811+
}
11812+
]
11813+
},
11814+
{
11815+
"code": 403,
11816+
"description": "Response if GitHub Advanced Security is not enabled for this repository",
11817+
"examples": null
11818+
},
11819+
{ "code": 404, "description": "Resource not found", "examples": null },
11820+
{ "code": 503, "description": "Service unavailable", "examples": null }
11821+
],
11822+
"renamed": {
11823+
"before": { "scope": "codeScanning", "id": "listAlertsInstances" },
11824+
"after": { "scope": "codeScanning", "id": "listAlertInstances" },
11825+
"date": "2021-04-30",
11826+
"note": null
11827+
}
11828+
},
1171211829
{
1171311830
"name": "List code scanning alerts for a repository",
1171411831
"scope": "codeScanning",

0 commit comments

Comments
 (0)