#4596·go-github

Add support for Actions cache retention and storage limits for an organization

Author: NitinKumar004Created Sep 27, 2026Updated Sep 27, 2026

GitHub added endpoints for the Actions cache retention limit and storage limit at the organization level, but go-github doesn't cover them yet:

  • GET/PUT /organizations/{org}/actions/cache/retention-limit
  • GET/PUT /organizations/{org}/actions/cache/storage-limit

Docs: https://docs.github.com/rest/actions/cache#get-github-actions-cache-retention-limit-for-an-organization

I'd like to add ActionsService.GetCacheRetentionLimitForOrg / SetCacheRetentionLimitForOrg and GetCacheStorageLimitForOrg / SetCacheStorageLimitForOrg alongside the existing cache usage methods in actions_cache.go. I'm happy to send a PR.