Summary
Daily npm run lint:setup-js found a large cluster of error-message hygiene warnings in actions/setup/js: caught errors are being rendered with String(err), direct template interpolation like ${err}, or err.stack ? err.stack : String(err) instead of the shared sanitizing helper.
Root cause group
Use the existing getErrorMessage(...) helper consistently when formatting caught exceptions in actions/setup/js.
Affected files
actions/setup/js/apply_safe_outputs_replay.cjs
actions/setup/js/apply_samples.cjs
actions/setup/js/artifact_client.cjs
actions/setup/js/build_checkout_manifest.cjs
actions/setup/js/check_workflow_recompile_needed.cjs
actions/setup/js/convert_gateway_config_shared.cjs
actions/setup/js/copilot_harness.cjs
actions/setup/js/copilot_sdk_driver.cjs
actions/setup/js/create_code_scanning_alert.cjs
actions/setup/js/create_issue.cjs
actions/setup/js/create_pull_request.cjs
actions/setup/js/frontmatter_hash_pure.cjs
actions/setup/js/generate_aw_info.cjs
actions/setup/js/generate_git_bundle.cjs
actions/setup/js/generate_git_patch.cjs
actions/setup/js/generate_safe_outputs_tools.cjs
actions/setup/js/github_rate_limit_logger.cjs
actions/setup/js/handle_agent_failure.cjs
actions/setup/js/handle_detection_runs.cjs
actions/setup/js/handle_noop_message.cjs
actions/setup/js/install_frontmatter_skills.cjs
actions/setup/js/load_experiment_state_from_repo.cjs
actions/setup/js/mcp_scripts_config_loader.cjs
actions/setup/js/merge_remote_agent_github_folder.cjs
actions/setup/js/messages_core.cjs
actions/setup/js/mount_mcp_as_cli.cjs
actions/setup/js/parse_mcp_gateway_log.cjs
actions/setup/js/parse_mcp_scripts_logs.cjs
actions/setup/js/parse_token_usage.cjs
actions/setup/js/patch_awf_chroot_config.cjs
actions/setup/js/pi_agent_core_driver.cjs
actions/setup/js/pick_experiment.cjs
actions/setup/js/push_to_pull_request_branch.cjs
actions/setup/js/route_slash_command.cjs
actions/setup/js/run_evals.cjs
actions/setup/js/runtime_import.cjs
actions/setup/js/safe_outputs_config.cjs
actions/setup/js/safe_outputs_handlers.cjs
actions/setup/js/safe_outputs_tools_loader.cjs
actions/setup/js/setup_comment_memory_files.cjs
actions/setup/js/setup_threat_detection.cjs
actions/setup/js/start_mcp_gateway.cjs
actions/setup/js/upload_artifact.cjs
Representative diagnostics
actions/setup/js/apply_safe_outputs_replay.cjs:76 — gh-aw-custom/prefer-get-error-message-over-string
actions/setup/js/copilot_harness.cjs:859 — gh-aw-custom/no-caught-error-interpolation
actions/setup/js/copilot_sdk_driver.cjs:148 — gh-aw-custom/no-err-stack-then-string-fallback
actions/setup/js/create_issue.cjs:1192 — gh-aw-custom/no-err-stack-then-string-fallback
actions/setup/js/route_slash_command.cjs:41 — gh-aw-custom/prefer-get-error-message-over-string
actions/setup/js/start_mcp_gateway.cjs:380 — gh-aw-custom/prefer-get-error-message-over-string
Expected outcome
Replace unsafe or noisy caught-error formatting with getErrorMessage(...) where available, keeping behavior the same except for cleaner and more consistent error text.
Checklist
Generated by 🧹 ESLint Monster · gpt54 · 15.8 AIC · ⌖ 6.66 AIC · ⊞ 4.8K · ◷
Summary
Daily
npm run lint:setup-jsfound a large cluster of error-message hygiene warnings inactions/setup/js: caught errors are being rendered withString(err), direct template interpolation like${err}, orerr.stack ? err.stack : String(err)instead of the shared sanitizing helper.Root cause group
Use the existing
getErrorMessage(...)helper consistently when formatting caught exceptions inactions/setup/js.Affected files
actions/setup/js/apply_safe_outputs_replay.cjsactions/setup/js/apply_samples.cjsactions/setup/js/artifact_client.cjsactions/setup/js/build_checkout_manifest.cjsactions/setup/js/check_workflow_recompile_needed.cjsactions/setup/js/convert_gateway_config_shared.cjsactions/setup/js/copilot_harness.cjsactions/setup/js/copilot_sdk_driver.cjsactions/setup/js/create_code_scanning_alert.cjsactions/setup/js/create_issue.cjsactions/setup/js/create_pull_request.cjsactions/setup/js/frontmatter_hash_pure.cjsactions/setup/js/generate_aw_info.cjsactions/setup/js/generate_git_bundle.cjsactions/setup/js/generate_git_patch.cjsactions/setup/js/generate_safe_outputs_tools.cjsactions/setup/js/github_rate_limit_logger.cjsactions/setup/js/handle_agent_failure.cjsactions/setup/js/handle_detection_runs.cjsactions/setup/js/handle_noop_message.cjsactions/setup/js/install_frontmatter_skills.cjsactions/setup/js/load_experiment_state_from_repo.cjsactions/setup/js/mcp_scripts_config_loader.cjsactions/setup/js/merge_remote_agent_github_folder.cjsactions/setup/js/messages_core.cjsactions/setup/js/mount_mcp_as_cli.cjsactions/setup/js/parse_mcp_gateway_log.cjsactions/setup/js/parse_mcp_scripts_logs.cjsactions/setup/js/parse_token_usage.cjsactions/setup/js/patch_awf_chroot_config.cjsactions/setup/js/pi_agent_core_driver.cjsactions/setup/js/pick_experiment.cjsactions/setup/js/push_to_pull_request_branch.cjsactions/setup/js/route_slash_command.cjsactions/setup/js/run_evals.cjsactions/setup/js/runtime_import.cjsactions/setup/js/safe_outputs_config.cjsactions/setup/js/safe_outputs_handlers.cjsactions/setup/js/safe_outputs_tools_loader.cjsactions/setup/js/setup_comment_memory_files.cjsactions/setup/js/setup_threat_detection.cjsactions/setup/js/start_mcp_gateway.cjsactions/setup/js/upload_artifact.cjsRepresentative diagnostics
actions/setup/js/apply_safe_outputs_replay.cjs:76—gh-aw-custom/prefer-get-error-message-over-stringactions/setup/js/copilot_harness.cjs:859—gh-aw-custom/no-caught-error-interpolationactions/setup/js/copilot_sdk_driver.cjs:148—gh-aw-custom/no-err-stack-then-string-fallbackactions/setup/js/create_issue.cjs:1192—gh-aw-custom/no-err-stack-then-string-fallbackactions/setup/js/route_slash_command.cjs:41—gh-aw-custom/prefer-get-error-message-over-stringactions/setup/js/start_mcp_gateway.cjs:380—gh-aw-custom/prefer-get-error-message-over-stringExpected outcome
Replace unsafe or noisy caught-error formatting with
getErrorMessage(...)where available, keeping behavior the same except for cleaner and more consistent error text.Checklist
getErrorMessage(err)overString(err),${err}, orerr.stackfallback patternsactions/setup/jsnpm run lint:setup-js