Fix ESLint errors from @actions/github v9 upgrade #3442
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The @actions/github v9 upgrade introduced ESM-style imports with
.jsextensions in TypeScript declaration files and stricter types. ESLint's import plugin cannot parse these, causing the Rebuild Action workflow to fail with 78 errors.Changes
ESLint configuration (
eslint.config.mjs):@actions/githubtoimport/ignoreto bypass parse errors from ESM importsno-unsafe-argument,no-unsafe-call,no-unsafe-return(consistent with existingno-unsafe-assignment,no-unsafe-member-access)TypeScript configuration (
tsconfig.json):baseUrl: "."and paths mapping for@octokit/core/typessubpath export resolutionSource files:
eslint-disabledirectivesRisk assessment
Low risk: Configuration-only changes to accommodate dependency upgrade. No logic changes.
Which use cases does this change impact?
Workflow types:
dynamicworkflows (Default Setup, CCR, ...).Products:
analysis-kinds: code-scanning.analysis-kinds: code-quality.upload-sarifaction.Environments:
github.comand/or GitHub Enterprise Cloud with Data Residency.How did/will you validate this change?
.test.tsfiles).pr-checks).If something goes wrong after this change is released, what are the mitigation and rollback strategies?
How will you know if something goes wrong after this change is released?
Are there any special considerations for merging or releasing this change?
Merge / deployment checklist
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.