# Artifact storage quota has been hit in GitHub Actions

The quota is the account's, shared by every repository and by GitHub Packages, and GitHub recounts it only every 6 to 12 hours. Here is how to get uploads working again.

November 27, 2026, by Supercorp.

When `actions/upload-artifact` fails with this, the account that owns the repository has used up its artifact storage:

```
Failed to CreateArtifact: Artifact storage quota has been hit. Unable to upload any new artifacts.
```

The quota is not per repository. It is the account's or organization's, shared by all its repositories and by GitHub Packages, and on GitHub Free it is 500 MB. Deleting artifacts frees it, but GitHub recounts only every 6 to 12 hours, so jobs keep failing for a while after the cleanup. Here is how big the quota is, how to get uploads working again, and how to keep artifacts small; with measurements of how much compression saves.

## How much storage each plan has

From GitHub's [Actions billing](https://docs.github.com/en/billing/concepts/product-billing/github-actions) page:

| Plan | Artifact storage |
|---|---|
| GitHub Free | 500 MB |
| GitHub Pro | 1 GB |
| GitHub Free for organizations | 500 MB |
| GitHub Team | 2 GB |
| GitHub Enterprise Cloud | 50 GB |

Three things about it catch people out:

- **It is shared with GitHub Packages.** Container images and packages in the account's registry count against the same amount.
- **It is shared by every repository of the account.** One repository that uploads a large build on every push can stop uploads everywhere else. One [account's CI](https://github.com/S-Sebb/SebType/issues/418) held 3,756 artifacts, about 50 GB, and the failure showed up in a different repository.
- **Public repositories can fill it too.** GitHub's billing page speaks of storage for private repositories, but the 50 GB in that account were a public repository's artifacts.

Artifacts are kept for 90 days unless the repository or the upload says otherwise, so the storage in use is roughly everything uploaded in the last three months.

## Why it stops uploads

Above the included amount, artifact storage is billed at $0.25 a GB a month, when the account can be billed. Uploads stop instead when:

- the account has **no payment method**, or
- a **budget** for Actions or for its storage, set to stop usage, is spent. [GitHub Actions budget is preventing further use](/blog/github-actions-budget-preventing-further-use) has how to find one.

With a payment method and no such budget, uploads go on and the storage is billed.

## Get uploads working again

**1. Find what is using it.** The repository's artifacts, largest first:

```sh
gh api --paginate "repos/OWNER/REPO/actions/artifacts?per_page=100" \
  --jq '.artifacts[] | "\(.size_in_bytes) \(.name) \(.created_at) \(.id)"' | sort -rn | head -20
```

Do it for each repository of the account; **Settings → Billing and licensing → Usage**, filtered to Actions storage, shows the account's total.

**2. Delete what nobody needs.** Old artifacts, in this case those older than 7 days:

```sh
gh api --paginate "repos/OWNER/REPO/actions/artifacts?per_page=100" \
  --jq '.artifacts[] | select((.created_at | fromdate) < (now - 7 * 86400)) | .id' |
  while read -r id; do gh api -X DELETE "repos/OWNER/REPO/actions/artifacts/$id"; done
```

An artifact can also be deleted on its run's page, and deleting a run deletes its artifacts. Deleted artifacts cannot be restored.

**3. Wait for the recount.** GitHub "updates your artifact storage usage within 6 to 12 hours". Until then, uploads may still fail. Deleting lowers what is stored from then on, but not what was already charged this cycle.

**4. Or raise the limit**: add a payment method, or raise the budget that stopped it.

## Keep it from happening again

**Keep artifacts for days, not months.** Most artifacts are read within a day, if at all. `retention-days` sets it for one upload:

```yaml
- uses: actions/upload-artifact@v7
  with:
    name: test-results
    path: results/
    retention-days: 3
```

The repository's default can be lowered under **Settings → Actions → General → Artifact and log retention**: 1 to 90 days for public repositories, up to 400 for private ones.

**Upload less.** Upload test results and screenshots when a job fails rather than on every run (`if: failure()`), and builds only from the default branch. Leave out what can be made again in a minute, such as `node_modules`.

**Use the cache for what jobs reuse.** Dependencies that every run downloads belong in the cache, which has its own 10 GB for each repository and does not count against artifact storage. [GitHub Actions cache limit](/blog/github-actions-cache-limit).

**Compress what compresses.** Artifacts are stored zipped, and what counts is the size of the zip. See the measurements below.

## How much compression saves, measured

We uploaded two kinds of artifact with `actions/upload-artifact@v7` at four compression levels, on GitHub's standard runner in a public repository, on 27 November 2026. One was a `node_modules` folder (409 MB in 17,600 files: TypeScript, ESLint, webpack, Jest, Babel, React and Next.js); the other a 300 MB file of random bytes, which stands in for images, videos and already compressed archives. The stored size is GitHub's own, from the artifacts API; the times are the upload step's.

| Artifact | Level | Stored | Upload |
|---|---|---|---|
| `node_modules`, 409 MB | 0 (none) | 413 MB | 10 s |
| | 1 | 134 MB | 11 s |
| | 6 (the default) | 119 MB | 22 s |
| | 9 | 119 MB | 27 s |
| Random bytes, 300 MB | 0 | 300 MB | 3 s |
| | 1 | 300 MB | 8 s |
| | 6 | 300 MB | 10 s |
| | 9 | 300 MB | 8 s |

Two things follow:

- **Level 1 is the best buy for text and code.** It stored a third of the size of level 0 in the same time. The default, 6, saved another 11% and took twice as long; 9 saved nothing more.
- **Level 0 for what does not compress.** Random data came out the same size at every level, and uploading it without compression took 3 seconds instead of 8 to 10.

```yaml
- uses: actions/upload-artifact@v7
  with:
    name: build
    path: dist/
    compression-level: 1
```

Downloading took 15 seconds for the level-6 `node_modules` and 26 seconds for the uncompressed one: a smaller artifact is quicker for the next job too.

## Other limits on artifacts

- **500 artifacts a job.** `actions/upload-artifact` allows "a limit of 500 artifacts that can be created for that job".
- **Names are fixed.** Since v4, an artifact cannot be changed; uploading the same name again fails unless `overwrite: true`, which deletes the old one first.
- **Permissions are lost.** Zipped files come back as 644, so executables lose their bit. Put them in a `tar` and upload that with `archive: false`.
- **GitHub Enterprise Server** cannot use v4 or later; it needs v3.

## On your own runners

Artifacts go to GitHub's storage whichever runner uploads them, so self-hosted runners have the same quota. SuperCI, which we make, runs GitHub Actions jobs on fresh machines in your own AWS, Cloudflare or Modal account. On AWS it keeps the cache for `actions/cache` in your account, but artifacts still go to GitHub, so the advice above applies there too. [How it works](/docs/how-it-works).

Related: [Is GitHub Actions free? Free minutes for each plan](/blog/github-actions-free-minutes), and [every GitHub Actions limit in one place](/blog/github-actions-limits).
