|
11889 | 11889 | "url": "/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
|
11890 | 11890 | "isDeprecated": false,
|
11891 | 11891 | "deprecationDate": null,
|
11892 |
| - "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.", |
11893 |
| - "documentationUrl": "https://docs.github.com/rest/reference/code-scanning#list-instances-of-a-code-scanning-alert", |
| 11892 | + "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.", |
| 11893 | + "documentationUrl": "https://docs.github.com/rest/reference/code-scanning#list-recent-code-scanning-analyses-for-a-repository", |
11894 | 11894 | "previews": [],
|
11895 | 11895 | "headers": [],
|
11896 | 11896 | "parameters": [
|
@@ -11998,6 +11998,118 @@
|
11998 | 11998 | "note": null
|
11999 | 11999 | }
|
12000 | 12000 | },
|
| 12001 | + { |
| 12002 | + "name": "List instances of a code scanning alert", |
| 12003 | + "scope": "codeScanning", |
| 12004 | + "id": "listAlertInstances", |
| 12005 | + "method": "GET", |
| 12006 | + "url": "/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances", |
| 12007 | + "isDeprecated": false, |
| 12008 | + "deprecationDate": null, |
| 12009 | + "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.", |
| 12010 | + "documentationUrl": "https://docs.github.com/rest/reference/code-scanning#list-instances-of-a-code-scanning-alert", |
| 12011 | + "previews": [], |
| 12012 | + "headers": [], |
| 12013 | + "parameters": [ |
| 12014 | + { |
| 12015 | + "name": "owner", |
| 12016 | + "description": "", |
| 12017 | + "in": "PATH", |
| 12018 | + "type": "string", |
| 12019 | + "required": true, |
| 12020 | + "enum": null, |
| 12021 | + "allowNull": false, |
| 12022 | + "mapToData": null, |
| 12023 | + "validation": null, |
| 12024 | + "alias": null, |
| 12025 | + "deprecated": null |
| 12026 | + }, |
| 12027 | + { |
| 12028 | + "name": "repo", |
| 12029 | + "description": "", |
| 12030 | + "in": "PATH", |
| 12031 | + "type": "string", |
| 12032 | + "required": true, |
| 12033 | + "enum": null, |
| 12034 | + "allowNull": false, |
| 12035 | + "mapToData": null, |
| 12036 | + "validation": null, |
| 12037 | + "alias": null, |
| 12038 | + "deprecated": null |
| 12039 | + }, |
| 12040 | + { |
| 12041 | + "name": "alert_number", |
| 12042 | + "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.", |
| 12043 | + "in": "PATH", |
| 12044 | + "type": "integer", |
| 12045 | + "required": true, |
| 12046 | + "enum": null, |
| 12047 | + "allowNull": false, |
| 12048 | + "mapToData": null, |
| 12049 | + "validation": null, |
| 12050 | + "alias": null, |
| 12051 | + "deprecated": null |
| 12052 | + }, |
| 12053 | + { |
| 12054 | + "name": "page", |
| 12055 | + "description": "Page number of the results to fetch.", |
| 12056 | + "in": "QUERY", |
| 12057 | + "type": "integer", |
| 12058 | + "required": false, |
| 12059 | + "enum": null, |
| 12060 | + "allowNull": false, |
| 12061 | + "mapToData": null, |
| 12062 | + "validation": null, |
| 12063 | + "alias": null, |
| 12064 | + "deprecated": null |
| 12065 | + }, |
| 12066 | + { |
| 12067 | + "name": "per_page", |
| 12068 | + "description": "Results per page (max 100).", |
| 12069 | + "in": "QUERY", |
| 12070 | + "type": "integer", |
| 12071 | + "required": false, |
| 12072 | + "enum": null, |
| 12073 | + "allowNull": false, |
| 12074 | + "mapToData": null, |
| 12075 | + "validation": null, |
| 12076 | + "alias": null, |
| 12077 | + "deprecated": null |
| 12078 | + }, |
| 12079 | + { |
| 12080 | + "name": "ref", |
| 12081 | + "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`.", |
| 12082 | + "in": "QUERY", |
| 12083 | + "type": "string", |
| 12084 | + "required": false, |
| 12085 | + "enum": null, |
| 12086 | + "allowNull": false, |
| 12087 | + "mapToData": null, |
| 12088 | + "validation": null, |
| 12089 | + "alias": null, |
| 12090 | + "deprecated": null |
| 12091 | + } |
| 12092 | + ], |
| 12093 | + "responses": [ |
| 12094 | + { |
| 12095 | + "code": 200, |
| 12096 | + "description": "Response", |
| 12097 | + "examples": [ |
| 12098 | + { |
| 12099 | + "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\"]}]" |
| 12100 | + } |
| 12101 | + ] |
| 12102 | + }, |
| 12103 | + { |
| 12104 | + "code": 403, |
| 12105 | + "description": "Response if GitHub Advanced Security is not enabled for this repository", |
| 12106 | + "examples": null |
| 12107 | + }, |
| 12108 | + { "code": 404, "description": "Resource not found", "examples": null }, |
| 12109 | + { "code": 503, "description": "Service unavailable", "examples": null } |
| 12110 | + ], |
| 12111 | + "renamed": null |
| 12112 | + }, |
12001 | 12113 | {
|
12002 | 12114 | "name": "List code scanning alerts for a repository",
|
12003 | 12115 | "scope": "codeScanning",
|
|
36801 | 36913 | ],
|
36802 | 36914 | "responses": [
|
36803 | 36915 | { "code": 204, "description": "Response", "examples": null },
|
| 36916 | + { "code": 307, "description": "Temporary Redirect", "examples": null }, |
36804 | 36917 | {
|
36805 | 36918 | "code": 403,
|
36806 | 36919 | "description": "If an organization owner has configured the organization to prevent members from deleting organization-owned repositories, a member will get this response:",
|
|
45093 | 45206 | }
|
45094 | 45207 | ]
|
45095 | 45208 | },
|
| 45209 | + { "code": 307, "description": "Temporary Redirect", "examples": null }, |
45096 | 45210 | { "code": 403, "description": "Forbidden", "examples": null },
|
45097 | 45211 | { "code": 404, "description": "Resource not found", "examples": null },
|
45098 | 45212 | { "code": 422, "description": "Validation failed", "examples": null }
|
|
0 commit comments