-
Notifications
You must be signed in to change notification settings - Fork 0
Add disk space cleanup step for Ubuntu in Docker workflow #324
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -30,6 +30,17 @@ jobs: | |||||||||||||||||||||||||||||||||||||||||||||
| steps: | ||||||||||||||||||||||||||||||||||||||||||||||
| - name: Checkout | ||||||||||||||||||||||||||||||||||||||||||||||
| uses: actions/checkout@v5 | ||||||||||||||||||||||||||||||||||||||||||||||
| - name: Free Disk Space (Ubuntu) | ||||||||||||||||||||||||||||||||||||||||||||||
| if: runner.os == 'Linux' | ||||||||||||||||||||||||||||||||||||||||||||||
| uses: jlumbroso/free-disk-space@main | ||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+33
to
+35
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The new cleanup step invokes Useful? React with 👍 / 👎. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The action uses Recommendation: Pin to a specific commit SHA or tagged version: uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383e50de1aa457b67 # v2.0.0Note: This same issue exists in
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please pin jlumbroso/free-disk-space to a specific commit SHA or tagged release instead of @main to avoid supply-chain risk from upstream changes. Prompt for AI agentsThere was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using Pin to a specific commit SHA or version tag: uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383e50de9600e2a0f # v1.3.1Note: This same issue exists in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This action is pinned to Security Risk: Pinning to Recommendation: Pin to a specific version or commit SHA: uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383e50e01f0ba2f3e # v1.3.1 |
||||||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||||||
| tool-cache: false | ||||||||||||||||||||||||||||||||||||||||||||||
| android: true | ||||||||||||||||||||||||||||||||||||||||||||||
| dotnet: true | ||||||||||||||||||||||||||||||||||||||||||||||
| haskell: true | ||||||||||||||||||||||||||||||||||||||||||||||
| large-packages: true | ||||||||||||||||||||||||||||||||||||||||||||||
| docker-images: true | ||||||||||||||||||||||||||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Setting Consider:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Architectural Concern: Setting Impact:
Questions:
Alternative: Set |
||||||||||||||||||||||||||||||||||||||||||||||
| swap-storage: true | ||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+33
to
+43
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pin the action to a specific version instead of @main. The jlumbroso/free-disk-space action supports the tool-cache option, and v1.1.0 is the latest release. However, using Apply this diff to pin the action to a stable version: - name: Free Disk Space (Ubuntu)
if: runner.os == 'Linux'
- uses: jlumbroso/free-disk-space@main
+ uses: jlumbroso/free-disk-space@v1.1.0
with:
tool-cache: false
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: trueAs per coding guidelines. 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||
| - name: Set up Docker Buildx | ||||||||||||||||||||||||||||||||||||||||||||||
| uses: docker/setup-buildx-action@v3 | ||||||||||||||||||||||||||||||||||||||||||||||
| - name: Login to GHCR | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using
@mainas the version reference for this action is not a best practice. Themainbranch can change at any time, which could introduce breaking changes or unexpected behavior in your workflow without warning.Consider pinning to a specific version tag or commit SHA instead. For example:
uses: jlumbroso/free-disk-space@v1.3.1(semantic version)uses: jlumbroso/free-disk-space@54081f69e8b(commit SHA)This provides better reproducibility and stability for your CI/CD pipeline.