Sample - GitHub REST API
GET/orgs/{org}/dependabot/secrets/{secret_name}

Get an organization secret

Gets a single organization secret without revealing its encrypted value.

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters
orgstringrequired
The organization name. The name is not case sensitive.
secret_namestringrequired
The name of the secret.

1 status code
200Response
namestringrequired
The name of the secret.
created_atstringrequired
updated_atstringrequired
visibilitystringrequired
Visibility of a secret
Allowed:allprivateselected
selected_repositories_urlstringoptional