Skip to main content

Get a repository secret

Gets 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 the `secrets` repository permission to use this endpoint.

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

Request

Path Parameters
owner string
required
repo string
required
secret_name string
required

secret_name parameter

Responses

application/json Actions Secret object

Response

created_at string<date-time>
required
name string
required

The name of the secret.

Example: SECRET_TOKEN

updated_at string<date-time>
required