Repository navigation
Fix the candidate build: trust the checkout for git ls-files in the checks - #363
Merged
Merged
Conversation
… in the checks The candidate container mounts the source under another owner, so git refuses it as dubious ownership. #351 and #284 added git calls that had never run there; the 0.4.3 candidate failed on the first. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Collaborator
Author
|
Full |
This was referenced Sep 21, 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.
The 0.4.3 candidate run (35553809540) failed in
Prepare core and verify the complete package train:fatal: detected dubious ownership in repository at '/source'fromgit ls-files -zin scripts/nul-scan.ts (#351). The candidate container mounts the source under another owner, so git refuses it. Nothing was published or tagged.Two git calls had never run in that container: the NUL guard from #351 and
liveDocumentationPathsin scripts/release-prepare.ts (#284). Both now pass-c safe.directory=<root>on the command line, a protected scope that git honours, without touching global config.Reproduced and verified:
GIT_TEST_ASSUME_DIFFERENT_OWNER=1 npm run checkfailed before and passes after; and running the candidate's own container step (the pinned image fromscripts/release.ts image, git installed,npm ci,npm run check) on a fresh clone of this branch passesnpm run check. The container's fullnpm run verifywas still running when this PR was opened; result in a comment.Why CI did not catch it: the normal runners own the checkout, so git trusts it. Only the release container differs.
🤖 Generated with Claude Code