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 stringrequired
- secret_name stringrequired
secret_name parameter
Responses
application/json Actions Secret for an Organization object
Response
created_at string<date-time>
requiredname string
requiredThe name of the secret.
Example: SECRET_TOKEN
selected_repositories_url string<uri>
optionalExample: https://api.github.com/organizations/org/secrets/my_secret/repositories
updated_at string<date-time>
requiredvisibility string
requiredVisibility of a secret