Skip to main content

private_registry_public_key

Creates, updates, deletes, gets or lists a private_registry_public_key resource.

Overview

Nameprivate_registry_public_key
TypeResource
Idgithub.private_registries.private_registry_public_key

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
key_idstringThe identifier for the key. (example: 012345678912345678)
keystringThe Base64 encoded public key. (example: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_org_public_keyselectorg
Gets the org public key, which is needed to encrypt private registry secrets. You need to encrypt a secret before you can create or update secrets.

OAuth tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
orgstringThe organization name. The name is not case sensitive.

SELECT examples


Gets the org public key, which is needed to encrypt private registry secrets. You need to encrypt a secret before you can create or update secrets.

OAuth tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

SELECT
key_id,
key
FROM github.private_registries.private_registry_public_key
WHERE org = '{{ org }}' -- required
;