Skip to content

Conversation

@DmitriyLewen
Copy link
Contributor

@DmitriyLewen DmitriyLewen commented Oct 10, 2025

Description

We got No space left on device error when checking out trivy-repo — https://github.com/aquasecurity/trivy/actions/runs/18374488962.

Currently, the workflow fetches all commits for this repo:

- name: Checkout trivy-repo
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
repository: ${{ github.repository_owner }}/trivy-repo
path: trivy-repo
fetch-depth: 0

We can fetch only the latest commit and save ~15 GB.

➜ du -shm ./trivy-repo     
15456	./trivy-repo
➜ du -shm ./trivy-repo/.git
15117	./trivy-repo/.git

Test:

Checklist

  • I've read the guidelines for contributing to this repository.
  • I've followed the conventions in the PR title.
  • I've added tests that prove my fix is effective or that my feature works.
  • I've updated the documentation with the relevant information (if needed).
  • I've added usage information (if the PR introduces new options)
  • I've included a "before" and "after" example to the description (if the PR is a user interface change).

@DmitriyLewen DmitriyLewen self-assigned this Oct 10, 2025
@DmitriyLewen DmitriyLewen marked this pull request as ready for review October 10, 2025 07:06
@DmitriyLewen DmitriyLewen changed the title ci: Use fetch-level: 1 to check out trivy-repo in the release workflow fix: Use fetch-level: 1 to check out trivy-repo in the release workflow Oct 10, 2025
Copy link
Contributor

@owenrumney owenrumney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@DmitriyLewen DmitriyLewen added this pull request to the merge queue Oct 10, 2025
Merged via the queue into aquasecurity:main with commit 6e53686 Oct 10, 2025
16 checks passed
@DmitriyLewen DmitriyLewen deleted the ci/dont-use-fetch-0-for-trivy-repo branch October 10, 2025 10:46
@DmitriyLewen
Copy link
Contributor Author

@aqua-bot backport release/v0.67

@DmitriyLewen
Copy link
Contributor Author

Backport PR created: #9638

Copy link

@k2-source1 k2-source1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants