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", }, }, } 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 (