Repository navigation
chore(ci): shallow checkout for jobs that don't need full history - #42
Merged
Merged
Conversation
node.js.yml build job and the hub-checkout step in push-to-main-sentinel.yml only build/test or read current-ref files — neither uses git log/blame or a wide commit-range comparison. Pin fetch-depth: 1 explicitly instead of relying on actions/checkout's default. The other two checkouts (gitleaks.yml, and the caller-repo checkout in push-to-main-sentinel.yml) keep fetch-depth: 0 because they diff against a commit range. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HQDxqjxDHCoq9zV8MCqhjF
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
Summary
node.js.ymlbuild job: plainnpm ci && npm test, no git history usage — add explicitfetch-depth: 1.push-to-main-sentinel.ymlhub checkout step: reads current-ref script/config files only, no git history usage — add explicitfetch-depth: 1.gitleaks.ymlcheckout and the caller-repo checkout inpush-to-main-sentinel.yml, both already explicitfetch-depth: 0and both diff against a commit range (before..after / base..head), so they genuinely need full history.Test plan
gh pr checksgreen on this PR (CI itself exercises the changed workflow)🤖 Generated with Claude Code
https://claude.ai/code/session_01HQDxqjxDHCoq9zV8MCqhjF