ref:9ff9d8ee52704bfcf2d33d6edbfa2cb228e1cbb2

fix(ci): mark workspace as git safe.directory in build-runner

The runner bind-mounts a host-owned workspace into a root-run container. Git's safe-directory check rejects the workspace, exiting 128 when the script runs 'git log' to generate the release changelog. Add 'git config --global --add safe.directory /workspace' at the top of build-runner.sh so git commands work under the container UID mismatch. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
SHA: 9ff9d8ee52704bfcf2d33d6edbfa2cb228e1cbb2
Author: Cole Christensen <cole.christensen@macmillan.com>
Date: 2026-04-10 21:18
Parents: 2e84796
1 files changed +5 -0
Type
ci/build-runner.sh +5 −0
@@ -1,6 +1,11 @@
#!/usr/bin/env bash
set -euo pipefail
# The CI runner bind-mounts the workspace owned by a non-root host user
# into a root-run container. Git's safe-directory check rejects that,
# exiting 128 when we later try to read log history for the changelog.
git config --global --add safe.directory /workspace
# Fail fast if we're about to publish a release but the secret is missing —
# don't waste 10+ minutes on a build that will error at the end.
PUBLISH=0