From 512b3e3e44d6f1dba9699a73c18004782e800e1a Mon Sep 17 00:00:00 2001 From: Sebastian Kuzminsky Date: Tue, 8 Nov 2022 09:08:21 -0700 Subject: [PATCH] run git directly, not in a superfluous bash shell Co-authored-by: Dawid Dziurla --- main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.js b/main.js index 5d9a132..4791121 100644 --- a/main.js +++ b/main.js @@ -159,8 +159,7 @@ async function main() { await exec.exec("docker", [ "exec", container, - "bash", "-c", - "git config --global --add safe.directory ${PWD}" + "git", "config", "--global", "--add", "safe.directory", sourceDirectory ]) core.endGroup()