Skip to main content

cache_storage_limit

Creates, updates, deletes, gets or lists a cache_storage_limit resource.

Overview

Namecache_storage_limit
TypeResource
Idgithub.actions.cache_storage_limit

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
max_cache_size_gbintegerThe maximum total cache size for this repository, in gigabytes.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_actions_cache_storage_limit_for_repositoryselectowner, repoGets 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.
get_actions_cache_storage_limit_for_enterpriseselectenterpriseGets GitHub Actions cache storage limit for an enterprise. All organizations and repositories under this
enterprise may not set a higher cache storage limit.

OAuth tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.
get_actions_cache_storage_limit_for_organizationselectorgGets GitHub Actions cache storage limit for an organization. All repositories under this
organization may not set a higher cache storage limit.

OAuth tokens and personal access tokens (classic) need the admin:organization scope to use this endpoint.
set_actions_cache_storage_limit_for_repositoryreplaceowner, repoSets 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.
set_actions_cache_storage_limit_for_enterprisereplaceenterpriseSets GitHub Actions cache storage limit for an enterprise. All organizations and repositories under this
enterprise may not set a higher cache storage limit.

OAuth tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.
set_actions_cache_storage_limit_for_organizationreplaceorgSets GitHub Actions cache storage limit for an organization. All organizations and repositories under this
organization may not set a higher cache storage limit.

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

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
enterprisestringThe slug version of the enterprise name.
orgstringThe organization name. The name is not case sensitive.
ownerstringThe account owner of the repository. The name is not case sensitive.
repostringThe name of the repository without the .git extension. The name is not case sensitive.

SELECT examples

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.

SELECT
max_cache_size_gb
FROM github.actions.cache_storage_limit
WHERE owner = '{{ owner }}' -- required
AND repo = '{{ repo }}' -- required
;

REPLACE examples

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

REPLACE github.actions.cache_storage_limit
SET
max_cache_size_gb = {{ max_cache_size_gb }}
WHERE
owner = '{{ owner }}' --required
AND repo = '{{ repo }}' --required;