Skip to main content
Skip to content

This version of GitHub Enterprise Server will be discontinued on 2026-09-22. Discontinued releases are not supported. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features in GitHub Enterprise Server, see Overview of the upgrade process. For help with the upgrade, GitHub Enterprise Support.

Configuring the retention period for checks, workflow runs, commit statuses, artifacts, and logs in your organization

Control how long checks, workflow runs, commit statuses, artifacts, and logs are retained in your organization.

By default, checks, workflow runs, commit statuses, and the artifacts and log files generated by workflows are retained for 90 days before they are automatically deleted.

These retention policies apply to checks data, including check suites and check runs, and to commit statuses, including those created by third-party integrations. The policies are not limited to data created by GitHub Actions.

You can change this retention period to anywhere between 1 day or 400 days.

When you customize the retention period, it only applies to new checks, workflow runs, commit statuses, artifacts, and log files, and does not retroactively apply to existing objects. For managed repositories and organizations, the maximum retention period cannot exceed the limit set by the managing organization or enterprise.

Setting the retention period for an organization

  1. On GitHub, navigate to the main page of the organization.

  2. Under your organization name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.

    Screenshot of the tabs in an organization's profile. The "Settings" tab is outlined in dark orange.

  3. In the left sidebar, click Actions, then click General.

  4. In the "Check, workflow run, status, artifact, log, and cache settings" section, under Check, workflow run, status, artifact and log retention, enter a new value.

  5. Click Save to apply the change.