Summary
Daily npm run lint:setup-js surfaced a broad error-safety and observability slice across actions/setup/js. This group clusters findings where runtime failures are swallowed, surfaced unsafely, or lose important context.
Affected files
actions/setup/js/check_daily_aic_workflow_guardrail.cjs
actions/setup/js/collect_ndjson_output.cjs
actions/setup/js/emit_outcome_spans.cjs
actions/setup/js/extra_empty_commit.cjs
actions/setup/js/frontmatter_hash_pure.cjs
actions/setup/js/gateway_difc_filtered.cjs
actions/setup/js/generate_git_bundle.cjs
actions/setup/js/generate_git_patch.cjs
actions/setup/js/generate_observability_summary.cjs
actions/setup/js/handle_agent_failure.cjs
actions/setup/js/mcp_dependencies_manager.cjs
actions/setup/js/parse_custom_log.cjs
actions/setup/js/parse_gemini_log.cjs
actions/setup/js/parse_mcp_gateway_log.cjs
actions/setup/js/parse_pi_log.cjs
actions/setup/js/parse_threat_detection_results.cjs
actions/setup/js/push_experiment_state.cjs
actions/setup/js/push_signed_commits.cjs
actions/setup/js/push_to_pull_request_branch.cjs
actions/setup/js/redact_secrets.cjs
actions/setup/js/render_evals_summary.cjs
actions/setup/js/run_operation_update_upgrade.cjs
actions/setup/js/safe_output_type_validator.cjs
actions/setup/js/safeoutputs_cli.cjs
actions/setup/js/send_otlp_span.cjs
actions/setup/js/setup_threat_detection.cjs
actions/setup/js/start_mcp_gateway.cjs
actions/setup/js/check_permissions_utils.cjs
actions/setup/js/checkout_manifest.cjs
actions/setup/js/complete_pre_created_check_run.cjs
actions/setup/js/copilot_harness.cjs
actions/setup/js/copilot_sdk_driver.cjs
actions/setup/js/create_issue.cjs
actions/setup/js/detect_agent_errors.cjs
actions/setup/js/dismiss_pull_request_review.cjs
actions/setup/js/frontmatter_hash_pure.cjs
actions/setup/js/mcp_server_core.cjs
actions/setup/js/parse_mcp_scripts_logs.cjs
actions/setup/js/parse_token_usage.cjs
actions/setup/js/pi_agent_core_driver.cjs
actions/setup/js/pick_experiment.cjs
actions/setup/js/remove_trigger_label.cjs
actions/setup/js/resolve_mentions_from_payload.cjs
Representative diagnostics
check_daily_aic_workflow_guardrail.cjs:118 — gh-aw-custom/no-empty-catch-block
collect_ndjson_output.cjs:448 — gh-aw-custom/no-empty-catch-block
check_permissions_utils.cjs:210 — gh-aw-custom/no-unsafe-catch-error-property
complete_pre_created_check_run.cjs:57 — gh-aw-custom/prefer-get-error-message
copilot_harness.cjs:937 — gh-aw-custom/no-caught-error-interpolation
copilot_sdk_driver.cjs:148 — gh-aw-custom/no-err-stack-then-string-fallback
Expected outcome
Replace silent catch blocks with explicit fallback/logging, route caught-error formatting through the shared helpers, and remove unsafe direct property access on unknown thrown values so actions/setup/js error paths become lint-clean without changing behavior.
Remediation checklist
Copilot instructions
- Tackle the listed files only.
- Favor small, mechanical fixes grouped by repeated lint rule.
- Reuse existing helper patterns already present under
actions/setup/js.
- Do not mix in unrelated refactors.
Generated by 🧹 ESLint Monster · gpt54 · 17 AIC · ⌖ 6.58 AIC · ⊞ 5.5K · ◷
Summary
Daily
npm run lint:setup-jssurfaced a broad error-safety and observability slice acrossactions/setup/js. This group clusters findings where runtime failures are swallowed, surfaced unsafely, or lose important context.Affected files
actions/setup/js/check_daily_aic_workflow_guardrail.cjsactions/setup/js/collect_ndjson_output.cjsactions/setup/js/emit_outcome_spans.cjsactions/setup/js/extra_empty_commit.cjsactions/setup/js/frontmatter_hash_pure.cjsactions/setup/js/gateway_difc_filtered.cjsactions/setup/js/generate_git_bundle.cjsactions/setup/js/generate_git_patch.cjsactions/setup/js/generate_observability_summary.cjsactions/setup/js/handle_agent_failure.cjsactions/setup/js/mcp_dependencies_manager.cjsactions/setup/js/parse_custom_log.cjsactions/setup/js/parse_gemini_log.cjsactions/setup/js/parse_mcp_gateway_log.cjsactions/setup/js/parse_pi_log.cjsactions/setup/js/parse_threat_detection_results.cjsactions/setup/js/push_experiment_state.cjsactions/setup/js/push_signed_commits.cjsactions/setup/js/push_to_pull_request_branch.cjsactions/setup/js/redact_secrets.cjsactions/setup/js/render_evals_summary.cjsactions/setup/js/run_operation_update_upgrade.cjsactions/setup/js/safe_output_type_validator.cjsactions/setup/js/safeoutputs_cli.cjsactions/setup/js/send_otlp_span.cjsactions/setup/js/setup_threat_detection.cjsactions/setup/js/start_mcp_gateway.cjsactions/setup/js/check_permissions_utils.cjsactions/setup/js/checkout_manifest.cjsactions/setup/js/complete_pre_created_check_run.cjsactions/setup/js/copilot_harness.cjsactions/setup/js/copilot_sdk_driver.cjsactions/setup/js/create_issue.cjsactions/setup/js/detect_agent_errors.cjsactions/setup/js/dismiss_pull_request_review.cjsactions/setup/js/frontmatter_hash_pure.cjsactions/setup/js/mcp_server_core.cjsactions/setup/js/parse_mcp_scripts_logs.cjsactions/setup/js/parse_token_usage.cjsactions/setup/js/pi_agent_core_driver.cjsactions/setup/js/pick_experiment.cjsactions/setup/js/remove_trigger_label.cjsactions/setup/js/resolve_mentions_from_payload.cjsRepresentative diagnostics
check_daily_aic_workflow_guardrail.cjs:118—gh-aw-custom/no-empty-catch-blockcollect_ndjson_output.cjs:448—gh-aw-custom/no-empty-catch-blockcheck_permissions_utils.cjs:210—gh-aw-custom/no-unsafe-catch-error-propertycomplete_pre_created_check_run.cjs:57—gh-aw-custom/prefer-get-error-messagecopilot_harness.cjs:937—gh-aw-custom/no-caught-error-interpolationcopilot_sdk_driver.cjs:148—gh-aw-custom/no-err-stack-then-string-fallbackExpected outcome
Replace silent catch blocks with explicit fallback/logging, route caught-error formatting through the shared helpers, and remove unsafe direct property access on unknown thrown values so
actions/setup/jserror paths become lint-clean without changing behavior.Remediation checklist
actions/setup/jserror-handling and observability paths only.getErrorMessage(...)instead of direct interpolation,.stackfallbacks, or unsafe.status/.code/.messageproperty reads.npm run lint:setup-jsas the final validation.Copilot instructions
actions/setup/js.