---
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.

The authenticated user must have collaborator access to the repository to use this endpoint.

OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.

## 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-3.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-3/versions/dc0584ac4e13/schema)
