---
title: "Get GitHub Actions cache storage limit for a repository"
method: GET
path: "/repos/{owner}/{repo}/actions/cache/storage-limit"
tags: ["actions"]
---

# Get GitHub Actions cache storage limit for a repository

`GET /repos/{owner}/{repo}/actions/cache/storage-limit`

Gets GitHub Actions cache storage limit for a repository. This determines the maximum size of caches that can be
stored before eviction occurs.

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

## Path parameters

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

## Response `200`

Response

- ActionsCacheStorageLimitForRepository — GitHub Actions cache storage policy for a repository.
  - `max_cache_size_gb` integer — The maximum total cache size for this repository, in gigabytes.

## Other responses

- `403` — Forbidden
- `404` — Resource not found

---

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