Conversation
Release v0.1.2
`script/bundle-linux` dies at packaging time with "detected dubious
ownership in repository at '/__w/zode/zode'", after the whole release
build has been paid for. Both Linux bundles for v0.1.2 failed there.
`actions/checkout` does add the workspace as a safe directory, but it
writes that under a `HOME` it overrides for the duration of the action
and then discards -- the log says so plainly:
Temporarily overriding HOME='/__w/_temp/7a763e20-...' before making
global git config changes
git config --global --add safe.directory /__w/zode/zode
So nothing survives into the later steps. The workspace is owned by the
runner's uid on the host while the container runs as root, and the first
git call outside checkout is refused.
Only container jobs are affected, which is why this appeared with the
move to ubuntu:22.04 for the glibc 2.35 floor and not before: on a hosted
runner the job runs as the uid that owns the checkout.
`--system` rather than `--global` because /etc/gitconfig is read whatever
HOME happens to be, and HOME is not stable here -- rustup warns in this
same job that it differs from the euid-obtained one.
Verified in ubuntu:22.04 with the checkout chowned to uid 1001 and the
shell as root: `git rev-parse HEAD` reproduces the CI error verbatim
before the config line and succeeds after it.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
Self-Review Checklist:
Closes #ISSUE
Release Notes: