From 1c96658dbca24c6bb11085362c754fb6acd6cb00 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 13 Feb 2026 06:46:28 +0000 Subject: [PATCH 1/3] Initial plan From 4f17aa79f39a266f07fd695e9fba8a2f9270e2c1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 13 Feb 2026 06:50:02 +0000 Subject: [PATCH 2/3] Start CI cleanup process Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/workflows/smoke-copilot.lock.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/smoke-copilot.lock.yml b/.github/workflows/smoke-copilot.lock.yml index bb8eb9abb82..156d988faf1 100644 --- a/.github/workflows/smoke-copilot.lock.yml +++ b/.github/workflows/smoke-copilot.lock.yml @@ -37,7 +37,7 @@ name: "Smoke Copilot" types: - labeled schedule: - - cron: "37 */12 * * *" + - cron: "46 */12 * * *" workflow_dispatch: null permissions: {} From 8168bbdffd39044555517a2d3f335ad48b373dfa Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 13 Feb 2026 06:54:35 +0000 Subject: [PATCH 3/3] Fix TypeScript errors in error handling for unknown types Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .../setup/js/merge_remote_agent_github_folder.cjs | 14 +++++++------- actions/setup/js/safe_output_handler_manager.cjs | 3 ++- .../js/safe_output_unified_handler_manager.cjs | 3 ++- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/actions/setup/js/merge_remote_agent_github_folder.cjs b/actions/setup/js/merge_remote_agent_github_folder.cjs index 6f843a36ac2..77a0a58356d 100644 --- a/actions/setup/js/merge_remote_agent_github_folder.cjs +++ b/actions/setup/js/merge_remote_agent_github_folder.cjs @@ -146,23 +146,23 @@ function validateGitParameter(value, name) { */ function validateSafePath(userPath, basePath, name) { // Reject paths with null bytes - if (userPath.includes('\0')) { + if (userPath.includes("\0")) { throw new Error(`Invalid ${name}: contains null bytes`); } - + // Reject paths that attempt to traverse up (..) - if (userPath.includes('..')) { + if (userPath.includes("..")) { throw new Error(`Invalid ${name}: path traversal detected`); } - + // Resolve the full path and ensure it's within the base path const resolvedPath = path.resolve(basePath, userPath); const resolvedBase = path.resolve(basePath); - + if (!resolvedPath.startsWith(resolvedBase + path.sep) && resolvedPath !== resolvedBase) { throw new Error(`Invalid ${name}: path escapes base directory`); } - + return resolvedPath; } @@ -239,7 +239,7 @@ function mergeGithubFolder(sourcePath, destPath) { for (const relativePath of sourceFiles) { // Validate relative path to prevent path traversal validateSafePath(relativePath, sourcePath, "relative file path"); - + // Check if the file is in one of the allowed subfolders const pathParts = relativePath.split(path.sep); const topLevelFolder = pathParts[0]; diff --git a/actions/setup/js/safe_output_handler_manager.cjs b/actions/setup/js/safe_output_handler_manager.cjs index 4783af00cc9..e4bb70d8b47 100644 --- a/actions/setup/js/safe_output_handler_manager.cjs +++ b/actions/setup/js/safe_output_handler_manager.cjs @@ -768,7 +768,8 @@ async function main() { core.warning(`✗ Failed to submit PR review: ${reviewResult.error}`); } } catch (reviewError) { - core.warning(`✗ Exception while submitting PR review: ${reviewError.message || reviewError}`); + const errorMessage = reviewError instanceof Error ? reviewError.message : String(reviewError); + core.warning(`✗ Exception while submitting PR review: ${errorMessage}`); } } diff --git a/actions/setup/js/safe_output_unified_handler_manager.cjs b/actions/setup/js/safe_output_unified_handler_manager.cjs index c0caecee3fe..2c1a553613b 100644 --- a/actions/setup/js/safe_output_unified_handler_manager.cjs +++ b/actions/setup/js/safe_output_unified_handler_manager.cjs @@ -970,7 +970,8 @@ async function main() { core.warning(`✗ Failed to submit PR review: ${reviewResult.error}`); } } catch (reviewError) { - core.warning(`✗ Exception while submitting PR review: ${reviewError.message || reviewError}`); + const errorMessage = reviewError instanceof Error ? reviewError.message : String(reviewError); + core.warning(`✗ Exception while submitting PR review: ${errorMessage}`); } }