Skip to main content

Get an organization secret

Gets 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. GitHub Apps must have the `secrets` organization permission to use this endpoint.

GET/orgs/{org}/actions/secrets/{secret_name}
Source
github-v3-rest.json
Revision
f5f067c1e6f6
Active snapshot
85e53e3d0d65

Request

Path Parameters
org string
required
secret_name string
required

secret_name parameter

Responses

application/json Actions Secret for an Organization object

Response

created_at string<date-time>
required
name string
required

The name of the secret.

Example: SECRET_TOKEN

selected_repositories_url string<uri>
optional

Example: https://api.github.com/organizations/org/secrets/my_secret/repositories

updated_at string<date-time>
required
visibility string
required

Visibility of a secret