Skip to content

[eslint-monster] setup/js lint stream 1: replace console.log with core.info in OTLP and outcome scripts #47411

Description

@github-actions

Summary

Daily npm run lint:setup-js found a concentrated gh-aw-custom/prefer-core-logging stream in actions/setup/js where production scripts still call console.log() instead of the action logging shim.

Root cause group

Direct console.log() usage in action/runtime scripts that already have global.core available via shim.cjs.

Affected files

  • actions/setup/js/action_conclusion_otlp.cjs
  • actions/setup/js/action_setup_otlp.cjs
  • actions/setup/js/emit_outcome_spans.cjs
  • actions/setup/js/evaluate_outcomes.cjs
  • actions/setup/js/ai_credits_context.cjs
  • actions/setup/js/generate_safe_outputs_tools.cjs
  • actions/setup/js/test-live-github-api.cjs

Representative diagnostics

  • action_conclusion_otlp.cjs:80:5Use core.info instead of console.log()
  • action_setup_otlp.cjs:45:5Use core.info instead of console.log()
  • emit_outcome_spans.cjs:79:5Use core.info instead of console.log()
  • evaluate_outcomes.cjs:2300:3Use core.info instead of console.log()
  • ai_credits_context.cjs:326:19Use core.info instead of console.log()

Expected outcome

Replace console.log() calls with the appropriate core.info() logging path without changing message content or control flow, keeping logs compatible with GitHub Actions annotations and structured output.

Checklist

  • Replace direct console.log() calls with core.info() in the files above
  • Preserve existing log wording and runtime behavior
  • Run npm run lint:setup-js
  • Confirm this remediation stream is clean

Generated by 🧹 ESLint Monster · gpt54 25.8 AIC · ⌖ 8 AIC · ⊞ 4K ·

  • expires on Jul 29, 2026, 2:20 PM UTC-08:00

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions