@octokit/openapi 7.12.1 → 7.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generated/api.github.com.deref.json +713 -6
- package/generated/api.github.com.json +283 -4
- package/generated/ghes-3.2-diff-to-api.github.com.deref.json +1 -1
- package/generated/ghes-3.2-diff-to-api.github.com.json +1 -1
- package/generated/ghes-3.2-diff-to-ghes-3.3.deref.json +2 -2
- package/generated/ghes-3.2-diff-to-ghes-3.3.json +2 -2
- package/generated/ghes-3.2.deref.json +6 -6
- package/generated/ghes-3.2.json +4 -4
- package/generated/ghes-3.3-diff-to-ghes-3.4.deref.json +2 -2
- package/generated/ghes-3.3-diff-to-ghes-3.4.json +2 -2
- package/generated/ghes-3.3.deref.json +6 -6
- package/generated/ghes-3.3.json +4 -4
- package/generated/ghes-3.4-diff-to-ghes-3.5.deref.json +1 -1
- package/generated/ghes-3.4-diff-to-ghes-3.5.json +1 -1
- package/generated/ghes-3.4.deref.json +6 -6
- package/generated/ghes-3.4.json +4 -4
- package/generated/ghes-3.5-anicca-diff-to-ghes-3.6.deref.json +11 -0
- package/generated/ghes-3.5-diff-to-api.github.com.deref.json +1 -1
- package/generated/ghes-3.5-diff-to-api.github.com.json +1 -1
- package/generated/ghes-3.5-diff-to-ghes-3.6.deref.json +2 -2
- package/generated/ghes-3.5-diff-to-ghes-3.6.json +2 -2
- package/generated/ghes-3.5.deref.json +112 -6
- package/generated/ghes-3.5.json +110 -4
- package/generated/ghes-3.6-anicca-diff-to-api.github.com.deref.json +6 -11
- package/generated/ghes-3.6-diff-to-api.github.com.deref.json +1 -1
- package/generated/ghes-3.6-diff-to-api.github.com.json +1 -1
- package/generated/ghes-3.6.deref.json +761 -112
- package/generated/ghes-3.6.json +527 -110
- package/generated/github.ae-anicca-diff-to-api.github.com.deref.json +6 -0
- package/generated/github.ae-diff-to-api.github.com.deref.json +2 -2
- package/generated/github.ae-diff-to-api.github.com.json +2 -2
- package/generated/github.ae.deref.json +50 -6
- package/generated/github.ae.json +48 -4
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.13.0",
|
|
5
5
|
"title": "GitHub's official OpenAPI spec + Octokit extension",
|
|
6
6
|
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
|
|
7
7
|
"license": {
|
|
@@ -207680,7 +207680,7 @@
|
|
|
207680
207680
|
}
|
|
207681
207681
|
},
|
|
207682
207682
|
"403": {
|
|
207683
|
-
"description": "Response if the repository is archived or if
|
|
207683
|
+
"description": "Response if the repository is archived or if GitHub Advanced Security is not enabled for this repository",
|
|
207684
207684
|
"content": {
|
|
207685
207685
|
"application/json": {
|
|
207686
207686
|
"schema": {
|
|
@@ -208903,7 +208903,7 @@
|
|
|
208903
208903
|
}
|
|
208904
208904
|
},
|
|
208905
208905
|
"403": {
|
|
208906
|
-
"description": "Response if the repository is archived or if
|
|
208906
|
+
"description": "Response if the repository is archived or if GitHub Advanced Security is not enabled for this repository",
|
|
208907
208907
|
"content": {
|
|
208908
208908
|
"application/json": {
|
|
208909
208909
|
"schema": {
|
|
@@ -208984,6 +208984,713 @@
|
|
|
208984
208984
|
"x-octokit": {}
|
|
208985
208985
|
}
|
|
208986
208986
|
},
|
|
208987
|
+
"/repos/{owner}/{repo}/code-scanning/codeql/databases": {
|
|
208988
|
+
"get": {
|
|
208989
|
+
"summary": "List CodeQL databases for a repository",
|
|
208990
|
+
"description": "Lists the CodeQL databases that are available in a repository.\n\nFor private repositories, you must use an access token with the `security_events` scope.\nFor public repositories, you can use tokens with the `security_events` or `public_repo` scope.\nGitHub Apps must have the `contents` read permission to use this endpoint.",
|
|
208991
|
+
"tags": [
|
|
208992
|
+
"code-scanning"
|
|
208993
|
+
],
|
|
208994
|
+
"operationId": "code-scanning/list-codeql-databases",
|
|
208995
|
+
"externalDocs": {
|
|
208996
|
+
"description": "API method documentation",
|
|
208997
|
+
"url": "https://docs.github.com/rest/reference/code-scanning#list-codeql-databases"
|
|
208998
|
+
},
|
|
208999
|
+
"parameters": [
|
|
209000
|
+
{
|
|
209001
|
+
"name": "owner",
|
|
209002
|
+
"description": "The account owner of the repository. The name is not case sensitive.",
|
|
209003
|
+
"in": "path",
|
|
209004
|
+
"required": true,
|
|
209005
|
+
"schema": {
|
|
209006
|
+
"type": "string"
|
|
209007
|
+
}
|
|
209008
|
+
},
|
|
209009
|
+
{
|
|
209010
|
+
"name": "repo",
|
|
209011
|
+
"description": "The name of the repository. The name is not case sensitive.",
|
|
209012
|
+
"in": "path",
|
|
209013
|
+
"required": true,
|
|
209014
|
+
"schema": {
|
|
209015
|
+
"type": "string"
|
|
209016
|
+
}
|
|
209017
|
+
}
|
|
209018
|
+
],
|
|
209019
|
+
"responses": {
|
|
209020
|
+
"200": {
|
|
209021
|
+
"description": "Response",
|
|
209022
|
+
"content": {
|
|
209023
|
+
"application/json": {
|
|
209024
|
+
"schema": {
|
|
209025
|
+
"type": "array",
|
|
209026
|
+
"items": {
|
|
209027
|
+
"title": "CodeQL Database",
|
|
209028
|
+
"description": "A CodeQL database.",
|
|
209029
|
+
"type": "object",
|
|
209030
|
+
"properties": {
|
|
209031
|
+
"id": {
|
|
209032
|
+
"type": "integer",
|
|
209033
|
+
"description": "The ID of the CodeQL database."
|
|
209034
|
+
},
|
|
209035
|
+
"name": {
|
|
209036
|
+
"type": "string",
|
|
209037
|
+
"description": "The name of the CodeQL database."
|
|
209038
|
+
},
|
|
209039
|
+
"language": {
|
|
209040
|
+
"type": "string",
|
|
209041
|
+
"description": "The language of the CodeQL database."
|
|
209042
|
+
},
|
|
209043
|
+
"uploader": {
|
|
209044
|
+
"title": "Simple User",
|
|
209045
|
+
"description": "Simple User",
|
|
209046
|
+
"type": "object",
|
|
209047
|
+
"properties": {
|
|
209048
|
+
"name": {
|
|
209049
|
+
"nullable": true,
|
|
209050
|
+
"type": "string"
|
|
209051
|
+
},
|
|
209052
|
+
"email": {
|
|
209053
|
+
"nullable": true,
|
|
209054
|
+
"type": "string"
|
|
209055
|
+
},
|
|
209056
|
+
"login": {
|
|
209057
|
+
"type": "string",
|
|
209058
|
+
"example": "octocat"
|
|
209059
|
+
},
|
|
209060
|
+
"id": {
|
|
209061
|
+
"type": "integer",
|
|
209062
|
+
"example": 1
|
|
209063
|
+
},
|
|
209064
|
+
"node_id": {
|
|
209065
|
+
"type": "string",
|
|
209066
|
+
"example": "MDQ6VXNlcjE="
|
|
209067
|
+
},
|
|
209068
|
+
"avatar_url": {
|
|
209069
|
+
"type": "string",
|
|
209070
|
+
"format": "uri",
|
|
209071
|
+
"example": "https://github.com/images/error/octocat_happy.gif"
|
|
209072
|
+
},
|
|
209073
|
+
"gravatar_id": {
|
|
209074
|
+
"type": "string",
|
|
209075
|
+
"example": "41d064eb2195891e12d0413f63227ea7",
|
|
209076
|
+
"nullable": true
|
|
209077
|
+
},
|
|
209078
|
+
"url": {
|
|
209079
|
+
"type": "string",
|
|
209080
|
+
"format": "uri",
|
|
209081
|
+
"example": "https://api.github.com/users/octocat"
|
|
209082
|
+
},
|
|
209083
|
+
"html_url": {
|
|
209084
|
+
"type": "string",
|
|
209085
|
+
"format": "uri",
|
|
209086
|
+
"example": "https://github.com/octocat"
|
|
209087
|
+
},
|
|
209088
|
+
"followers_url": {
|
|
209089
|
+
"type": "string",
|
|
209090
|
+
"format": "uri",
|
|
209091
|
+
"example": "https://api.github.com/users/octocat/followers"
|
|
209092
|
+
},
|
|
209093
|
+
"following_url": {
|
|
209094
|
+
"type": "string",
|
|
209095
|
+
"example": "https://api.github.com/users/octocat/following{/other_user}"
|
|
209096
|
+
},
|
|
209097
|
+
"gists_url": {
|
|
209098
|
+
"type": "string",
|
|
209099
|
+
"example": "https://api.github.com/users/octocat/gists{/gist_id}"
|
|
209100
|
+
},
|
|
209101
|
+
"starred_url": {
|
|
209102
|
+
"type": "string",
|
|
209103
|
+
"example": "https://api.github.com/users/octocat/starred{/owner}{/repo}"
|
|
209104
|
+
},
|
|
209105
|
+
"subscriptions_url": {
|
|
209106
|
+
"type": "string",
|
|
209107
|
+
"format": "uri",
|
|
209108
|
+
"example": "https://api.github.com/users/octocat/subscriptions"
|
|
209109
|
+
},
|
|
209110
|
+
"organizations_url": {
|
|
209111
|
+
"type": "string",
|
|
209112
|
+
"format": "uri",
|
|
209113
|
+
"example": "https://api.github.com/users/octocat/orgs"
|
|
209114
|
+
},
|
|
209115
|
+
"repos_url": {
|
|
209116
|
+
"type": "string",
|
|
209117
|
+
"format": "uri",
|
|
209118
|
+
"example": "https://api.github.com/users/octocat/repos"
|
|
209119
|
+
},
|
|
209120
|
+
"events_url": {
|
|
209121
|
+
"type": "string",
|
|
209122
|
+
"example": "https://api.github.com/users/octocat/events{/privacy}"
|
|
209123
|
+
},
|
|
209124
|
+
"received_events_url": {
|
|
209125
|
+
"type": "string",
|
|
209126
|
+
"format": "uri",
|
|
209127
|
+
"example": "https://api.github.com/users/octocat/received_events"
|
|
209128
|
+
},
|
|
209129
|
+
"type": {
|
|
209130
|
+
"type": "string",
|
|
209131
|
+
"example": "User"
|
|
209132
|
+
},
|
|
209133
|
+
"site_admin": {
|
|
209134
|
+
"type": "boolean"
|
|
209135
|
+
},
|
|
209136
|
+
"starred_at": {
|
|
209137
|
+
"type": "string",
|
|
209138
|
+
"example": "\"2020-07-09T00:17:55Z\""
|
|
209139
|
+
}
|
|
209140
|
+
},
|
|
209141
|
+
"required": [
|
|
209142
|
+
"avatar_url",
|
|
209143
|
+
"events_url",
|
|
209144
|
+
"followers_url",
|
|
209145
|
+
"following_url",
|
|
209146
|
+
"gists_url",
|
|
209147
|
+
"gravatar_id",
|
|
209148
|
+
"html_url",
|
|
209149
|
+
"id",
|
|
209150
|
+
"node_id",
|
|
209151
|
+
"login",
|
|
209152
|
+
"organizations_url",
|
|
209153
|
+
"received_events_url",
|
|
209154
|
+
"repos_url",
|
|
209155
|
+
"site_admin",
|
|
209156
|
+
"starred_url",
|
|
209157
|
+
"subscriptions_url",
|
|
209158
|
+
"type",
|
|
209159
|
+
"url"
|
|
209160
|
+
]
|
|
209161
|
+
},
|
|
209162
|
+
"content_type": {
|
|
209163
|
+
"type": "string",
|
|
209164
|
+
"description": "The MIME type of the CodeQL database file."
|
|
209165
|
+
},
|
|
209166
|
+
"size": {
|
|
209167
|
+
"type": "integer",
|
|
209168
|
+
"description": "The size of the CodeQL database file in bytes."
|
|
209169
|
+
},
|
|
209170
|
+
"created_at": {
|
|
209171
|
+
"type": "string",
|
|
209172
|
+
"format": "date-time",
|
|
209173
|
+
"description": "The date and time at which the CodeQL database was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ."
|
|
209174
|
+
},
|
|
209175
|
+
"updated_at": {
|
|
209176
|
+
"type": "string",
|
|
209177
|
+
"format": "date-time",
|
|
209178
|
+
"description": "The date and time at which the CodeQL database was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ."
|
|
209179
|
+
},
|
|
209180
|
+
"url": {
|
|
209181
|
+
"type": "string",
|
|
209182
|
+
"format": "uri",
|
|
209183
|
+
"description": "The URL at which to download the CodeQL database. The `Accept` header must be set to the value of the `content_type` property."
|
|
209184
|
+
}
|
|
209185
|
+
},
|
|
209186
|
+
"required": [
|
|
209187
|
+
"id",
|
|
209188
|
+
"name",
|
|
209189
|
+
"language",
|
|
209190
|
+
"uploader",
|
|
209191
|
+
"content_type",
|
|
209192
|
+
"size",
|
|
209193
|
+
"created_at",
|
|
209194
|
+
"updated_at",
|
|
209195
|
+
"url"
|
|
209196
|
+
]
|
|
209197
|
+
}
|
|
209198
|
+
},
|
|
209199
|
+
"examples": {
|
|
209200
|
+
"default": {
|
|
209201
|
+
"value": [
|
|
209202
|
+
{
|
|
209203
|
+
"id": 1,
|
|
209204
|
+
"name": "database.zip",
|
|
209205
|
+
"language": "java",
|
|
209206
|
+
"uploader": {
|
|
209207
|
+
"login": "octocat",
|
|
209208
|
+
"id": 1,
|
|
209209
|
+
"node_id": "MDQ6VXNlcjE=",
|
|
209210
|
+
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
|
209211
|
+
"gravatar_id": "",
|
|
209212
|
+
"url": "https://api.github.com/users/octocat",
|
|
209213
|
+
"html_url": "https://github.com/octocat",
|
|
209214
|
+
"followers_url": "https://api.github.com/users/octocat/followers",
|
|
209215
|
+
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
|
|
209216
|
+
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
|
|
209217
|
+
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
|
|
209218
|
+
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
|
|
209219
|
+
"organizations_url": "https://api.github.com/users/octocat/orgs",
|
|
209220
|
+
"repos_url": "https://api.github.com/users/octocat/repos",
|
|
209221
|
+
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
|
|
209222
|
+
"received_events_url": "https://api.github.com/users/octocat/received_events",
|
|
209223
|
+
"type": "User",
|
|
209224
|
+
"site_admin": false
|
|
209225
|
+
},
|
|
209226
|
+
"content_type": "application/zip",
|
|
209227
|
+
"size": 1024,
|
|
209228
|
+
"created_at": "2022-09-12T12:14:32Z",
|
|
209229
|
+
"updated_at": "2022-09-12T12:14:32Z",
|
|
209230
|
+
"url": "https://api.github.com/repos/octocat/Hello-World/code-scanning/codeql/databases/java"
|
|
209231
|
+
},
|
|
209232
|
+
{
|
|
209233
|
+
"id": 2,
|
|
209234
|
+
"name": "database.zip",
|
|
209235
|
+
"language": "ruby",
|
|
209236
|
+
"uploader": {
|
|
209237
|
+
"login": "octocat",
|
|
209238
|
+
"id": 1,
|
|
209239
|
+
"node_id": "MDQ6VXNlcjE=",
|
|
209240
|
+
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
|
209241
|
+
"gravatar_id": "",
|
|
209242
|
+
"url": "https://api.github.com/users/octocat",
|
|
209243
|
+
"html_url": "https://github.com/octocat",
|
|
209244
|
+
"followers_url": "https://api.github.com/users/octocat/followers",
|
|
209245
|
+
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
|
|
209246
|
+
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
|
|
209247
|
+
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
|
|
209248
|
+
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
|
|
209249
|
+
"organizations_url": "https://api.github.com/users/octocat/orgs",
|
|
209250
|
+
"repos_url": "https://api.github.com/users/octocat/repos",
|
|
209251
|
+
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
|
|
209252
|
+
"received_events_url": "https://api.github.com/users/octocat/received_events",
|
|
209253
|
+
"type": "User",
|
|
209254
|
+
"site_admin": false
|
|
209255
|
+
},
|
|
209256
|
+
"content_type": "application/zip",
|
|
209257
|
+
"size": 1024,
|
|
209258
|
+
"created_at": "2022-09-12T12:14:32Z",
|
|
209259
|
+
"updated_at": "2022-09-12T12:14:32Z",
|
|
209260
|
+
"url": "https://api.github.com/repos/octocat/Hello-World/code-scanning/codeql/databases/ruby"
|
|
209261
|
+
}
|
|
209262
|
+
]
|
|
209263
|
+
}
|
|
209264
|
+
}
|
|
209265
|
+
}
|
|
209266
|
+
}
|
|
209267
|
+
},
|
|
209268
|
+
"403": {
|
|
209269
|
+
"description": "Response if GitHub Advanced Security is not enabled for this repository",
|
|
209270
|
+
"content": {
|
|
209271
|
+
"application/json": {
|
|
209272
|
+
"schema": {
|
|
209273
|
+
"title": "Basic Error",
|
|
209274
|
+
"description": "Basic Error",
|
|
209275
|
+
"type": "object",
|
|
209276
|
+
"properties": {
|
|
209277
|
+
"message": {
|
|
209278
|
+
"type": "string"
|
|
209279
|
+
},
|
|
209280
|
+
"documentation_url": {
|
|
209281
|
+
"type": "string"
|
|
209282
|
+
},
|
|
209283
|
+
"url": {
|
|
209284
|
+
"type": "string"
|
|
209285
|
+
},
|
|
209286
|
+
"status": {
|
|
209287
|
+
"type": "string"
|
|
209288
|
+
}
|
|
209289
|
+
}
|
|
209290
|
+
}
|
|
209291
|
+
}
|
|
209292
|
+
}
|
|
209293
|
+
},
|
|
209294
|
+
"404": {
|
|
209295
|
+
"description": "Resource not found",
|
|
209296
|
+
"content": {
|
|
209297
|
+
"application/json": {
|
|
209298
|
+
"schema": {
|
|
209299
|
+
"title": "Basic Error",
|
|
209300
|
+
"description": "Basic Error",
|
|
209301
|
+
"type": "object",
|
|
209302
|
+
"properties": {
|
|
209303
|
+
"message": {
|
|
209304
|
+
"type": "string"
|
|
209305
|
+
},
|
|
209306
|
+
"documentation_url": {
|
|
209307
|
+
"type": "string"
|
|
209308
|
+
},
|
|
209309
|
+
"url": {
|
|
209310
|
+
"type": "string"
|
|
209311
|
+
},
|
|
209312
|
+
"status": {
|
|
209313
|
+
"type": "string"
|
|
209314
|
+
}
|
|
209315
|
+
}
|
|
209316
|
+
}
|
|
209317
|
+
}
|
|
209318
|
+
}
|
|
209319
|
+
},
|
|
209320
|
+
"503": {
|
|
209321
|
+
"description": "Service unavailable",
|
|
209322
|
+
"content": {
|
|
209323
|
+
"application/json": {
|
|
209324
|
+
"schema": {
|
|
209325
|
+
"type": "object",
|
|
209326
|
+
"properties": {
|
|
209327
|
+
"code": {
|
|
209328
|
+
"type": "string"
|
|
209329
|
+
},
|
|
209330
|
+
"message": {
|
|
209331
|
+
"type": "string"
|
|
209332
|
+
},
|
|
209333
|
+
"documentation_url": {
|
|
209334
|
+
"type": "string"
|
|
209335
|
+
}
|
|
209336
|
+
}
|
|
209337
|
+
}
|
|
209338
|
+
}
|
|
209339
|
+
}
|
|
209340
|
+
}
|
|
209341
|
+
},
|
|
209342
|
+
"x-github": {
|
|
209343
|
+
"githubCloudOnly": true,
|
|
209344
|
+
"enabledForGitHubApps": true,
|
|
209345
|
+
"previews": [],
|
|
209346
|
+
"category": "code-scanning",
|
|
209347
|
+
"subcategory": null
|
|
209348
|
+
},
|
|
209349
|
+
"x-octokit": {}
|
|
209350
|
+
}
|
|
209351
|
+
},
|
|
209352
|
+
"/repos/{owner}/{repo}/code-scanning/codeql/databases/{language}": {
|
|
209353
|
+
"get": {
|
|
209354
|
+
"summary": "Get a CodeQL database for a repository",
|
|
209355
|
+
"description": "Gets a CodeQL database for a language in a repository.\n\nBy default this endpoint returns JSON metadata about the CodeQL database. To\ndownload the CodeQL database binary content, set the `Accept` header of the request\nto [`application/zip`](https://docs.github.com/rest/overview/media-types), and make sure\nyour HTTP client is configured to follow redirects or use the `Location` header\nto make a second request to get the redirect URL.\n\nFor private repositories, you must use an access token with the `security_events` scope.\nFor public repositories, you can use tokens with the `security_events` or `public_repo` scope.\nGitHub Apps must have the `contents` read permission to use this endpoint.",
|
|
209356
|
+
"tags": [
|
|
209357
|
+
"code-scanning"
|
|
209358
|
+
],
|
|
209359
|
+
"operationId": "code-scanning/get-codeql-database",
|
|
209360
|
+
"externalDocs": {
|
|
209361
|
+
"description": "API method documentation",
|
|
209362
|
+
"url": "https://docs.github.com/rest/reference/code-scanning#get-codeql-database"
|
|
209363
|
+
},
|
|
209364
|
+
"parameters": [
|
|
209365
|
+
{
|
|
209366
|
+
"name": "owner",
|
|
209367
|
+
"description": "The account owner of the repository. The name is not case sensitive.",
|
|
209368
|
+
"in": "path",
|
|
209369
|
+
"required": true,
|
|
209370
|
+
"schema": {
|
|
209371
|
+
"type": "string"
|
|
209372
|
+
}
|
|
209373
|
+
},
|
|
209374
|
+
{
|
|
209375
|
+
"name": "repo",
|
|
209376
|
+
"description": "The name of the repository. The name is not case sensitive.",
|
|
209377
|
+
"in": "path",
|
|
209378
|
+
"required": true,
|
|
209379
|
+
"schema": {
|
|
209380
|
+
"type": "string"
|
|
209381
|
+
}
|
|
209382
|
+
},
|
|
209383
|
+
{
|
|
209384
|
+
"name": "language",
|
|
209385
|
+
"in": "path",
|
|
209386
|
+
"description": "The language of the CodeQL database.",
|
|
209387
|
+
"schema": {
|
|
209388
|
+
"type": "string"
|
|
209389
|
+
},
|
|
209390
|
+
"required": true
|
|
209391
|
+
}
|
|
209392
|
+
],
|
|
209393
|
+
"responses": {
|
|
209394
|
+
"200": {
|
|
209395
|
+
"description": "Response",
|
|
209396
|
+
"content": {
|
|
209397
|
+
"application/json": {
|
|
209398
|
+
"schema": {
|
|
209399
|
+
"title": "CodeQL Database",
|
|
209400
|
+
"description": "A CodeQL database.",
|
|
209401
|
+
"type": "object",
|
|
209402
|
+
"properties": {
|
|
209403
|
+
"id": {
|
|
209404
|
+
"type": "integer",
|
|
209405
|
+
"description": "The ID of the CodeQL database."
|
|
209406
|
+
},
|
|
209407
|
+
"name": {
|
|
209408
|
+
"type": "string",
|
|
209409
|
+
"description": "The name of the CodeQL database."
|
|
209410
|
+
},
|
|
209411
|
+
"language": {
|
|
209412
|
+
"type": "string",
|
|
209413
|
+
"description": "The language of the CodeQL database."
|
|
209414
|
+
},
|
|
209415
|
+
"uploader": {
|
|
209416
|
+
"title": "Simple User",
|
|
209417
|
+
"description": "Simple User",
|
|
209418
|
+
"type": "object",
|
|
209419
|
+
"properties": {
|
|
209420
|
+
"name": {
|
|
209421
|
+
"nullable": true,
|
|
209422
|
+
"type": "string"
|
|
209423
|
+
},
|
|
209424
|
+
"email": {
|
|
209425
|
+
"nullable": true,
|
|
209426
|
+
"type": "string"
|
|
209427
|
+
},
|
|
209428
|
+
"login": {
|
|
209429
|
+
"type": "string",
|
|
209430
|
+
"example": "octocat"
|
|
209431
|
+
},
|
|
209432
|
+
"id": {
|
|
209433
|
+
"type": "integer",
|
|
209434
|
+
"example": 1
|
|
209435
|
+
},
|
|
209436
|
+
"node_id": {
|
|
209437
|
+
"type": "string",
|
|
209438
|
+
"example": "MDQ6VXNlcjE="
|
|
209439
|
+
},
|
|
209440
|
+
"avatar_url": {
|
|
209441
|
+
"type": "string",
|
|
209442
|
+
"format": "uri",
|
|
209443
|
+
"example": "https://github.com/images/error/octocat_happy.gif"
|
|
209444
|
+
},
|
|
209445
|
+
"gravatar_id": {
|
|
209446
|
+
"type": "string",
|
|
209447
|
+
"example": "41d064eb2195891e12d0413f63227ea7",
|
|
209448
|
+
"nullable": true
|
|
209449
|
+
},
|
|
209450
|
+
"url": {
|
|
209451
|
+
"type": "string",
|
|
209452
|
+
"format": "uri",
|
|
209453
|
+
"example": "https://api.github.com/users/octocat"
|
|
209454
|
+
},
|
|
209455
|
+
"html_url": {
|
|
209456
|
+
"type": "string",
|
|
209457
|
+
"format": "uri",
|
|
209458
|
+
"example": "https://github.com/octocat"
|
|
209459
|
+
},
|
|
209460
|
+
"followers_url": {
|
|
209461
|
+
"type": "string",
|
|
209462
|
+
"format": "uri",
|
|
209463
|
+
"example": "https://api.github.com/users/octocat/followers"
|
|
209464
|
+
},
|
|
209465
|
+
"following_url": {
|
|
209466
|
+
"type": "string",
|
|
209467
|
+
"example": "https://api.github.com/users/octocat/following{/other_user}"
|
|
209468
|
+
},
|
|
209469
|
+
"gists_url": {
|
|
209470
|
+
"type": "string",
|
|
209471
|
+
"example": "https://api.github.com/users/octocat/gists{/gist_id}"
|
|
209472
|
+
},
|
|
209473
|
+
"starred_url": {
|
|
209474
|
+
"type": "string",
|
|
209475
|
+
"example": "https://api.github.com/users/octocat/starred{/owner}{/repo}"
|
|
209476
|
+
},
|
|
209477
|
+
"subscriptions_url": {
|
|
209478
|
+
"type": "string",
|
|
209479
|
+
"format": "uri",
|
|
209480
|
+
"example": "https://api.github.com/users/octocat/subscriptions"
|
|
209481
|
+
},
|
|
209482
|
+
"organizations_url": {
|
|
209483
|
+
"type": "string",
|
|
209484
|
+
"format": "uri",
|
|
209485
|
+
"example": "https://api.github.com/users/octocat/orgs"
|
|
209486
|
+
},
|
|
209487
|
+
"repos_url": {
|
|
209488
|
+
"type": "string",
|
|
209489
|
+
"format": "uri",
|
|
209490
|
+
"example": "https://api.github.com/users/octocat/repos"
|
|
209491
|
+
},
|
|
209492
|
+
"events_url": {
|
|
209493
|
+
"type": "string",
|
|
209494
|
+
"example": "https://api.github.com/users/octocat/events{/privacy}"
|
|
209495
|
+
},
|
|
209496
|
+
"received_events_url": {
|
|
209497
|
+
"type": "string",
|
|
209498
|
+
"format": "uri",
|
|
209499
|
+
"example": "https://api.github.com/users/octocat/received_events"
|
|
209500
|
+
},
|
|
209501
|
+
"type": {
|
|
209502
|
+
"type": "string",
|
|
209503
|
+
"example": "User"
|
|
209504
|
+
},
|
|
209505
|
+
"site_admin": {
|
|
209506
|
+
"type": "boolean"
|
|
209507
|
+
},
|
|
209508
|
+
"starred_at": {
|
|
209509
|
+
"type": "string",
|
|
209510
|
+
"example": "\"2020-07-09T00:17:55Z\""
|
|
209511
|
+
}
|
|
209512
|
+
},
|
|
209513
|
+
"required": [
|
|
209514
|
+
"avatar_url",
|
|
209515
|
+
"events_url",
|
|
209516
|
+
"followers_url",
|
|
209517
|
+
"following_url",
|
|
209518
|
+
"gists_url",
|
|
209519
|
+
"gravatar_id",
|
|
209520
|
+
"html_url",
|
|
209521
|
+
"id",
|
|
209522
|
+
"node_id",
|
|
209523
|
+
"login",
|
|
209524
|
+
"organizations_url",
|
|
209525
|
+
"received_events_url",
|
|
209526
|
+
"repos_url",
|
|
209527
|
+
"site_admin",
|
|
209528
|
+
"starred_url",
|
|
209529
|
+
"subscriptions_url",
|
|
209530
|
+
"type",
|
|
209531
|
+
"url"
|
|
209532
|
+
]
|
|
209533
|
+
},
|
|
209534
|
+
"content_type": {
|
|
209535
|
+
"type": "string",
|
|
209536
|
+
"description": "The MIME type of the CodeQL database file."
|
|
209537
|
+
},
|
|
209538
|
+
"size": {
|
|
209539
|
+
"type": "integer",
|
|
209540
|
+
"description": "The size of the CodeQL database file in bytes."
|
|
209541
|
+
},
|
|
209542
|
+
"created_at": {
|
|
209543
|
+
"type": "string",
|
|
209544
|
+
"format": "date-time",
|
|
209545
|
+
"description": "The date and time at which the CodeQL database was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ."
|
|
209546
|
+
},
|
|
209547
|
+
"updated_at": {
|
|
209548
|
+
"type": "string",
|
|
209549
|
+
"format": "date-time",
|
|
209550
|
+
"description": "The date and time at which the CodeQL database was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ."
|
|
209551
|
+
},
|
|
209552
|
+
"url": {
|
|
209553
|
+
"type": "string",
|
|
209554
|
+
"format": "uri",
|
|
209555
|
+
"description": "The URL at which to download the CodeQL database. The `Accept` header must be set to the value of the `content_type` property."
|
|
209556
|
+
}
|
|
209557
|
+
},
|
|
209558
|
+
"required": [
|
|
209559
|
+
"id",
|
|
209560
|
+
"name",
|
|
209561
|
+
"language",
|
|
209562
|
+
"uploader",
|
|
209563
|
+
"content_type",
|
|
209564
|
+
"size",
|
|
209565
|
+
"created_at",
|
|
209566
|
+
"updated_at",
|
|
209567
|
+
"url"
|
|
209568
|
+
]
|
|
209569
|
+
},
|
|
209570
|
+
"examples": {
|
|
209571
|
+
"default": {
|
|
209572
|
+
"value": {
|
|
209573
|
+
"id": 1,
|
|
209574
|
+
"name": "database.zip",
|
|
209575
|
+
"language": "java",
|
|
209576
|
+
"uploader": {
|
|
209577
|
+
"login": "octocat",
|
|
209578
|
+
"id": 1,
|
|
209579
|
+
"node_id": "MDQ6VXNlcjE=",
|
|
209580
|
+
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
|
209581
|
+
"gravatar_id": "",
|
|
209582
|
+
"url": "https://api.github.com/users/octocat",
|
|
209583
|
+
"html_url": "https://github.com/octocat",
|
|
209584
|
+
"followers_url": "https://api.github.com/users/octocat/followers",
|
|
209585
|
+
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
|
|
209586
|
+
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
|
|
209587
|
+
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
|
|
209588
|
+
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
|
|
209589
|
+
"organizations_url": "https://api.github.com/users/octocat/orgs",
|
|
209590
|
+
"repos_url": "https://api.github.com/users/octocat/repos",
|
|
209591
|
+
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
|
|
209592
|
+
"received_events_url": "https://api.github.com/users/octocat/received_events",
|
|
209593
|
+
"type": "User",
|
|
209594
|
+
"site_admin": false
|
|
209595
|
+
},
|
|
209596
|
+
"content_type": "application/zip",
|
|
209597
|
+
"size": 1024,
|
|
209598
|
+
"created_at": "2022-09-12T12:14:32Z",
|
|
209599
|
+
"updated_at": "2022-09-12T12:14:32Z",
|
|
209600
|
+
"url": "https://api.github.com/repos/octocat/Hello-World/code-scanning/codeql/databases/java"
|
|
209601
|
+
}
|
|
209602
|
+
}
|
|
209603
|
+
}
|
|
209604
|
+
}
|
|
209605
|
+
}
|
|
209606
|
+
},
|
|
209607
|
+
"302": {
|
|
209608
|
+
"description": "Found"
|
|
209609
|
+
},
|
|
209610
|
+
"403": {
|
|
209611
|
+
"description": "Response if GitHub Advanced Security is not enabled for this repository",
|
|
209612
|
+
"content": {
|
|
209613
|
+
"application/json": {
|
|
209614
|
+
"schema": {
|
|
209615
|
+
"title": "Basic Error",
|
|
209616
|
+
"description": "Basic Error",
|
|
209617
|
+
"type": "object",
|
|
209618
|
+
"properties": {
|
|
209619
|
+
"message": {
|
|
209620
|
+
"type": "string"
|
|
209621
|
+
},
|
|
209622
|
+
"documentation_url": {
|
|
209623
|
+
"type": "string"
|
|
209624
|
+
},
|
|
209625
|
+
"url": {
|
|
209626
|
+
"type": "string"
|
|
209627
|
+
},
|
|
209628
|
+
"status": {
|
|
209629
|
+
"type": "string"
|
|
209630
|
+
}
|
|
209631
|
+
}
|
|
209632
|
+
}
|
|
209633
|
+
}
|
|
209634
|
+
}
|
|
209635
|
+
},
|
|
209636
|
+
"404": {
|
|
209637
|
+
"description": "Resource not found",
|
|
209638
|
+
"content": {
|
|
209639
|
+
"application/json": {
|
|
209640
|
+
"schema": {
|
|
209641
|
+
"title": "Basic Error",
|
|
209642
|
+
"description": "Basic Error",
|
|
209643
|
+
"type": "object",
|
|
209644
|
+
"properties": {
|
|
209645
|
+
"message": {
|
|
209646
|
+
"type": "string"
|
|
209647
|
+
},
|
|
209648
|
+
"documentation_url": {
|
|
209649
|
+
"type": "string"
|
|
209650
|
+
},
|
|
209651
|
+
"url": {
|
|
209652
|
+
"type": "string"
|
|
209653
|
+
},
|
|
209654
|
+
"status": {
|
|
209655
|
+
"type": "string"
|
|
209656
|
+
}
|
|
209657
|
+
}
|
|
209658
|
+
}
|
|
209659
|
+
}
|
|
209660
|
+
}
|
|
209661
|
+
},
|
|
209662
|
+
"503": {
|
|
209663
|
+
"description": "Service unavailable",
|
|
209664
|
+
"content": {
|
|
209665
|
+
"application/json": {
|
|
209666
|
+
"schema": {
|
|
209667
|
+
"type": "object",
|
|
209668
|
+
"properties": {
|
|
209669
|
+
"code": {
|
|
209670
|
+
"type": "string"
|
|
209671
|
+
},
|
|
209672
|
+
"message": {
|
|
209673
|
+
"type": "string"
|
|
209674
|
+
},
|
|
209675
|
+
"documentation_url": {
|
|
209676
|
+
"type": "string"
|
|
209677
|
+
}
|
|
209678
|
+
}
|
|
209679
|
+
}
|
|
209680
|
+
}
|
|
209681
|
+
}
|
|
209682
|
+
}
|
|
209683
|
+
},
|
|
209684
|
+
"x-github": {
|
|
209685
|
+
"githubCloudOnly": true,
|
|
209686
|
+
"enabledForGitHubApps": true,
|
|
209687
|
+
"previews": [],
|
|
209688
|
+
"category": "code-scanning",
|
|
209689
|
+
"subcategory": null
|
|
209690
|
+
},
|
|
209691
|
+
"x-octokit": {}
|
|
209692
|
+
}
|
|
209693
|
+
},
|
|
208987
209694
|
"/repos/{owner}/{repo}/code-scanning/sarifs": {
|
|
208988
209695
|
"post": {
|
|
208989
209696
|
"summary": "Upload an analysis as SARIF data",
|
|
@@ -209109,7 +209816,7 @@
|
|
|
209109
209816
|
"description": "Bad Request if the sarif field is invalid"
|
|
209110
209817
|
},
|
|
209111
209818
|
"403": {
|
|
209112
|
-
"description": "Response if the repository is archived or if
|
|
209819
|
+
"description": "Response if the repository is archived or if GitHub Advanced Security is not enabled for this repository",
|
|
209113
209820
|
"content": {
|
|
209114
209821
|
"application/json": {
|
|
209115
209822
|
"schema": {
|
|
@@ -240516,7 +241223,7 @@
|
|
|
240516
241223
|
},
|
|
240517
241224
|
"put": {
|
|
240518
241225
|
"summary": "Create or update file contents",
|
|
240519
|
-
"description": "Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint.",
|
|
241226
|
+
"description": "Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint.\n\n**Note:** If you use this endpoint and the \"[Delete a file](https://docs.github.com/rest/reference/repos/#delete-file)\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.",
|
|
240520
241227
|
"tags": [
|
|
240521
241228
|
"repos"
|
|
240522
241229
|
],
|
|
@@ -241221,7 +241928,7 @@
|
|
|
241221
241928
|
},
|
|
241222
241929
|
"delete": {
|
|
241223
241930
|
"summary": "Delete a file",
|
|
241224
|
-
"description": "Deletes a file in a repository.\n\nYou can provide an additional `committer` parameter, which is an object containing information about the committer. Or, you can provide an `author` parameter, which is an object containing information about the author.\n\nThe `author` section is optional and is filled in with the `committer` information if omitted. If the `committer` information is omitted, the authenticated user's information is used.\n\nYou must provide values for both `name` and `email`, whether you choose to use `author` or `committer`. Otherwise, you'll receive a `422` status code.",
|
|
241931
|
+
"description": "Deletes a file in a repository.\n\nYou can provide an additional `committer` parameter, which is an object containing information about the committer. Or, you can provide an `author` parameter, which is an object containing information about the author.\n\nThe `author` section is optional and is filled in with the `committer` information if omitted. If the `committer` information is omitted, the authenticated user's information is used.\n\nYou must provide values for both `name` and `email`, whether you choose to use `author` or `committer`. Otherwise, you'll receive a `422` status code.\n\n**Note:** If you use this endpoint and the \"[Create or update file contents](https://docs.github.com/rest/reference/repos/#create-or-update-file-contents)\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.",
|
|
241225
241932
|
"tags": [
|
|
241226
241933
|
"repos"
|
|
241227
241934
|
],
|