Skip to content

Commit b338312

Browse files
committed
fix: add Git safe.directory configuration for Linux container builds
- Added Git safe.directory configuration step for Linux builds - Fixes 'dubious ownership' error in Ubuntu 24.04 containers - Ensures Git operations work correctly in GitHub Actions containers This resolves the build failures that prevented release assets from being created.
1 parent 1ee40dd commit b338312

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ jobs:
4040
sudo apt-get install -y curl wget git unzip zip libicu74 tzdata clang
4141
- name: Checkout sources
4242
uses: actions/checkout@v4
43+
- name: Configure Git safe directory
44+
if: startsWith(matrix.runtime, 'linux-')
45+
run: git config --global --add safe.directory $GITHUB_WORKSPACE
4346
- name: Setup .NET
4447
uses: actions/setup-dotnet@v4
4548
with:

0 commit comments

Comments
 (0)