Configuring the retention period for GitHub Actions artifacts and logs in your enterprise account

Enterprise owners can configure the retention period for GitHub Actions artifacts and logs in an enterprise account.

Las cuentas empresariales se encuentran disponibles con GitHub Enterprise Cloud y Servidor de GitHub Enterprise. Para obtener más información, consulta la sección "Acerca de las cuentas empresariales".

By default, the artifacts and log files generated by workflows are retained for 90 days before they are automatically deleted. You can adjust the retention period, depending on the type of repository:

  • For public repositories: you can change this retention period to anywhere between 1 day or 90 days.
  • For private, internal, and Servidor de GitHub Enterprise repositories: 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 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 enterprise

  1. En la esquina superior derecha de cualquier página, da clic en . Ícono de cohete para acceder a las configuraciones de administrador del sitio
  2. En la barra lateral izquierda, haga clic en Enterprise. Pestaña de Enterprise en la configuración Site Admin
  3. En la barra lateral de la cuenta de empresa, haz clic en Policies (Políticas). Pestaña Policies (Políticas) en la barra lateral de la cuenta de empresa
  4. Debajo de " Políticas", haz clic en Acciones.
  5. Under Artifact and log retention duration, enter a new value.
  6. Click Save to apply the change.

Did this doc help you?Privacy policy

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

O, learn how to contribute.