Skip to content

Commit 5fef6e3

Browse files
committed
Add global Git safe directory configuration in Docker build step to address permission issues
1 parent da79748 commit 5fef6e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ await RunAsync("docker",
6161
"-e NODE_OPTIONS=\"--max-old-space-size=8192\" " +
6262
$"-e GITHUB_TOKEN=\"{githubToken}\" " +
6363
"node:24-slim " +
64-
"sh -c \"apt-get update && apt-get install -y git && npm ci && npm run build && cp -r dist/. /output/\"",
64+
"sh -c \"apt-get update && apt-get install -y git && git config --global --add safe.directory /app && npm ci && npm run build && cp -r dist/. /output/\"",
6565
configureEnvironment: env => env.Add("MSYS_NO_PATHCONV", "1"));
6666
});
6767

0 commit comments

Comments
 (0)