public_keys
Overview
Name | public_keys |
Type | Resource |
Id | github.actions.public_keys |
Fields
Name | Datatype | Description |
---|---|---|
id | integer | |
created_at | string | |
key | string | The Base64 encoded public key. |
key_id | string | The identifier for the key. |
title | string | |
url | string |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get_environment_public_key | SELECT | environment_name, repository_id | Get the public key for an environment, which you need to encrypt environment 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.Authenticated users must have collaborator access to a repository to create, update, or read secrets. |
get_org_public_key | SELECT | org | 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.If the repository is private, you must use an access token with the repo scope.GitHub Apps must have the secrets organization permission to use this endpoint.Authenticated users must have collaborator access to a repository to create, update, or read secrets. |
get_repo_public_key | SELECT | owner, repo | 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.Authenticated users must have collaborator access to a repository to create, update, or read secrets. |