Skip to content

Commit 2d22947

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

File tree

1 file changed

+11
-42
lines changed

1 file changed

+11
-42
lines changed

scripts/update-endpoints/generated/endpoints.json

Lines changed: 11 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -11819,23 +11819,18 @@
1181911819
{ "code": 404, "description": "Resource not found", "examples": null },
1182011820
{ "code": 503, "description": "Service unavailable", "examples": null }
1182111821
],
11822-
"renamed": {
11823-
"before": { "scope": "codeScanning", "id": "listAlertsInstances" },
11824-
"after": { "scope": "codeScanning", "id": "listAlertInstances" },
11825-
"date": "2021-04-30",
11826-
"note": null
11827-
}
11822+
"renamed": null
1182811823
},
1182911824
{
1183011825
"name": "List code scanning alerts for a repository",
1183111826
"scope": "codeScanning",
11832-
"id": "listAlertsForRepo",
11827+
"id": "listAlertInstances",
1183311828
"method": "GET",
11834-
"url": "/repos/{owner}/{repo}/code-scanning/alerts",
11829+
"url": "/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
1183511830
"isDeprecated": false,
1183611831
"deprecationDate": null,
11837-
"description": "Lists all open code scanning alerts for the default branch (usually `main`\nor `master`). You must use an access token with the `security_events` scope to use\nthis endpoint. GitHub Apps must have the `security_events` read permission to use\nthis endpoint.\n\nThe response includes a `most_recent_instance` object.\nThis provides details of the most recent instance of this alert\nfor the default branch or for the specified Git reference\n(if you used `ref` in the request).",
11838-
"documentationUrl": "https://docs.github.com/rest/reference/code-scanning#list-code-scanning-alerts-for-a-repository",
11832+
"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.",
11833+
"documentationUrl": "https://docs.github.com/rest/reference/code-scanning#list-instances-of-a-code-scanning-alert",
1183911834
"previews": [],
1184011835
"headers": [],
1184111836
"parameters": [
@@ -11866,24 +11861,11 @@
1186611861
"deprecated": null
1186711862
},
1186811863
{
11869-
"name": "tool_name",
11870-
"description": "The name of a code scanning tool. Only results by this tool will be listed. You can specify the tool by using either `tool_name` or `tool_guid`, but not both.",
11871-
"in": "QUERY",
11872-
"type": "string",
11873-
"required": false,
11874-
"enum": null,
11875-
"allowNull": false,
11876-
"mapToData": null,
11877-
"validation": null,
11878-
"alias": null,
11879-
"deprecated": null
11880-
},
11881-
{
11882-
"name": "tool_guid",
11883-
"description": "The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either `tool_guid` or `tool_name`, but not both.",
11884-
"in": "QUERY",
11885-
"type": "string",
11886-
"required": false,
11864+
"name": "alert_number",
11865+
"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.",
11866+
"in": "PATH",
11867+
"type": "integer",
11868+
"required": true,
1188711869
"enum": null,
1188811870
"allowNull": false,
1188911871
"mapToData": null,
@@ -11929,19 +11911,6 @@
1192911911
"validation": null,
1193011912
"alias": null,
1193111913
"deprecated": null
11932-
},
11933-
{
11934-
"name": "state",
11935-
"description": "Set to `open`, `fixed`, or `dismissed` to list code scanning alerts in a specific state.",
11936-
"in": "QUERY",
11937-
"type": "string",
11938-
"required": false,
11939-
"enum": ["open", "closed", "dismissed", "fixed"],
11940-
"allowNull": false,
11941-
"mapToData": null,
11942-
"validation": null,
11943-
"alias": null,
11944-
"deprecated": null
1194511914
}
1194611915
],
1194711916
"responses": [
@@ -11950,7 +11919,7 @@
1195011919
"description": "Response",
1195111920
"examples": [
1195211921
{
11953-
"data": "[{\"number\":4,\"created_at\":\"2020-02-13T12:29:18Z\",\"url\":\"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/4\",\"html_url\":\"https://github.com/octocat/hello-world/code-scanning/4\",\"state\":\"open\",\"dismissed_by\":null,\"dismissed_at\":null,\"dismissed_reason\":null,\"rule\":{\"id\":\"js/zipslip\",\"severity\":\"error\",\"description\":\"Arbitrary file write during zip extraction\",\"name\":\"js/zipslip\"},\"tool\":{\"name\":\"CodeQL\",\"guid\":null,\"version\":\"2.4.0\"},\"most_recent_instance\":{\"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\":\"spec-main/api-session-spec.ts\",\"start_line\":917,\"end_line\":917,\"start_column\":7,\"end_column\":18},\"classifications\":[\"test\"]},\"instances_url\":\"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/4/instances\"},{\"number\":3,\"created_at\":\"2020-02-13T12:29:18Z\",\"url\":\"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/3\",\"html_url\":\"https://github.com/octocat/hello-world/code-scanning/3\",\"state\":\"dismissed\",\"dismissed_by\":{\"login\":\"octocat\",\"id\":1,\"node_id\":\"MDQ6VXNlcjE=\",\"avatar_url\":\"https://github.com/images/error/octocat_happy.gif\",\"gravatar_id\":\"\",\"url\":\"https://api.github.com/users/octocat\",\"html_url\":\"https://github.com/octocat\",\"followers_url\":\"https://api.github.com/users/octocat/followers\",\"following_url\":\"https://api.github.com/users/octocat/following{/other_user}\",\"gists_url\":\"https://api.github.com/users/octocat/gists{/gist_id}\",\"starred_url\":\"https://api.github.com/users/octocat/starred{/owner}{/repo}\",\"subscriptions_url\":\"https://api.github.com/users/octocat/subscriptions\",\"organizations_url\":\"https://api.github.com/users/octocat/orgs\",\"repos_url\":\"https://api.github.com/users/octocat/repos\",\"events_url\":\"https://api.github.com/users/octocat/events{/privacy}\",\"received_events_url\":\"https://api.github.com/users/octocat/received_events\",\"type\":\"User\",\"site_admin\":false},\"dismissed_at\":\"2020-02-14T12:29:18Z\",\"dismissed_reason\":\"false positive\",\"rule\":{\"id\":\"js/zipslip\",\"severity\":\"error\",\"description\":\"Arbitrary file write during zip extraction\",\"name\":\"js/zipslip\"},\"tool\":{\"name\":\"CodeQL\",\"guid\":null,\"version\":\"2.4.0\"},\"most_recent_instance\":{\"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\":[]},\"instances_url\":\"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/3/instances\"}]"
11922+
"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\"]}]"
1195411923
}
1195511924
]
1195611925
},

0 commit comments

Comments
 (0)