From 019c2118d1989770dddfb7c9443f515a70507579 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Feb 2026 19:50:49 +0000 Subject: [PATCH 1/2] Initial plan From 9d4f6a6356e2ff7223256469256275b717e07ec5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Feb 2026 19:59:49 +0000 Subject: [PATCH 2/2] Fix checkout action field name from depth to fetch-depth Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- pkg/workflow/compiler_custom_actions_test.go | 6 +++--- pkg/workflow/compiler_yaml_helpers.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/workflow/compiler_custom_actions_test.go b/pkg/workflow/compiler_custom_actions_test.go index d2bcc253d5..403ef7ad14 100644 --- a/pkg/workflow/compiler_custom_actions_test.go +++ b/pkg/workflow/compiler_custom_actions_test.go @@ -399,9 +399,9 @@ Test workflow with script mode. t.Error("Expected 'path: /tmp/gh-aw/actions-source' in checkout step for script mode") } - // 3. Checkout should use shallow clone (depth: 1) - if !strings.Contains(lockStr, "depth: 1") { - t.Error("Expected 'depth: 1' in checkout step for script mode (shallow checkout)") + // 3. Checkout should use shallow clone (fetch-depth: 1) + if !strings.Contains(lockStr, "fetch-depth: 1") { + t.Error("Expected 'fetch-depth: 1' in checkout step for script mode (shallow checkout)") } // 4. Setup step should run bash script instead of using "uses:" diff --git a/pkg/workflow/compiler_yaml_helpers.go b/pkg/workflow/compiler_yaml_helpers.go index c90375ddc7..4223bc1d2c 100644 --- a/pkg/workflow/compiler_yaml_helpers.go +++ b/pkg/workflow/compiler_yaml_helpers.go @@ -135,7 +135,7 @@ func (c *Compiler) generateCheckoutActionsFolder(data *WorkflowData) []string { " sparse-checkout: |\n", " actions\n", " path: /tmp/gh-aw/actions-source\n", - " depth: 1\n", + " fetch-depth: 1\n", " persist-credentials: false\n", } } @@ -209,7 +209,7 @@ func (c *Compiler) generateCheckoutGitHubFolder(data *WorkflowData) []string { " sparse-checkout: |\n", " .github\n", " .agents\n", - " depth: 1\n", + " fetch-depth: 1\n", " persist-credentials: false\n", } }