@octokit/openapi 6.1.4 → 6.3.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 +12366 -10615
- package/generated/api.github.com.json +3916 -3453
- 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 +1 -1
- package/generated/ghes-3.2-diff-to-ghes-3.3.json +1 -1
- package/generated/ghes-3.2.deref.json +187 -7
- package/generated/ghes-3.2.json +190 -29
- package/generated/ghes-3.3-anicca-diff-to-ghes-3.4.deref.json +23 -0
- package/generated/ghes-3.3-diff-to-ghes-3.4.deref.json +96 -1
- package/generated/ghes-3.3-diff-to-ghes-3.4.json +92 -1
- package/generated/ghes-3.3.deref.json +371 -1395
- package/generated/ghes-3.3.json +491 -315
- package/generated/ghes-3.4-anicca-diff-to-ghes-3.5.deref.json +0 -14
- package/generated/ghes-3.4-diff-to-ghes-3.5.deref.json +7801 -10209
- package/generated/ghes-3.4-diff-to-ghes-3.5.json +341 -326
- package/generated/ghes-3.4.deref.json +1434 -3653
- package/generated/ghes-3.4.json +1184 -1001
- package/generated/ghes-3.5-anicca-diff-to-api.github.com.deref.json +69 -73
- package/generated/ghes-3.5-diff-to-api.github.com.deref.json +28230 -31386
- package/generated/ghes-3.5-diff-to-api.github.com.json +813 -744
- package/generated/ghes-3.5.deref.json +1692 -4983
- package/generated/ghes-3.5.json +2093 -2049
- package/generated/github.ae-anicca-diff-to-api.github.com.deref.json +92 -0
- package/generated/github.ae-diff-to-api.github.com.deref.json +488 -1
- package/generated/github.ae-diff-to-api.github.com.json +362 -12
- package/generated/github.ae.deref.json +253 -104
- package/generated/github.ae.json +263 -81
- 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.3.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" },
|
|
@@ -1442,6 +1442,83 @@
|
|
|
1442
1442
|
"x-octokit": { "diff": { "ghes-3.4.json": { "type": "changed" } } }
|
|
1443
1443
|
}
|
|
1444
1444
|
},
|
|
1445
|
+
"/orgs/{org}/actions/secrets/{secret_name}": {
|
|
1446
|
+
"put": {
|
|
1447
|
+
"summary": "Create or update an organization secret",
|
|
1448
|
+
"description": "Creates or updates an organization secret with an encrypted value. Encrypt your secret using\n[LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). You must authenticate using an access\ntoken with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to\nuse this endpoint.\n\n#### Example encrypting a secret using Node.js\n\nEncrypt your secret using the [tweetsodium](https://github.com/github/tweetsodium) library.\n\n```\nconst sodium = require('tweetsodium');\n\nconst key = \"base64-encoded-public-key\";\nconst value = \"plain-text-secret\";\n\n// Convert the message and key to Uint8Array's (Buffer implements that interface)\nconst messageBytes = Buffer.from(value);\nconst keyBytes = Buffer.from(key, 'base64');\n\n// Encrypt using LibSodium.\nconst encryptedBytes = sodium.seal(messageBytes, keyBytes);\n\n// Base64 the encrypted secret\nconst encrypted = Buffer.from(encryptedBytes).toString('base64');\n\nconsole.log(encrypted);\n```\n\n\n#### Example encrypting a secret using Python\n\nEncrypt your secret using [pynacl](https://pynacl.readthedocs.io/en/latest/public/#nacl-public-sealedbox) with Python 3.\n\n```\nfrom base64 import b64encode\nfrom nacl import encoding, public\n\ndef encrypt(public_key: str, secret_value: str) -> str:\n \"\"\"Encrypt a Unicode string using the public key.\"\"\"\n public_key = public.PublicKey(public_key.encode(\"utf-8\"), encoding.Base64Encoder())\n sealed_box = public.SealedBox(public_key)\n encrypted = sealed_box.encrypt(secret_value.encode(\"utf-8\"))\n return b64encode(encrypted).decode(\"utf-8\")\n```\n\n#### Example encrypting a secret using C#\n\nEncrypt your secret using the [Sodium.Core](https://www.nuget.org/packages/Sodium.Core/) package.\n\n```\nvar secretValue = System.Text.Encoding.UTF8.GetBytes(\"mySecret\");\nvar publicKey = Convert.FromBase64String(\"2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvvcCU=\");\n\nvar sealedPublicKeyBox = Sodium.SealedPublicKeyBox.Create(secretValue, publicKey);\n\nConsole.WriteLine(Convert.ToBase64String(sealedPublicKeyBox));\n```\n\n#### Example encrypting a secret using Ruby\n\nEncrypt your secret using the [rbnacl](https://github.com/RubyCrypto/rbnacl) gem.\n\n```ruby\nrequire \"rbnacl\"\nrequire \"base64\"\n\nkey = Base64.decode64(\"+ZYvJDZMHUfBkJdyq5Zm9SKqeuBQ4sj+6sfjlH4CgG0=\")\npublic_key = RbNaCl::PublicKey.new(key)\n\nbox = RbNaCl::Boxes::Sealed.from_public_key(public_key)\nencrypted_secret = box.encrypt(\"my_secret\")\n\n# Print the base64 encoded secret\nputs Base64.strict_encode64(encrypted_secret)\n```",
|
|
1449
|
+
"tags": ["actions"],
|
|
1450
|
+
"operationId": "actions/create-or-update-org-secret",
|
|
1451
|
+
"externalDocs": {
|
|
1452
|
+
"description": "API method documentation",
|
|
1453
|
+
"url": "https://docs.github.com/enterprise-server@3.3/rest/reference/actions#create-or-update-an-organization-secret"
|
|
1454
|
+
},
|
|
1455
|
+
"parameters": [
|
|
1456
|
+
{ "$ref": "#/components/parameters/org" },
|
|
1457
|
+
{ "$ref": "#/components/parameters/secret-name" }
|
|
1458
|
+
],
|
|
1459
|
+
"requestBody": {
|
|
1460
|
+
"required": true,
|
|
1461
|
+
"content": {
|
|
1462
|
+
"application/json": {
|
|
1463
|
+
"schema": {
|
|
1464
|
+
"type": "object",
|
|
1465
|
+
"properties": {
|
|
1466
|
+
"encrypted_value": {
|
|
1467
|
+
"type": "string",
|
|
1468
|
+
"description": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/enterprise-server@3.3/rest/reference/actions#get-an-organization-public-key) endpoint.",
|
|
1469
|
+
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$"
|
|
1470
|
+
},
|
|
1471
|
+
"key_id": {
|
|
1472
|
+
"type": "string",
|
|
1473
|
+
"description": "ID of the key you used to encrypt the secret."
|
|
1474
|
+
},
|
|
1475
|
+
"visibility": {
|
|
1476
|
+
"type": "string",
|
|
1477
|
+
"description": "Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret.",
|
|
1478
|
+
"enum": ["all", "private", "selected"]
|
|
1479
|
+
},
|
|
1480
|
+
"selected_repository_ids": {
|
|
1481
|
+
"type": "array",
|
|
1482
|
+
"description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.3/rest/reference/actions#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/enterprise-server@3.3/rest/reference/actions#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/enterprise-server@3.3/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints.",
|
|
1483
|
+
"items": { "type": "integer" }
|
|
1484
|
+
}
|
|
1485
|
+
},
|
|
1486
|
+
"required": ["visibility"]
|
|
1487
|
+
},
|
|
1488
|
+
"examples": {
|
|
1489
|
+
"default": {
|
|
1490
|
+
"value": {
|
|
1491
|
+
"encrypted_value": "c2VjcmV0",
|
|
1492
|
+
"key_id": "012345678912345678",
|
|
1493
|
+
"visibility": "selected",
|
|
1494
|
+
"selected_repository_ids": [1296269, 1296280]
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
},
|
|
1501
|
+
"responses": {
|
|
1502
|
+
"201": {
|
|
1503
|
+
"description": "Response when creating a secret",
|
|
1504
|
+
"content": {
|
|
1505
|
+
"application/json": {
|
|
1506
|
+
"schema": { "$ref": "#/components/schemas/empty-object" },
|
|
1507
|
+
"examples": { "default": { "value": null } }
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
},
|
|
1511
|
+
"204": { "description": "Response when updating a secret" }
|
|
1512
|
+
},
|
|
1513
|
+
"x-github": {
|
|
1514
|
+
"githubCloudOnly": false,
|
|
1515
|
+
"enabledForGitHubApps": true,
|
|
1516
|
+
"category": "actions",
|
|
1517
|
+
"subcategory": "secrets"
|
|
1518
|
+
},
|
|
1519
|
+
"x-octokit": { "diff": { "ghes-3.4.json": { "type": "changed" } } }
|
|
1520
|
+
}
|
|
1521
|
+
},
|
|
1445
1522
|
"/orgs/{org}/audit-log": {
|
|
1446
1523
|
"get": {
|
|
1447
1524
|
"summary": "Get the audit log for an organization",
|
|
@@ -3321,6 +3398,13 @@
|
|
|
3321
3398
|
"required": true,
|
|
3322
3399
|
"schema": { "type": "string" }
|
|
3323
3400
|
},
|
|
3401
|
+
"secret-name": {
|
|
3402
|
+
"name": "secret_name",
|
|
3403
|
+
"description": "The name of the secret.",
|
|
3404
|
+
"in": "path",
|
|
3405
|
+
"required": true,
|
|
3406
|
+
"schema": { "type": "string" }
|
|
3407
|
+
},
|
|
3324
3408
|
"team-slug": {
|
|
3325
3409
|
"name": "team_slug",
|
|
3326
3410
|
"description": "The slug of the team name.",
|
|
@@ -4111,6 +4195,13 @@
|
|
|
4111
4195
|
"errors": { "type": "array", "items": { "type": "string" } }
|
|
4112
4196
|
}
|
|
4113
4197
|
},
|
|
4198
|
+
"empty-object": {
|
|
4199
|
+
"title": "Empty Object",
|
|
4200
|
+
"description": "An object without any properties.",
|
|
4201
|
+
"type": "object",
|
|
4202
|
+
"properties": {},
|
|
4203
|
+
"additionalProperties": false
|
|
4204
|
+
},
|
|
4114
4205
|
"team-full": {
|
|
4115
4206
|
"title": "Full Team",
|
|
4116
4207
|
"description": "Groups of organization members that gives permissions on specified repositories.",
|