-
-
Notifications
You must be signed in to change notification settings - Fork 108
fix: add disk space cleanup step for Ubuntu runners #4394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The ubuntu-latest runner was running out of disk space during CI builds. This adds a cleanup step at the start of the workflow that removes unused pre-installed software (Android SDK, pre-installed .NET, Haskell) to free approximately 15-25GB of disk space. Co-Authored-By: Claude Opus 4.5 <[email protected]>
SummaryAdds disk space cleanup step to GitHub Actions workflow for Ubuntu runners to prevent out-of-space failures. Critical IssuesUsing unpinned In uses: jlumbroso/free-disk-space@mainSecurity Risk: Using
Required Fix: Pin to a specific commit SHA or version tag: # Use a pinned commit SHA (recommended for security)
uses: jlumbroso/free-disk-space@54081f138730dfc15788a16edb5751d3f3f8e09c # v1.3.1
# Or use a version tag (easier to update but slightly less secure)
uses: jlumbroso/[email protected]Reference: GitHub Actions Security Hardening SuggestionsNone - the approach is sound for addressing disk space issues on Ubuntu runners. The configuration choices (keeping tool-cache and large-packages, removing Android/Haskell/.NET) seem reasonable for TUnit's needs. Verdict |
Summary
.NETworkflow for Ubuntu runnersContext
The
ubuntu-latestrunner was failing with:Test plan
ubuntu-latestwithout disk space errors🤖 Generated with Claude Code