Interview Prep/GitHub Actions/Caching, Artifacts, Runners & ARC

How do retention and storage billing work for artifacts and logs?

BeginnerConceptCaching, Artifacts, Runners & ARC
Answer

Default retention is 90 days for artifacts and logs, configurable at org or repo level (1 to 90 days for public repos, up to 400 days for private) and per upload with retention-days. Artifact storage counts against the account's included Packages/Actions storage and is billed beyond it. Set short retention (1 to 7 days) for intermediate build outputs and keep release assets in GitHub Releases or a registry instead.

- uses: actions/upload-artifact@v4
  with:
    name: coverage
    path: coverage/
    retention-days: 5
    if-no-files-found: error
All GitHub Actions questions Roadmap: GitHub Actions

More on Caching, Artifacts, Runners & ARC