diff --git a/actions/setup/js/get_current_branch.cjs b/actions/setup/js/get_current_branch.cjs index 8c7289abb19..f77f9d0a799 100644 --- a/actions/setup/js/get_current_branch.cjs +++ b/actions/setup/js/get_current_branch.cjs @@ -18,6 +18,7 @@ function getCurrentBranch(customCwd) { const branch = execSync("git rev-parse --abbrev-ref HEAD", { encoding: "utf8", cwd: cwd, + stdio: ["pipe", "pipe", "pipe"], }).trim(); return branch; } catch (error) {