Summary
Daily npm run lint:setup-js surfaced a focused input parsing and validation slice across actions/setup/js. This group clusters missing guards around numeric parsing, dates, JSON/URL parsing, and request/response error boundaries.
Affected files
actions/setup/js/add_reaction_and_edit_comment.cjs
actions/setup/js/add_workflow_run_comment.cjs
actions/setup/js/artifact_client.cjs
actions/setup/js/awf_reflect.cjs
actions/setup/js/check_daily_aic_workflow_guardrail.cjs
actions/setup/js/check_rate_limit.cjs
actions/setup/js/check_runs_helpers.cjs
actions/setup/js/create_prompt.cjs
actions/setup/js/data_schema_normalizer.cjs
actions/setup/js/evaluate_outcomes.cjs
actions/setup/js/exchange_otlp_workload_identity.cjs
actions/setup/js/fuzz_template_substitution_harness.cjs
actions/setup/js/generate_usage_activity_summary.cjs
actions/setup/js/handle_noop_message.cjs
actions/setup/js/memory_custom_validation.cjs
actions/setup/js/notify_comment_error.cjs
actions/setup/js/push_repo_memory.cjs
actions/setup/js/safe-outputs-mcp-server.cjs
Representative diagnostics
add_reaction_and_edit_comment.cjs:267 — gh-aw-custom/require-nan-check-after-split-index-parse
check_rate_limit.cjs:46 — gh-aw-custom/require-nan-check-after-env-numeric-parse
check_runs_helpers.cjs:43 — gh-aw-custom/require-invalid-date-check-before-compare
data_schema_normalizer.cjs:155 — gh-aw-custom/require-json-parse-try-catch
exchange_otlp_workload_identity.cjs:34 — gh-aw-custom/require-fetch-try-catch
artifact_client.cjs:299 — gh-aw-custom/require-fetch-response-body-try-catch
Expected outcome
Add validation and try/catch coverage around parsed numeric/date/JSON/URL inputs and fetch/response body operations so malformed inputs and transient I/O failures surface clearly instead of propagating as uncaught runtime errors.
Remediation checklist
Copilot instructions
- Focus on adding the smallest safe guards needed to satisfy the reported rules.
- Preserve existing APIs and behavior except for clearer failure handling.
- Reuse existing helper/error patterns in nearby files where possible.
- Do not broaden scope beyond the listed validation and boundary issues.
Generated by 🧹 ESLint Monster · gpt54 · 17 AIC · ⌖ 6.58 AIC · ⊞ 5.5K · ◷
Summary
Daily
npm run lint:setup-jssurfaced a focused input parsing and validation slice acrossactions/setup/js. This group clusters missing guards around numeric parsing, dates, JSON/URL parsing, and request/response error boundaries.Affected files
actions/setup/js/add_reaction_and_edit_comment.cjsactions/setup/js/add_workflow_run_comment.cjsactions/setup/js/artifact_client.cjsactions/setup/js/awf_reflect.cjsactions/setup/js/check_daily_aic_workflow_guardrail.cjsactions/setup/js/check_rate_limit.cjsactions/setup/js/check_runs_helpers.cjsactions/setup/js/create_prompt.cjsactions/setup/js/data_schema_normalizer.cjsactions/setup/js/evaluate_outcomes.cjsactions/setup/js/exchange_otlp_workload_identity.cjsactions/setup/js/fuzz_template_substitution_harness.cjsactions/setup/js/generate_usage_activity_summary.cjsactions/setup/js/handle_noop_message.cjsactions/setup/js/memory_custom_validation.cjsactions/setup/js/notify_comment_error.cjsactions/setup/js/push_repo_memory.cjsactions/setup/js/safe-outputs-mcp-server.cjsRepresentative diagnostics
add_reaction_and_edit_comment.cjs:267—gh-aw-custom/require-nan-check-after-split-index-parsecheck_rate_limit.cjs:46—gh-aw-custom/require-nan-check-after-env-numeric-parsecheck_runs_helpers.cjs:43—gh-aw-custom/require-invalid-date-check-before-comparedata_schema_normalizer.cjs:155—gh-aw-custom/require-json-parse-try-catchexchange_otlp_workload_identity.cjs:34—gh-aw-custom/require-fetch-try-catchartifact_client.cjs:299—gh-aw-custom/require-fetch-response-body-try-catchExpected outcome
Add validation and try/catch coverage around parsed numeric/date/JSON/URL inputs and fetch/response body operations so malformed inputs and transient I/O failures surface clearly instead of propagating as uncaught runtime errors.
Remediation checklist
actions/setup/jsparsing, validation, and request-boundary logic only.new URL(...),fetch(...), response body reads, and sync temp-file creation in targeted try/catch blocks with preserved context.npm run lint:setup-jsas the final validation.Copilot instructions