Time out stalled GitHub clones after ten minutes

Progress streams now stay open until a job ends, so a hung clone would
otherwise hold its job and stream forever.
This commit is contained in:
Andy Dixon
2026-04-04 11:53:50 +01:00
parent 841f27487a
commit e744ebab1f
3 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ func TestGitCloneKeepsTokenOutOfArgsAndIgnoresHostCredentials(t *testing.T) {
if _, err := exec.LookPath("git"); err != nil {
t.Skip("git not installed")
}
cmd := gitClone("https://github.com/o/r", t.TempDir(), "ghu_secret")
cmd := gitClone(t.Context(), "https://github.com/o/r", t.TempDir(), "ghu_secret")
if strings.Contains(strings.Join(cmd.Args, " "), "ghu_secret") {
t.Fatal("token appears in git arguments")
}