# Get a repository secret

From **GitHub v3 REST API**.

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

## Parameters

### `owner`

- Location: path
- Required: true
- Type: `string`

### `repo`

- Location: path
- Required: true
- Type: `string`

### `secret_name`

- Location: path
- Required: true
- Type: `string`

secret_name parameter

## Responses

### `200`

Response

### `application/json`

- Type: `object`

Set secrets for GitHub Actions.

```json
{
  "created_at": "2019-08-10T14:59:22Z",
  "name": "GH_TOKEN",
  "updated_at": "2020-01-10T14:59:22Z"
}
```

```json
{"description":"Set secrets for GitHub Actions.","properties":{"created_at":{"format":"date-time","type":"string"},"name":{"description":"The name of the secret.","example":"SECRET_TOKEN","type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["name","created_at","updated_at"],"title":"Actions Secret","type":"object"}
```

## Request examples

### cURL

```shell
curl --request GET \
  --url {protocol}://{hostname}/api/v3/repos/{owner}/{repo}/actions/secrets/{secret_name}
```
