---
title: "Get a repository secret"
method: GET
path: "/repos/{owner}/{repo}/actions/secrets/{secret_name}"
tags: ["actions"]
---

# Get a repository secret

`GET /repos/{owner}/{repo}/actions/secrets/{secret_name}`

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.
Authenticated users must have collaborator access to a repository to create, update, or read secrets.

## Path parameters

- `owner` string, required
- `repo` string, required
- `secret_name` string, required

## Response `200`

Response

- ActionsSecret — Set secrets for GitHub Actions.
  - `name` string, required — The name of the secret.
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-5.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-5/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-5/versions/50ae54440071/schema)
