Skip to main content

environment_secrets

Overview

Nameenvironment_secrets
TypeResource
Idgithub.actions.environment_secrets

Fields

NameDatatypeDescription
namestringThe name of the secret.
created_atstring
updated_atstring

Methods

NameAccessible byRequired ParamsDescription
get_environment_secretSELECTenvironment_name, repository_id, secret_nameGets a single environment 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 the secrets repository permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read secrets.
list_environment_secretsSELECTenvironment_name, repository_idLists all secrets available in an environment without revealing their
encrypted values.

You must authenticate using an access token with the repo scope to use this endpoint.
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.
create_or_update_environment_secretINSERTenvironment_name, repository_id, secret_name, data__encrypted_value, data__key_idCreates or updates an environment 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 the secrets repository permission to use this endpoint.
Authenticated users must have collaborator access to a repository to create, update, or read secrets.
delete_environment_secretDELETEenvironment_name, repository_id, secret_nameDeletes a secret in an environment using the secret name.

You must authenticate using an access token with the repo scope to use this endpoint.
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.