From cf29e9588888edb45ca4e82f7fae96aff495e33b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 13 Feb 2026 23:34:29 +0000 Subject: [PATCH 1/3] Initial plan From 53d9b8686d954efc5df3d60a5727aadfd7298576 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 13 Feb 2026 23:45:44 +0000 Subject: [PATCH 2/3] fix: Add build tag to safe_outputs_permissions_test.go This test file uses ptrBool function from compiler_orchestrator_test.go which is only built for unit tests (!integration). Add the same build tag to fix integration test builds. Fixes the undefined ptrBool error when running integration tests. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- pkg/workflow/safe_outputs_permissions_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/workflow/safe_outputs_permissions_test.go b/pkg/workflow/safe_outputs_permissions_test.go index 70a572a593b..a6e3ad99561 100644 --- a/pkg/workflow/safe_outputs_permissions_test.go +++ b/pkg/workflow/safe_outputs_permissions_test.go @@ -1,3 +1,5 @@ +//go:build !integration + package workflow import ( From 342024fb4af7c10713f17457d37f5db1f77f55e4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 13 Feb 2026 23:48:49 +0000 Subject: [PATCH 3/3] fix: Accept HTTP 403 as valid error in run workflow test The test TestRunWorkflowOnGitHub_FlagCombinations/push_flag_with_remote_repo expects specific error messages when attempting to run a remote workflow. Add HTTP 403 (Forbidden) to the list of acceptable error responses, which can occur due to GitHub API rate limiting or authentication issues. This complements the existing HTTP 404 check and makes the test more resilient to different API error conditions. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- pkg/cli/run_workflow_execution_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/cli/run_workflow_execution_test.go b/pkg/cli/run_workflow_execution_test.go index 069938a5c77..cbfce444fa8 100644 --- a/pkg/cli/run_workflow_execution_test.go +++ b/pkg/cli/run_workflow_execution_test.go @@ -240,11 +240,12 @@ func TestRunWorkflowOnGitHub_FlagCombinations(t *testing.T) { push: true, repoOverride: "owner/repo", expectError: true, - // Accept either the expected validation error, GH_TOKEN error in CI, or HTTP 404 for non-existent repo + // Accept either the expected validation error, GH_TOKEN error in CI, HTTP 404 for non-existent repo, or HTTP 403 for auth issues errorContains: []string{ "--push flag is only supported for local workflows", "GH_TOKEN environment variable", "HTTP 404", + "HTTP 403", }, }, }