From 16bdce5f1f4cb12d1d205b15deee95ffd1032a82 Mon Sep 17 00:00:00 2001 From: ChristopherHX Date: Sat, 22 Feb 2025 15:29:03 +0100 Subject: [PATCH] feat: GoGitActionCache shallow fetch (#2677) * speed up cloning iff feature flag is on, should not have any negative impact --- pkg/runner/action_cache.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/runner/action_cache.go b/pkg/runner/action_cache.go index 471ed9e..2b83aff 100644 --- a/pkg/runner/action_cache.go +++ b/pkg/runner/action_cache.go @@ -77,6 +77,7 @@ func (c GoGitActionCache) Fetch(ctx context.Context, cacheDir, url, ref, token s }, Auth: auth, Force: true, + Depth: 1, }); err != nil { return "", fmt.Errorf("GoGitActionCache failed to fetch %s with ref %s at %s: %w", url, ref, gitPath, err) }