Skip to main content

List organization secrets

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

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

Request

Path Parameters
org string
required
Query Parameters
per_page integer
optional

Results per page (max 100)

page integer
optional

Page number of the results to fetch.

Responses

application/json object

Response

Headers
Link string
Example:
<https://api.github.com/resource?page=2>; rel="next", <https://api.github.com/resource?page=5>; rel="last"
secrets array[Actions Secret for an Organization object]
required
items Actions Secret for an Organization object

Secrets for GitHub Actions for an organization.

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

total_count integer
required