Skip to content

Fix the candidate build: trust the checkout for git ls-files in the checks - #363

Merged
jimhoyd merged 1 commit into
mainfrom
fix/nul-scan-dubious-ownership
Sep 21, 2026
Merged

jimhoyd merged 1 commit into
mainfrom
fix/nul-scan-dubious-ownership

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator

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' from git ls-files -z in 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 liveDocumentationPaths in 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 check failed before and passes after; and running the candidate's own container step (the pinned image from scripts/release.ts image, git installed, npm ci, npm run check) on a fresh clone of this branch passes npm run check. The container's full npm run verify was 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

… 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]>
@jimhoyd

jimhoyd commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator Author

Full npm run verify in the candidate's pinned container image (fresh clone of this branch, git installed, npm ci) passed: CHECK-OK and VERIFY-OK. Next I am running the remaining candidate steps (package test, operational drills, build-candidate, prepare-release-train) in the same container before any new release attempt.

@jimhoyd
jimhoyd merged commit 831134b into main Sep 21, 2026
20 checks passed
@jimhoyd
jimhoyd deleted the fix/nul-scan-dubious-ownership branch September 21, 2026 02:43
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.

1 participant