Skip to main content

repository_secrets

Overview

Namerepository_secrets
TypeResource
Idgithub.codespaces.repository_secrets

Fields

NameDatatypeDescription
namestringThe name of the secret.
updated_atstring
created_atstring

Methods

NameAccessible byRequired ParamsDescription
get_repo_secretSELECTowner, repo, secret_nameGets a single repository secret without revealing its encrypted value. You must authenticate using an access token with the repo scope to use this endpoint. GitHub Apps must have write access to the codespaces_secrets repository permission to use this endpoint.
list_repo_secretsSELECTowner, repoLists all secrets available in a repository without revealing their encrypted values. You must authenticate using an access token with the repo scope to use this endpoint. GitHub Apps must have write access to the codespaces_secrets repository permission to use this endpoint.
delete_repo_secretDELETEowner, repo, secret_nameDeletes a secret in a repository using the secret name. You must authenticate using an access token with the repo scope to use this endpoint. GitHub Apps must have write access to the codespaces_secrets repository permission to use this endpoint.
create_or_update_repo_secretEXECowner, repo, secret_nameCreates or updates a repository secret with an encrypted value. Encrypt your secret using
LibSodium. For more information, see "Encrypting secrets for the REST API."

You must authenticate using an access
token with the repo scope to use this endpoint. GitHub Apps must have write access to the codespaces_secrets
repository permission to use this endpoint.