Skip to main content

org_secrets

Overview

Nameorg_secrets
TypeResource
Idgithub.actions.org_secrets

Fields

NameDatatypeDescription
namestringThe name of the secret.
created_atstring
selected_repositories_urlstring
updated_atstring
visibilitystringVisibility of a secret

Methods

NameAccessible byRequired ParamsDescription
get_org_secretSELECTorg, secret_nameGets a single organization secret without revealing its encrypted value.

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.
list_org_secretsSELECTorgLists all secrets available in an organization without revealing their
encrypted values.

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.
create_or_update_org_secretINSERTorg, secret_name, data__visibilityCreates or updates an organization 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 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.
delete_org_secretDELETEorg, secret_nameDeletes a secret in an organization using the secret name.

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.