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 stringrequired
Responses
application/json ActionsPublicKey object
Response
created_at string
optionalExample: 2011-01-26T19:01:12Z
id integer
optionalExample: 2
key string
requiredThe Base64 encoded public key.
Example: hBT5WZEj8ZoOv6TYJsfWq7MxTEQopZO5/IT3ZCVQPzs=
key_id string
requiredThe identifier for the key.
Example: 1234567
title string
optionalExample: ssh-rsa AAAAB3NzaC1yc2EAAA
url string
optionalExample: https://api.github.com/user/keys/2