chore/ci: bump actions/checkout from v1 to v7.0.1 - #487
Open
marcleblanc2 wants to merge 1 commit into
Open
marcleblanc2 wants to merge 1 commit into
marcleblanc2 wants to merge 1 commit into
Conversation
The pinned SHA was actions/checkout v1 (Nov 2019), which defaults to an unlimited fetch depth and fetches refs/heads/* instead of the commit under test. A force-push seconds after the first push left the fetched refs without the original commit, and checkout failed with "fatal: unable to read tree". v7.0.1 defaults to fetch-depth 1 and fetches the exact commit SHA, so the SCIP job clones shallow and survives a force-push race. Amp-Thread-ID: https://ampcode.com/threads/T-01a0cc21-4b1a-74dd-aa9f-8d1abc501c9a Co-authored-by: Amp <amp@ampcode.com>
eseliger
approved these changes
Sep 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The SCIP workflow pinned
actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e, which is v1 from November 2019 (the old runner-plugin implementation). Itsfetch-depthdefaults to no limit, so every push fetched every branch and tag (~17.5k objects), and it fetchesrefs/heads/*rather than the commit under test.That caused this failure on #486: the branch was force-pushed one second after the first push, the fetch picked up the new tip only, and checkout of the original commit died with
fatal: unable to read tree.What
Bump to
actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1, the current release.fetch-depth: 1, so the job clones shallow.github.sha, which GitHub still serves after a force-push, so the race goes away.scip-goandsrc code-intel uploadonly need the working tree andgit rev-parse HEAD; neither needs history.Test plan
The SCIP workflow runs on push to this branch; confirm the checkout step logs
--depth=1and the job passes.