Summary
Daily npm run lint:setup-js found a cluster of runtime-hardening warnings in actions/setup/js where throwing APIs are called without local handling.
Root cause group
Wrap throwing operations in the required guards so setup-time failures are reported cleanly instead of crashing the action.
Affected files
actions/setup/js/artifact_client.cjs
actions/setup/js/data_schema_normalizer.cjs
actions/setup/js/start_mcp_gateway.cjs
actions/setup/js/test-live-github-api.cjs
actions/setup/js/upload_artifact.cjs
actions/setup/js/validate_memory_files.cjs
Representative diagnostics
actions/setup/js/artifact_client.cjs:217 — gh-aw-custom/require-fetch-try-catch
actions/setup/js/data_schema_normalizer.cjs:155 — gh-aw-custom/require-json-parse-try-catch
actions/setup/js/start_mcp_gateway.cjs:876 — gh-aw-custom/require-execsync-try-catch
actions/setup/js/test-live-github-api.cjs:106 — gh-aw-custom/require-async-entrypoint-catch
actions/setup/js/upload_artifact.cjs:137 — gh-aw-custom/require-fs-io-try-catch
actions/setup/js/validate_memory_files.cjs:44 — gh-aw-custom/require-fs-io-try-catch
Expected outcome
Add local try/catch or equivalent structured error handling around these operations so the action fails predictably with actionable messages.
Checklist
Generated by 🧹 ESLint Monster · gpt54 · 15.8 AIC · ⌖ 6.66 AIC · ⊞ 4.8K · ◷
Summary
Daily
npm run lint:setup-jsfound a cluster of runtime-hardening warnings inactions/setup/jswhere throwing APIs are called without local handling.Root cause group
Wrap throwing operations in the required guards so setup-time failures are reported cleanly instead of crashing the action.
Affected files
actions/setup/js/artifact_client.cjsactions/setup/js/data_schema_normalizer.cjsactions/setup/js/start_mcp_gateway.cjsactions/setup/js/test-live-github-api.cjsactions/setup/js/upload_artifact.cjsactions/setup/js/validate_memory_files.cjsRepresentative diagnostics
actions/setup/js/artifact_client.cjs:217—gh-aw-custom/require-fetch-try-catchactions/setup/js/data_schema_normalizer.cjs:155—gh-aw-custom/require-json-parse-try-catchactions/setup/js/start_mcp_gateway.cjs:876—gh-aw-custom/require-execsync-try-catchactions/setup/js/test-live-github-api.cjs:106—gh-aw-custom/require-async-entrypoint-catchactions/setup/js/upload_artifact.cjs:137—gh-aw-custom/require-fs-io-try-catchactions/setup/js/validate_memory_files.cjs:44—gh-aw-custom/require-fs-io-try-catchExpected outcome
Add local
try/catchor equivalent structured error handling around these operations so the action fails predictably with actionable messages.Checklist
try/catchcoverage aroundfetch,JSON.parse,execSync, and sync fs calls.catch(...)handling where requiredactions/setup/jsnpm run lint:setup-js