Skip to content

Commit bd82c1c

Browse files
committed
fix: use explicit path for Git safe.directory in containers
- Changed from $GITHUB_WORKSPACE to explicit path /__w/sourcegit/sourcegit - Fixes variable expansion issue in Ubuntu 24.04 containers - Ensures Git operations work correctly in containerized builds
1 parent b338312 commit bd82c1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
uses: actions/checkout@v4
4343
- name: Configure Git safe directory
4444
if: startsWith(matrix.runtime, 'linux-')
45-
run: git config --global --add safe.directory $GITHUB_WORKSPACE
45+
run: git config --global --add safe.directory /__w/sourcegit/sourcegit
4646
- name: Setup .NET
4747
uses: actions/setup-dotnet@v4
4848
with:

0 commit comments

Comments
 (0)