Skip to content

Commit 3d67c94

Browse files
committed
fix(ci): add safe.directory config for git in container
Git requires directories to be marked as safe when running as root with mounted volumes. This allows the download-libs.sh script to properly detect the clp-ffi-go submodule commit hash.
1 parent a28ce28 commit 3d67c94

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/build.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ jobs:
3333
# Install git (required for download-libs.sh to detect commit hash)
3434
yum install -y git
3535
36+
# Mark directories as safe for git (required when running as root in container)
37+
git config --global --add safe.directory /src
38+
git config --global --add safe.directory /src/third-party/clp-ffi-go
39+
3640
# Install Go
3741
curl -fsSL "https://go.dev/dl/go1.24.3.linux-${{ matrix.arch }}.tar.gz" | tar -C /usr/local -xz
3842
export PATH="/usr/local/go/bin:$PATH"

0 commit comments

Comments
 (0)