Skip to main content

Get an organization public key

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 `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to use this endpoint.

GET/orgs/{org}/actions/secrets/public-key
Source
github-v3-rest.json
Revision
f5f067c1e6f6
Active snapshot
85e53e3d0d65

Request

Path Parameters
org string
required

Responses

application/json ActionsPublicKey object

Response

created_at string
optional

Example: 2011-01-26T19:01:12Z

id integer
optional

Example: 2

key string
required

The Base64 encoded public key.

Example: hBT5WZEj8ZoOv6TYJsfWq7MxTEQopZO5/IT3ZCVQPzs=

key_id string
required

The identifier for the key.

Example: 1234567

title string
optional

Example: ssh-rsa AAAAB3NzaC1yc2EAAA

url string
optional

Example: https://api.github.com/user/keys/2