environment_secrets
Overview
Name | environment_secrets |
Type | Resource |
Id | github.actions.environment_secrets |
Fields
Name | Datatype | Description |
---|---|---|
name | string | The name of the secret. |
created_at | string | |
updated_at | string |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get_environment_secret | SELECT | environment_name, repository_id, secret_name | Gets 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_secrets | SELECT | environment_name, repository_id | Lists 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_secret | INSERT | environment_name, repository_id, secret_name, data__encrypted_value, data__key_id | Creates 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_secret | DELETE | environment_name, repository_id, secret_name | Deletes 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. |