Github API

Getting access, Developing, Testing

Back to Github

Actions Get Repo 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. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the repo scope. GitHub Apps must have the secrets repository permission to use this endpoint.

Input

type: object properties: parameters: type: object properties: owner: type: string description: The account owner of the repository. The name is not case sensitive. repo: type: string description: The name of the repository. The name is not case sensitive. required: - owner - repo title: Parameters

Output

type: object title: ActionsPublicKey properties: key_id: description: The identifier for the key. type: string example: '1234567' key: description: The Base64 encoded public key. type: string example: hBT5WZEj8ZoOv6TYJsfWq7MxTEQopZO5/IT3ZCVQPzs= id: type: integer example: 2 url: type: string example: https://api.github.com/user/keys/2 title: type: string example: ssh-rsa AAAAB3NzaC1yc2EAAA created_at: type: string example: '2011-01-26T19:01:12.000Z'