Github API - Test Config

GET /user/codespaces/secrets/public-key
users
codespaces

Gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets.

You must authenticate using an access token with the codespace or codespace:secrets scope to use this endpoint. User must have Codespaces access to use this endpoint.

GitHub Apps must have read access to the codespaces_user_secrets user permission to use this endpoint.
Get public key for the authenticated user

Returns
200 application/json codespaces-user-public-key

codespaces-user-public-key [object]

The public key used for setting user Codespaces' Secrets.

Attributes
key string

The Base64 encoded public key.

key_id string

The identifier for the key.

API:
Github Open API
(version: 1.1.4)
API:
Github Open API
(version: 1.1.4)