@octokit/openapi 6.3.0 → 6.5.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 +89 -9
- package/generated/api.github.com.json +85 -10
- 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 +50 -3
- package/generated/ghes-3.2-diff-to-ghes-3.3.json +53 -3
- package/generated/ghes-3.2.deref.json +61 -5
- package/generated/ghes-3.2.json +64 -5
- package/generated/ghes-3.3-anicca-diff-to-ghes-3.4.deref.json +8 -4
- package/generated/ghes-3.3-diff-to-ghes-3.4.deref.json +1 -1
- package/generated/ghes-3.3-diff-to-ghes-3.4.json +1 -1
- package/generated/ghes-3.3.deref.json +61 -5
- package/generated/ghes-3.3.json +64 -5
- 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 +73 -9
- package/generated/ghes-3.4.json +68 -9
- package/generated/ghes-3.5-anicca-diff-to-api.github.com.deref.json +38 -23
- package/generated/ghes-3.5-diff-to-api.github.com.deref.json +220 -574
- package/generated/ghes-3.5-diff-to-api.github.com.json +147 -263
- package/generated/ghes-3.5.deref.json +75 -11
- package/generated/ghes-3.5.json +72 -13
- package/generated/github.ae-anicca-diff-to-api.github.com.deref.json +41 -3
- package/generated/github.ae-diff-to-api.github.com.deref.json +220 -1
- package/generated/github.ae-diff-to-api.github.com.json +147 -1
- package/generated/github.ae.deref.json +60 -4
- package/generated/github.ae.json +65 -4
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.5.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": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
|
|
@@ -4802,6 +4802,58 @@
|
|
|
4802
4802
|
}
|
|
4803
4803
|
}
|
|
4804
4804
|
},
|
|
4805
|
+
"/rate_limit": {
|
|
4806
|
+
"get": {
|
|
4807
|
+
"summary": "Get rate limit status for the authenticated user",
|
|
4808
|
+
"description": "**Note:** Accessing this endpoint does not count against your REST API rate limit.\n\n**Note:** The `rate` object is deprecated. If you're writing new API client code or updating existing code, you should use the `core` object instead of the `rate` object. The `core` object contains the same information that is present in the `rate` object.",
|
|
4809
|
+
"tags": ["rate-limit"],
|
|
4810
|
+
"operationId": "rate-limit/get",
|
|
4811
|
+
"externalDocs": {
|
|
4812
|
+
"description": "API method documentation",
|
|
4813
|
+
"url": "https://docs.github.com/enterprise-server@3.5/rest/reference/rate-limit#get-rate-limit-status-for-the-authenticated-user"
|
|
4814
|
+
},
|
|
4815
|
+
"parameters": [],
|
|
4816
|
+
"responses": {
|
|
4817
|
+
"200": {
|
|
4818
|
+
"description": "Response",
|
|
4819
|
+
"content": {
|
|
4820
|
+
"application/json": {
|
|
4821
|
+
"schema": {
|
|
4822
|
+
"$ref": "#/components/schemas/rate-limit-overview"
|
|
4823
|
+
},
|
|
4824
|
+
"examples": {
|
|
4825
|
+
"default": {
|
|
4826
|
+
"$ref": "#/components/examples/rate-limit-overview"
|
|
4827
|
+
}
|
|
4828
|
+
}
|
|
4829
|
+
}
|
|
4830
|
+
},
|
|
4831
|
+
"headers": {
|
|
4832
|
+
"X-RateLimit-Limit": {
|
|
4833
|
+
"$ref": "#/components/headers/x-rate-limit-limit"
|
|
4834
|
+
},
|
|
4835
|
+
"X-RateLimit-Remaining": {
|
|
4836
|
+
"$ref": "#/components/headers/x-rate-limit-remaining"
|
|
4837
|
+
},
|
|
4838
|
+
"X-RateLimit-Reset": {
|
|
4839
|
+
"$ref": "#/components/headers/x-rate-limit-reset"
|
|
4840
|
+
}
|
|
4841
|
+
}
|
|
4842
|
+
},
|
|
4843
|
+
"304": { "$ref": "#/components/responses/not_modified" },
|
|
4844
|
+
"404": { "$ref": "#/components/responses/not_found" }
|
|
4845
|
+
},
|
|
4846
|
+
"x-github": {
|
|
4847
|
+
"githubCloudOnly": false,
|
|
4848
|
+
"enabledForGitHubApps": true,
|
|
4849
|
+
"category": "rate-limit",
|
|
4850
|
+
"subcategory": null
|
|
4851
|
+
},
|
|
4852
|
+
"x-octokit": {
|
|
4853
|
+
"diff": { "api.github.com.json": { "type": "changed" } }
|
|
4854
|
+
}
|
|
4855
|
+
}
|
|
4856
|
+
},
|
|
4805
4857
|
"/repos/{owner}/{repo}": {
|
|
4806
4858
|
"get": {
|
|
4807
4859
|
"summary": "Get a repository",
|
|
@@ -5963,83 +6015,6 @@
|
|
|
5963
6015
|
}
|
|
5964
6016
|
}
|
|
5965
6017
|
},
|
|
5966
|
-
"/repos/{owner}/{repo}/code-scanning/alerts": {
|
|
5967
|
-
"get": {
|
|
5968
|
-
"summary": "List code scanning alerts for a repository",
|
|
5969
|
-
"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 with private repos, the `public_repo` scope also grants permission to read\nsecurity events on public repos only. GitHub Apps must have the `security_events` read\npermission to use this 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).",
|
|
5970
|
-
"tags": ["code-scanning"],
|
|
5971
|
-
"operationId": "code-scanning/list-alerts-for-repo",
|
|
5972
|
-
"externalDocs": {
|
|
5973
|
-
"description": "API method documentation",
|
|
5974
|
-
"url": "https://docs.github.com/enterprise-server@3.5/rest/reference/code-scanning#list-code-scanning-alerts-for-a-repository"
|
|
5975
|
-
},
|
|
5976
|
-
"parameters": [
|
|
5977
|
-
{ "$ref": "#/components/parameters/owner" },
|
|
5978
|
-
{ "$ref": "#/components/parameters/repo" },
|
|
5979
|
-
{ "$ref": "#/components/parameters/tool-name" },
|
|
5980
|
-
{ "$ref": "#/components/parameters/tool-guid" },
|
|
5981
|
-
{ "$ref": "#/components/parameters/page" },
|
|
5982
|
-
{ "$ref": "#/components/parameters/per-page" },
|
|
5983
|
-
{ "$ref": "#/components/parameters/git-ref" },
|
|
5984
|
-
{ "$ref": "#/components/parameters/direction" },
|
|
5985
|
-
{
|
|
5986
|
-
"name": "sort",
|
|
5987
|
-
"description": "The property by which to sort the results.",
|
|
5988
|
-
"in": "query",
|
|
5989
|
-
"required": false,
|
|
5990
|
-
"schema": {
|
|
5991
|
-
"type": "string",
|
|
5992
|
-
"enum": ["created", "updated", "number"],
|
|
5993
|
-
"default": "number"
|
|
5994
|
-
}
|
|
5995
|
-
},
|
|
5996
|
-
{
|
|
5997
|
-
"name": "state",
|
|
5998
|
-
"description": "Set to `open`, `closed, `fixed`, or `dismissed` to list code scanning alerts in a specific state.",
|
|
5999
|
-
"in": "query",
|
|
6000
|
-
"required": false,
|
|
6001
|
-
"schema": {
|
|
6002
|
-
"$ref": "#/components/schemas/code-scanning-alert-state"
|
|
6003
|
-
}
|
|
6004
|
-
}
|
|
6005
|
-
],
|
|
6006
|
-
"responses": {
|
|
6007
|
-
"200": {
|
|
6008
|
-
"description": "Response",
|
|
6009
|
-
"content": {
|
|
6010
|
-
"application/json": {
|
|
6011
|
-
"schema": {
|
|
6012
|
-
"type": "array",
|
|
6013
|
-
"items": {
|
|
6014
|
-
"$ref": "#/components/schemas/code-scanning-alert-items"
|
|
6015
|
-
}
|
|
6016
|
-
},
|
|
6017
|
-
"examples": {
|
|
6018
|
-
"default": {
|
|
6019
|
-
"$ref": "#/components/examples/code-scanning-alert-items"
|
|
6020
|
-
}
|
|
6021
|
-
}
|
|
6022
|
-
}
|
|
6023
|
-
}
|
|
6024
|
-
},
|
|
6025
|
-
"304": { "$ref": "#/components/responses/not_modified" },
|
|
6026
|
-
"403": {
|
|
6027
|
-
"$ref": "#/components/responses/code_scanning_forbidden_read"
|
|
6028
|
-
},
|
|
6029
|
-
"404": { "$ref": "#/components/responses/not_found" },
|
|
6030
|
-
"503": { "$ref": "#/components/responses/service_unavailable" }
|
|
6031
|
-
},
|
|
6032
|
-
"x-github": {
|
|
6033
|
-
"githubCloudOnly": false,
|
|
6034
|
-
"enabledForGitHubApps": true,
|
|
6035
|
-
"category": "code-scanning",
|
|
6036
|
-
"subcategory": null
|
|
6037
|
-
},
|
|
6038
|
-
"x-octokit": {
|
|
6039
|
-
"diff": { "api.github.com.json": { "type": "changed" } }
|
|
6040
|
-
}
|
|
6041
|
-
}
|
|
6042
|
-
},
|
|
6043
6018
|
"/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}": {
|
|
6044
6019
|
"get": {
|
|
6045
6020
|
"summary": "Get a code scanning alert",
|
|
@@ -11351,13 +11326,6 @@
|
|
|
11351
11326
|
"required": true,
|
|
11352
11327
|
"schema": { "type": "integer" }
|
|
11353
11328
|
},
|
|
11354
|
-
"git-ref": {
|
|
11355
|
-
"name": "ref",
|
|
11356
|
-
"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`.",
|
|
11357
|
-
"in": "query",
|
|
11358
|
-
"required": false,
|
|
11359
|
-
"schema": { "$ref": "#/components/schemas/code-scanning-ref" }
|
|
11360
|
-
},
|
|
11361
11329
|
"alert-number": {
|
|
11362
11330
|
"name": "alert_number",
|
|
11363
11331
|
"in": "path",
|
|
@@ -14716,6 +14684,35 @@
|
|
|
14716
14684
|
"updated_at"
|
|
14717
14685
|
]
|
|
14718
14686
|
},
|
|
14687
|
+
"rate-limit-overview": {
|
|
14688
|
+
"title": "Rate Limit Overview",
|
|
14689
|
+
"description": "Rate Limit Overview",
|
|
14690
|
+
"type": "object",
|
|
14691
|
+
"properties": {
|
|
14692
|
+
"resources": {
|
|
14693
|
+
"type": "object",
|
|
14694
|
+
"properties": {
|
|
14695
|
+
"core": { "$ref": "#/components/schemas/rate-limit" },
|
|
14696
|
+
"graphql": { "$ref": "#/components/schemas/rate-limit" },
|
|
14697
|
+
"search": { "$ref": "#/components/schemas/rate-limit" },
|
|
14698
|
+
"source_import": { "$ref": "#/components/schemas/rate-limit" },
|
|
14699
|
+
"integration_manifest": {
|
|
14700
|
+
"$ref": "#/components/schemas/rate-limit"
|
|
14701
|
+
},
|
|
14702
|
+
"code_scanning_upload": {
|
|
14703
|
+
"$ref": "#/components/schemas/rate-limit"
|
|
14704
|
+
},
|
|
14705
|
+
"actions_runner_registration": {
|
|
14706
|
+
"$ref": "#/components/schemas/rate-limit"
|
|
14707
|
+
},
|
|
14708
|
+
"scim": { "$ref": "#/components/schemas/rate-limit" }
|
|
14709
|
+
},
|
|
14710
|
+
"required": ["core", "search"]
|
|
14711
|
+
},
|
|
14712
|
+
"rate": { "$ref": "#/components/schemas/rate-limit" }
|
|
14713
|
+
},
|
|
14714
|
+
"required": ["rate", "resources"]
|
|
14715
|
+
},
|
|
14719
14716
|
"full-repository": {
|
|
14720
14717
|
"title": "Full Repository",
|
|
14721
14718
|
"description": "Full Repository",
|
|
@@ -15422,55 +15419,6 @@
|
|
|
15422
15419
|
"repository": { "$ref": "#/components/schemas/minimal-repository" }
|
|
15423
15420
|
}
|
|
15424
15421
|
},
|
|
15425
|
-
"code-scanning-alert-items": {
|
|
15426
|
-
"type": "object",
|
|
15427
|
-
"properties": {
|
|
15428
|
-
"number": { "$ref": "#/components/schemas/alert-number" },
|
|
15429
|
-
"created_at": { "$ref": "#/components/schemas/alert-created-at" },
|
|
15430
|
-
"updated_at": { "$ref": "#/components/schemas/alert-updated-at" },
|
|
15431
|
-
"url": { "$ref": "#/components/schemas/alert-url" },
|
|
15432
|
-
"html_url": { "$ref": "#/components/schemas/alert-html-url" },
|
|
15433
|
-
"instances_url": {
|
|
15434
|
-
"$ref": "#/components/schemas/alert-instances-url"
|
|
15435
|
-
},
|
|
15436
|
-
"state": { "$ref": "#/components/schemas/code-scanning-alert-state" },
|
|
15437
|
-
"fixed_at": {
|
|
15438
|
-
"$ref": "#/components/schemas/code-scanning-alert-fixed-at"
|
|
15439
|
-
},
|
|
15440
|
-
"dismissed_by": {
|
|
15441
|
-
"$ref": "#/components/schemas/nullable-simple-user"
|
|
15442
|
-
},
|
|
15443
|
-
"dismissed_at": {
|
|
15444
|
-
"$ref": "#/components/schemas/code-scanning-alert-dismissed-at"
|
|
15445
|
-
},
|
|
15446
|
-
"dismissed_reason": {
|
|
15447
|
-
"$ref": "#/components/schemas/code-scanning-alert-dismissed-reason"
|
|
15448
|
-
},
|
|
15449
|
-
"rule": {
|
|
15450
|
-
"$ref": "#/components/schemas/code-scanning-alert-rule-summary"
|
|
15451
|
-
},
|
|
15452
|
-
"tool": {
|
|
15453
|
-
"$ref": "#/components/schemas/code-scanning-analysis-tool"
|
|
15454
|
-
},
|
|
15455
|
-
"most_recent_instance": {
|
|
15456
|
-
"$ref": "#/components/schemas/code-scanning-alert-instance"
|
|
15457
|
-
}
|
|
15458
|
-
},
|
|
15459
|
-
"required": [
|
|
15460
|
-
"number",
|
|
15461
|
-
"created_at",
|
|
15462
|
-
"url",
|
|
15463
|
-
"html_url",
|
|
15464
|
-
"instances_url",
|
|
15465
|
-
"state",
|
|
15466
|
-
"dismissed_by",
|
|
15467
|
-
"dismissed_at",
|
|
15468
|
-
"dismissed_reason",
|
|
15469
|
-
"rule",
|
|
15470
|
-
"tool",
|
|
15471
|
-
"most_recent_instance"
|
|
15472
|
-
]
|
|
15473
|
-
},
|
|
15474
15422
|
"code-scanning-alert": {
|
|
15475
15423
|
"type": "object",
|
|
15476
15424
|
"properties": {
|
|
@@ -18374,6 +18322,17 @@
|
|
|
18374
18322
|
],
|
|
18375
18323
|
"nullable": true
|
|
18376
18324
|
},
|
|
18325
|
+
"rate-limit": {
|
|
18326
|
+
"title": "Rate Limit",
|
|
18327
|
+
"type": "object",
|
|
18328
|
+
"properties": {
|
|
18329
|
+
"limit": { "type": "integer" },
|
|
18330
|
+
"remaining": { "type": "integer" },
|
|
18331
|
+
"reset": { "type": "integer" },
|
|
18332
|
+
"used": { "type": "integer" }
|
|
18333
|
+
},
|
|
18334
|
+
"required": ["limit", "remaining", "reset", "used"]
|
|
18335
|
+
},
|
|
18377
18336
|
"code-of-conduct-simple": {
|
|
18378
18337
|
"title": "Code Of Conduct Simple",
|
|
18379
18338
|
"description": "Code of Conduct Simple",
|
|
@@ -18538,36 +18497,6 @@
|
|
|
18538
18497
|
"committer"
|
|
18539
18498
|
]
|
|
18540
18499
|
},
|
|
18541
|
-
"code-scanning-alert-rule-summary": {
|
|
18542
|
-
"type": "object",
|
|
18543
|
-
"properties": {
|
|
18544
|
-
"id": {
|
|
18545
|
-
"nullable": true,
|
|
18546
|
-
"type": "string",
|
|
18547
|
-
"description": "A unique identifier for the rule used to detect the alert."
|
|
18548
|
-
},
|
|
18549
|
-
"name": {
|
|
18550
|
-
"type": "string",
|
|
18551
|
-
"description": "The name of the rule used to detect the alert."
|
|
18552
|
-
},
|
|
18553
|
-
"tags": {
|
|
18554
|
-
"nullable": true,
|
|
18555
|
-
"type": "array",
|
|
18556
|
-
"description": "A set of tags applicable for the rule.",
|
|
18557
|
-
"items": { "type": "string" }
|
|
18558
|
-
},
|
|
18559
|
-
"severity": {
|
|
18560
|
-
"nullable": true,
|
|
18561
|
-
"type": "string",
|
|
18562
|
-
"description": "The severity of the alert.",
|
|
18563
|
-
"enum": ["none", "note", "warning", "error"]
|
|
18564
|
-
},
|
|
18565
|
-
"description": {
|
|
18566
|
-
"type": "string",
|
|
18567
|
-
"description": "A short description of the rule used to detect the alert."
|
|
18568
|
-
}
|
|
18569
|
-
}
|
|
18570
|
-
},
|
|
18571
18500
|
"nullable-collaborator": {
|
|
18572
18501
|
"title": "Collaborator",
|
|
18573
18502
|
"description": "Collaborator",
|
|
@@ -22599,6 +22528,48 @@
|
|
|
22599
22528
|
"watchers": 1
|
|
22600
22529
|
}
|
|
22601
22530
|
},
|
|
22531
|
+
"rate-limit-overview": {
|
|
22532
|
+
"value": {
|
|
22533
|
+
"resources": {
|
|
22534
|
+
"core": {
|
|
22535
|
+
"limit": 5000,
|
|
22536
|
+
"remaining": 4999,
|
|
22537
|
+
"reset": 1372700873,
|
|
22538
|
+
"used": 1
|
|
22539
|
+
},
|
|
22540
|
+
"search": {
|
|
22541
|
+
"limit": 30,
|
|
22542
|
+
"remaining": 18,
|
|
22543
|
+
"reset": 1372697452,
|
|
22544
|
+
"used": 12
|
|
22545
|
+
},
|
|
22546
|
+
"graphql": {
|
|
22547
|
+
"limit": 5000,
|
|
22548
|
+
"remaining": 4993,
|
|
22549
|
+
"reset": 1372700389,
|
|
22550
|
+
"used": 7
|
|
22551
|
+
},
|
|
22552
|
+
"integration_manifest": {
|
|
22553
|
+
"limit": 5000,
|
|
22554
|
+
"remaining": 4999,
|
|
22555
|
+
"reset": 1551806725,
|
|
22556
|
+
"used": 1
|
|
22557
|
+
},
|
|
22558
|
+
"code_scanning_upload": {
|
|
22559
|
+
"limit": 500,
|
|
22560
|
+
"remaining": 499,
|
|
22561
|
+
"reset": 1551806725,
|
|
22562
|
+
"used": 1
|
|
22563
|
+
}
|
|
22564
|
+
},
|
|
22565
|
+
"rate": {
|
|
22566
|
+
"limit": 5000,
|
|
22567
|
+
"remaining": 4999,
|
|
22568
|
+
"reset": 1372700873,
|
|
22569
|
+
"used": 1
|
|
22570
|
+
}
|
|
22571
|
+
}
|
|
22572
|
+
},
|
|
22602
22573
|
"full-repository-default-response": {
|
|
22603
22574
|
"summary": "Default response",
|
|
22604
22575
|
"value": {
|
|
@@ -24496,105 +24467,6 @@
|
|
|
24496
24467
|
}
|
|
24497
24468
|
}
|
|
24498
24469
|
},
|
|
24499
|
-
"code-scanning-alert-items": {
|
|
24500
|
-
"value": [
|
|
24501
|
-
{
|
|
24502
|
-
"number": 4,
|
|
24503
|
-
"created_at": "2020-02-13T12:29:18Z",
|
|
24504
|
-
"url": "https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/4",
|
|
24505
|
-
"html_url": "https://github.com/octocat/hello-world/code-scanning/4",
|
|
24506
|
-
"state": "open",
|
|
24507
|
-
"fixed_at": null,
|
|
24508
|
-
"dismissed_by": null,
|
|
24509
|
-
"dismissed_at": null,
|
|
24510
|
-
"dismissed_reason": null,
|
|
24511
|
-
"rule": {
|
|
24512
|
-
"id": "js/zipslip",
|
|
24513
|
-
"severity": "error",
|
|
24514
|
-
"tags": ["security", "external/cwe/cwe-022"],
|
|
24515
|
-
"description": "Arbitrary file write during zip extraction",
|
|
24516
|
-
"name": "js/zipslip"
|
|
24517
|
-
},
|
|
24518
|
-
"tool": { "name": "CodeQL", "guid": null, "version": "2.4.0" },
|
|
24519
|
-
"most_recent_instance": {
|
|
24520
|
-
"ref": "refs/heads/main",
|
|
24521
|
-
"analysis_key": ".github/workflows/codeql-analysis.yml:CodeQL-Build",
|
|
24522
|
-
"environment": "{}",
|
|
24523
|
-
"state": "open",
|
|
24524
|
-
"commit_sha": "39406e42cb832f683daa691dd652a8dc36ee8930",
|
|
24525
|
-
"message": {
|
|
24526
|
-
"text": "This path depends on a user-provided value."
|
|
24527
|
-
},
|
|
24528
|
-
"location": {
|
|
24529
|
-
"path": "spec-main/api-session-spec.ts",
|
|
24530
|
-
"start_line": 917,
|
|
24531
|
-
"end_line": 917,
|
|
24532
|
-
"start_column": 7,
|
|
24533
|
-
"end_column": 18
|
|
24534
|
-
},
|
|
24535
|
-
"classifications": ["test"]
|
|
24536
|
-
},
|
|
24537
|
-
"instances_url": "https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/4/instances"
|
|
24538
|
-
},
|
|
24539
|
-
{
|
|
24540
|
-
"number": 3,
|
|
24541
|
-
"created_at": "2020-02-13T12:29:18Z",
|
|
24542
|
-
"url": "https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/3",
|
|
24543
|
-
"html_url": "https://github.com/octocat/hello-world/code-scanning/3",
|
|
24544
|
-
"state": "dismissed",
|
|
24545
|
-
"fixed_at": null,
|
|
24546
|
-
"dismissed_by": {
|
|
24547
|
-
"login": "octocat",
|
|
24548
|
-
"id": 1,
|
|
24549
|
-
"node_id": "MDQ6VXNlcjE=",
|
|
24550
|
-
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
|
|
24551
|
-
"gravatar_id": "",
|
|
24552
|
-
"url": "https://api.github.com/users/octocat",
|
|
24553
|
-
"html_url": "https://github.com/octocat",
|
|
24554
|
-
"followers_url": "https://api.github.com/users/octocat/followers",
|
|
24555
|
-
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
|
|
24556
|
-
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
|
|
24557
|
-
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
|
|
24558
|
-
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
|
|
24559
|
-
"organizations_url": "https://api.github.com/users/octocat/orgs",
|
|
24560
|
-
"repos_url": "https://api.github.com/users/octocat/repos",
|
|
24561
|
-
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
|
|
24562
|
-
"received_events_url": "https://api.github.com/users/octocat/received_events",
|
|
24563
|
-
"type": "User",
|
|
24564
|
-
"site_admin": false
|
|
24565
|
-
},
|
|
24566
|
-
"dismissed_at": "2020-02-14T12:29:18Z",
|
|
24567
|
-
"dismissed_reason": "false positive",
|
|
24568
|
-
"rule": {
|
|
24569
|
-
"id": "js/zipslip",
|
|
24570
|
-
"severity": "error",
|
|
24571
|
-
"tags": ["security", "external/cwe/cwe-022"],
|
|
24572
|
-
"description": "Arbitrary file write during zip extraction",
|
|
24573
|
-
"name": "js/zipslip"
|
|
24574
|
-
},
|
|
24575
|
-
"tool": { "name": "CodeQL", "guid": null, "version": "2.4.0" },
|
|
24576
|
-
"most_recent_instance": {
|
|
24577
|
-
"ref": "refs/heads/main",
|
|
24578
|
-
"analysis_key": ".github/workflows/codeql-analysis.yml:CodeQL-Build",
|
|
24579
|
-
"environment": "{}",
|
|
24580
|
-
"state": "open",
|
|
24581
|
-
"commit_sha": "39406e42cb832f683daa691dd652a8dc36ee8930",
|
|
24582
|
-
"message": {
|
|
24583
|
-
"text": "This path depends on a user-provided value."
|
|
24584
|
-
},
|
|
24585
|
-
"location": {
|
|
24586
|
-
"path": "lib/ab12-gen.js",
|
|
24587
|
-
"start_line": 917,
|
|
24588
|
-
"end_line": 917,
|
|
24589
|
-
"start_column": 7,
|
|
24590
|
-
"end_column": 18
|
|
24591
|
-
},
|
|
24592
|
-
"classifications": []
|
|
24593
|
-
},
|
|
24594
|
-
"instances_url": "https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/3/instances"
|
|
24595
|
-
}
|
|
24596
|
-
]
|
|
24597
|
-
},
|
|
24598
24470
|
"code-scanning-alert": {
|
|
24599
24471
|
"value": {
|
|
24600
24472
|
"number": 42,
|
|
@@ -29691,6 +29563,18 @@
|
|
|
29691
29563
|
"link": {
|
|
29692
29564
|
"example": "<https://api.github.com/resource?page=2>; rel=\"next\", <https://api.github.com/resource?page=5>; rel=\"last\"",
|
|
29693
29565
|
"schema": { "type": "string" }
|
|
29566
|
+
},
|
|
29567
|
+
"x-rate-limit-limit": {
|
|
29568
|
+
"example": 5000,
|
|
29569
|
+
"schema": { "type": "integer" }
|
|
29570
|
+
},
|
|
29571
|
+
"x-rate-limit-remaining": {
|
|
29572
|
+
"example": 4999,
|
|
29573
|
+
"schema": { "type": "integer" }
|
|
29574
|
+
},
|
|
29575
|
+
"x-rate-limit-reset": {
|
|
29576
|
+
"example": 1590701888,
|
|
29577
|
+
"schema": { "type": "integer", "format": "timestamp" }
|
|
29694
29578
|
}
|
|
29695
29579
|
},
|
|
29696
29580
|
"responses": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.5.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": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
|
|
@@ -94387,7 +94387,7 @@
|
|
|
94387
94387
|
"category": "rate-limit",
|
|
94388
94388
|
"subcategory": null
|
|
94389
94389
|
},
|
|
94390
|
-
"x-octokit": {}
|
|
94390
|
+
"x-octokit": { "diff": { "api.github.com": { "type": "changed" } } }
|
|
94391
94391
|
}
|
|
94392
94392
|
},
|
|
94393
94393
|
"/repos/{owner}/{repo}": {
|
|
@@ -118623,7 +118623,7 @@
|
|
|
118623
118623
|
},
|
|
118624
118624
|
"post": {
|
|
118625
118625
|
"summary": "Review pending deployments for a workflow run",
|
|
118626
|
-
"description": "Approve or reject pending deployments that are waiting on approval by a required reviewer.\n\
|
|
118626
|
+
"description": "Approve or reject pending deployments that are waiting on approval by a required reviewer.\n\nRequired reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint.",
|
|
118627
118627
|
"tags": ["actions"],
|
|
118628
118628
|
"operationId": "actions/review-pending-deployments-for-run",
|
|
118629
118629
|
"externalDocs": {
|
|
@@ -119160,7 +119160,7 @@
|
|
|
119160
119160
|
},
|
|
119161
119161
|
"x-github": {
|
|
119162
119162
|
"githubCloudOnly": false,
|
|
119163
|
-
"enabledForGitHubApps":
|
|
119163
|
+
"enabledForGitHubApps": false,
|
|
119164
119164
|
"category": "actions",
|
|
119165
119165
|
"subcategory": "workflow-runs"
|
|
119166
119166
|
},
|
|
@@ -152289,7 +152289,7 @@
|
|
|
152289
152289
|
"operationId": "code-scanning/list-alerts-for-repo",
|
|
152290
152290
|
"externalDocs": {
|
|
152291
152291
|
"description": "API method documentation",
|
|
152292
|
-
"url": "https://docs.github.com/
|
|
152292
|
+
"url": "https://docs.github.com/rest/reference/code-scanning#list-code-scanning-alerts-for-a-repository"
|
|
152293
152293
|
},
|
|
152294
152294
|
"parameters": [
|
|
152295
152295
|
{
|
|
@@ -152362,13 +152362,13 @@
|
|
|
152362
152362
|
},
|
|
152363
152363
|
{
|
|
152364
152364
|
"name": "sort",
|
|
152365
|
-
"description": "The property by which to sort the results.",
|
|
152365
|
+
"description": "The property by which to sort the results. `number` is deprecated - we recommend that you use `created` instead.",
|
|
152366
152366
|
"in": "query",
|
|
152367
152367
|
"required": false,
|
|
152368
152368
|
"schema": {
|
|
152369
152369
|
"type": "string",
|
|
152370
|
-
"enum": ["created", "
|
|
152371
|
-
"default": "
|
|
152370
|
+
"enum": ["created", "number", "updated"],
|
|
152371
|
+
"default": "created"
|
|
152372
152372
|
}
|
|
152373
152373
|
},
|
|
152374
152374
|
{
|
|
@@ -152561,6 +152561,12 @@
|
|
|
152561
152561
|
"used in tests"
|
|
152562
152562
|
]
|
|
152563
152563
|
},
|
|
152564
|
+
"dismissed_comment": {
|
|
152565
|
+
"type": "string",
|
|
152566
|
+
"description": "The dismissal comment associated with the dismissal of the alert.",
|
|
152567
|
+
"nullable": true,
|
|
152568
|
+
"maxLength": 280
|
|
152569
|
+
},
|
|
152564
152570
|
"rule": {
|
|
152565
152571
|
"type": "object",
|
|
152566
152572
|
"properties": {
|
|
@@ -152693,6 +152699,7 @@
|
|
|
152693
152699
|
"dismissed_by": null,
|
|
152694
152700
|
"dismissed_at": null,
|
|
152695
152701
|
"dismissed_reason": null,
|
|
152702
|
+
"dismissed_comment": null,
|
|
152696
152703
|
"rule": {
|
|
152697
152704
|
"id": "js/zipslip",
|
|
152698
152705
|
"severity": "error",
|
|
@@ -152754,6 +152761,7 @@
|
|
|
152754
152761
|
},
|
|
152755
152762
|
"dismissed_at": "2020-02-14T12:29:18Z",
|
|
152756
152763
|
"dismissed_reason": "false positive",
|
|
152764
|
+
"dismissed_comment": "This alert is not actually correct, because there's a sanitizer included in the library.",
|
|
152757
152765
|
"rule": {
|
|
152758
152766
|
"id": "js/zipslip",
|
|
152759
152767
|
"severity": "error",
|
|
@@ -152851,7 +152859,7 @@
|
|
|
152851
152859
|
"category": "code-scanning",
|
|
152852
152860
|
"subcategory": null
|
|
152853
152861
|
},
|
|
152854
|
-
"x-octokit": {
|
|
152862
|
+
"x-octokit": {}
|
|
152855
152863
|
}
|
|
152856
152864
|
},
|
|
152857
152865
|
"/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}": {
|
|
@@ -154429,7 +154437,6 @@
|
|
|
154429
154437
|
"200": {
|
|
154430
154438
|
"description": "Response",
|
|
154431
154439
|
"content": {
|
|
154432
|
-
"application/json+sarif": { "schema": { "type": "string" } },
|
|
154433
154440
|
"application/json": {
|
|
154434
154441
|
"schema": {
|
|
154435
154442
|
"type": "object",
|
|
@@ -154535,7 +154542,7 @@
|
|
|
154535
154542
|
},
|
|
154536
154543
|
"examples": {
|
|
154537
154544
|
"response": {
|
|
154538
|
-
"summary": "
|
|
154545
|
+
"summary": "application/json response",
|
|
154539
154546
|
"value": {
|
|
154540
154547
|
"ref": "refs/heads/main",
|
|
154541
154548
|
"commit_sha": "c18c69115654ff0166991962832dc2bd7756e655",
|
|
@@ -154559,6 +154566,54 @@
|
|
|
154559
154566
|
}
|
|
154560
154567
|
}
|
|
154561
154568
|
}
|
|
154569
|
+
},
|
|
154570
|
+
"application/json+sarif": {
|
|
154571
|
+
"schema": { "type": "object", "additionalProperties": true },
|
|
154572
|
+
"examples": {
|
|
154573
|
+
"response": {
|
|
154574
|
+
"summary": "application/json+sarif response",
|
|
154575
|
+
"value": {
|
|
154576
|
+
"runs": [
|
|
154577
|
+
{
|
|
154578
|
+
"tool": {
|
|
154579
|
+
"driver": {
|
|
154580
|
+
"name": "CodeQL",
|
|
154581
|
+
"organization": "GitHub",
|
|
154582
|
+
"semanticVersion": "1.0.0",
|
|
154583
|
+
"rules": [
|
|
154584
|
+
{
|
|
154585
|
+
"id": "js/unused-local-variable",
|
|
154586
|
+
"name": "js/unused-local-variable"
|
|
154587
|
+
}
|
|
154588
|
+
]
|
|
154589
|
+
}
|
|
154590
|
+
},
|
|
154591
|
+
"results": [
|
|
154592
|
+
{
|
|
154593
|
+
"guid": "326aa09f-9af8-13cf-9851-3d0e5183ec38",
|
|
154594
|
+
"message": { "text": "Unused variable foo." },
|
|
154595
|
+
"locations": [
|
|
154596
|
+
{
|
|
154597
|
+
"physicalLocation": {
|
|
154598
|
+
"artifactLocation": { "uri": "file1.js" },
|
|
154599
|
+
"region": { "startLine": 1 }
|
|
154600
|
+
}
|
|
154601
|
+
}
|
|
154602
|
+
],
|
|
154603
|
+
"ruleId": "js/unused-local-variable",
|
|
154604
|
+
"properties": [
|
|
154605
|
+
{ "github/alertNumber": 2 },
|
|
154606
|
+
{
|
|
154607
|
+
"github/alertUrl": "https://api.github.com/repos/monalisa/monalisa/code-scanning/alerts/2"
|
|
154608
|
+
}
|
|
154609
|
+
]
|
|
154610
|
+
}
|
|
154611
|
+
]
|
|
154612
|
+
}
|
|
154613
|
+
]
|
|
154614
|
+
}
|
|
154615
|
+
}
|
|
154616
|
+
}
|
|
154562
154617
|
}
|
|
154563
154618
|
}
|
|
154564
154619
|
},
|
|
@@ -154860,6 +154915,15 @@
|
|
|
154860
154915
|
}
|
|
154861
154916
|
},
|
|
154862
154917
|
"required": ["commit_sha", "ref", "sarif"]
|
|
154918
|
+
},
|
|
154919
|
+
"examples": {
|
|
154920
|
+
"default": {
|
|
154921
|
+
"value": {
|
|
154922
|
+
"commit_sha": "4b6472266afd7b471e86085a6659e8c7f2b119da",
|
|
154923
|
+
"ref": "refs/heads/master",
|
|
154924
|
+
"sarif": "H4sICMLGdF4AA2V4YW1wbGUuc2FyaWYAvVjdbts2FL7PUxDCijaA/CM7iRNfLkPXYgHSNstumlzQ0pHFVCI1korjFgH2ONtr7Ul2KFmy/mOn6QIkjsjDw0/nfN85NL8dEGL9pNwAImqRObECrWM1H40kXQ2XTAfJIlEgXcE1cD10RTQSVDE10K4aKSqZP1AxuKOIKg1ydJU60jSfSh8Hk6EzHA/vlOCWbfa7B6kYPpj90rlsWCZcmbHP5Bs+4oAWIjQD2SMOeJLh2vIQDnIaQerqXHjw8YIgxohybxAyDsS4cAPKsp03K4RcUs6+Up2D+JXpd8mibKIQN9fM/aMCdbyBujGSSQgVxJtx5qX2d2qUcIweQhEuDQf3GBO6CKHkogx/N3MVCKl/AeVKFuf4y5ubsMGDTj1ep+5I7sgmLIpxtU38hLtmMRGSuCFVyip5eKzs5ydh+LztVL6f2m6oih1BkYiuyQIIJWodxVpERPj4sEiWBNNH8EWT0DMG8EAjzKVHXCrB4FkPu/F64NMk1OeC+2yZSNoBOoR7CC0EzYWGbm+xFDFIzbI011+cLjfZtyJkmMZfumAh02uL3NpV2y+MZ6RAjxibyKrNxxJcVjANSb4eBGwZ1M0KsuyR2poLr5rMl8vaDSeVn6eTWEO2j2xIEcmhwlTKNOi4GMOI8gfuZYkvJ7b4v5Tiumyz7RnHeodFzpS8ASIZCH/AYdWi2z3sG8JtFxJ6fF9yR9CdifBr9Pd6d5V2+zbJKjjCFGGmsHuYFy2ytJq9tUxcLSRSQecppOGKrpUxYfxefMEFK+wOGa4hudQByBVT0L+EKtyACxnRsABhEx1QjVDs1KNI9MbpnhqfE45B6FJvu3hRu5VRU9MhZLmK7fqkKyQSTHNoyMqUFMqXCV3CwAeqEwmVokraK8IuBaGvHjQ0gMYrKjnjyw7uk9uD8tgmsBbFMPnU1bV2ZhkJNkuolUiWys3UPWzs5aaIUz9TBe8zMb+6+nT+6fLy91dlE3xzeDDT4zYszb0bW6NjJd0Rvn2EnLvWLFSdKPpBzInzfRgu8ETyMcH8nIfMnJCeC2PyfTA+UKngcnGH7Hw2hGkVQs5YlIRCtdWZYQ4/73es2JlxkfViOEIhoWJq5Oo6UBBfiKIqFBWhiE3jJGbFwVoxBHTRSuIS67sMeplei24X20shLjG+8gqbKC/bESiNMC+wd5q5id0yeS7CJEqXzmrTWNq3k05l84P6f4/bEmXFJjI0fIt1BGQssUnUDkBYeVhE5TqPnMH3jqogDcP0zKcTgLPTMSzOjhbjuVOmW23l1fYNStulfo6sXlFsGLhbDy5RECPRYGCTgOj2bd4nUQEivEd0H7KKYxqnEhFohuur3a3UPskbH/+Yg0+M5P2MHRJu3ziHh3Z2NCrWt3XF1rWTw8Ne/pfbWYXnDSE0SNZQQt1i18q7te2vOhu7ehWuvVyeu0wbLZi24mhoo6aOOTltzG/lgdVvVoXQq5V+pewkFIzL8fjEcadT55jOjpzFzHuOTtDNrMkJPMVQDd7F09RID72O/UPZ0tmctqZ7kWX6EmSZnDpP8GU67SXM8XE3YSrxbKsx6UReZ4y6n/FVZfJjs9Z7stma75W5yQtkzjk5eSJxk1lv4o7+j8TlhaJ2lsKWZO6lruDPBLib3x5ZN/KGWzZ+pn///evv7OOf4iIBv3oY9L/l1wiJ9p0Tc+F1zZnOE9NxXWEus6IQhr5pMfoqxi8WPsuu0azsns4UC6WzNzHIzbeEx4P/AJ3SefgcFAAA"
|
|
154925
|
+
}
|
|
154926
|
+
}
|
|
154863
154927
|
}
|
|
154864
154928
|
}
|
|
154865
154929
|
}
|