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 artifact and log retention for a private GitHub repository

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

  1. First, open the private repository where you want to change artifact and log retention
  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 and locate the "Artifact and log retention" section
  6. Then click on the artifact retention days input field and change the value (between 1 and 400 days)
  7. Finally click on "Save" button to apply the changes

Create your own interactive guide with Guideflow

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

GitHub is the home of collaboration and innovation for software developers.

Changing artifact and log retention in a private GitHub repository is crucial for efficient project management. It allows users to customize how long build artifacts and logs are retained, optimizing storage usage and ensuring crucial data is retained according to team needs.

This feature provides better control over storage costs and ensures compliance with data management policies. With customizable retention settings, teams can maintain cleaner repositories while keeping essential data accessible.

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

Create your first demo in less than 30 seconds.