Github
GitHub is a code hosting and version control platform for developers to collaborate on software projects.
Website
Industry
Website
Share this article:

How to change the artifact and log retention period for a GitHub repository

Here is how to change the artifact and log retention period for a github repository

  1. First, open the repository where you want to update the retention period
  2. Next click on "Settings" tab in the top navigation menu
  3. In the sidebar menu, click on "Actions" option under Code and automation section
  4. Then click on "General" option in the expanded Actions submenu
  5. Next scroll down to the "Artifact and log retention" section
  6. Then click on the days input field and update the value
  7. Finally click on "Save" button to apply the changes

Create your own interactive guide with Guideflow

Why should you change the artifact and log retention period for a GitHub repository

GitHub is a powerful platform built to host and collaborate on code, driving creation and innovation.

Adjusting the artifact and log retention period for a GitHub repository allows for better space management and optimization of resources.

This feature facilitates tailoring the storage duration of workflow artifacts and logs, ensuring they are available for as long as needed while managing storage costs effectively.

Customizing retention periods enhances efficiency, providing a balance between accessibility and resource allocation tailored to specific project needs.

Last update
April 10, 2026
Cursor MariaA cursor points to a button labeled "James."

Create your first demo in less than 30 seconds.