GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Migrate to ESM and upgrade dependencies by v-priyagupta108 · Pull Request #752 · actions/setup-dotnet

Conversation

@v-priyagupta108

@v-priyagupta108 v-priyagupta108 commented Jun 26, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Description:
Convert to ESM, update imports/tests/configs for ESM, and bump dependencies.

Related issue:
#731

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@v-priyagupta108
v-priyagupta108 requested a review from a team as a code owner June 26, 2026 07:21
Copilot AI review requested due to automatic review settings June 26, 2026 07:21
@v-priyagupta108 v-priyagupta108 self-assigned this Jun 26, 2026
Copilot started reviewing on behalf of v-priyagupta108 June 26, 2026 07:21
View session
Copilot AI reviewed Jun 26, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the action’s TypeScript codebase to ESM (NodeNext) and updates the toolchain/configuration to support ESM linting and testing, alongside a broad dependency refresh.

Changes:

  • Switch TypeScript compilation to NodeNext and update internal imports / __dirname usage for ESM.
  • Replace legacy ESLint/Jest/Prettier configs with ESM-friendly equivalents and update tests to ESM mocking patterns.
  • Bump runtime/dev dependencies and refresh licensed metadata to match new dependency graph.

Reviewed changes

Copilot reviewed 67 out of 78 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tsconfig.json Switch TS module system to NodeNext
tsconfig.eslint.json Add dedicated TS config for ESLint
src/setup-dotnet.ts Update imports and ESM path resolution
src/installer.ts Update imports and ESM path resolution
src/cache-utils.ts Update relative import to .js specifier
src/cache-save.ts Update relative imports to .js specifiers
src/cache-restore.ts Update relative imports to .js specifiers
package.json Mark package as ESM; bump deps/scripts
jest.config.ts New TS-based Jest config for ESM + ts-jest
jest.config.js Remove legacy CommonJS Jest config
eslint.config.mjs New flat ESLint config for ESM/TS
dist/setup/package.json Mark bundled setup output as ESM
dist/cache-save/package.json Mark bundled post step output as ESM
.prettierrc.json Add JSON-based Prettier config
.prettierrc.js Remove legacy CommonJS Prettier config
.licenses/npm/yallist.dep.yml Remove outdated licensed entry
.licenses/npm/wrappy.dep.yml Remove outdated licensed entry
.licenses/npm/universal-user-agent.dep.yml Update licensed metadata for new version
.licenses/npm/semver.dep.yml Update licensed metadata for new version
.licenses/npm/semver-7.6.0.dep.yml Remove outdated licensed entry
.licenses/npm/once.dep.yml Remove outdated licensed entry
.licenses/npm/ms.dep.yml Update licensed metadata for new version
.licenses/npm/minimatch-3.1.5.dep.yml Add licensed metadata for dependency
.licenses/npm/minimatch-10.2.5.dep.yml Add licensed metadata for dependency
.licenses/npm/lru-cache.dep.yml Remove outdated licensed entry
.licenses/npm/json-with-bigint.dep.yml Update licensed metadata for dependency change
.licenses/npm/fast-xml-parser.dep.yml Update licensed metadata for new version
.licenses/npm/deprecation.dep.yml Remove outdated licensed entry
.licenses/npm/debug.dep.yml Update licensed metadata for new version
.licenses/npm/content-type.dep.yml Add licensed metadata for dependency
.licenses/npm/brace-expansion-5.0.6.dep.yml Add licensed metadata for dependency
.licenses/npm/brace-expansion-1.1.15.dep.yml Add licensed metadata for dependency
.licenses/npm/before-after-hook.dep.yml Update licensed metadata for new version
.licenses/npm/balanced-match-4.0.4.dep.yml Add licensed metadata for dependency
.licenses/npm/balanced-match-1.0.2.dep.yml Add licensed metadata for dependency
.licenses/npm/@typespec/ts-http-runtime.dep.yml Update licensed metadata for new version
.licenses/npm/@octokit/types.dep.yml Update licensed metadata for new version
.licenses/npm/@octokit/types-13.10.0.dep.yml Remove outdated licensed entry
.licenses/npm/@octokit/request.dep.yml Update licensed metadata for new version
.licenses/npm/@octokit/request-error.dep.yml Update licensed metadata for new version
.licenses/npm/@octokit/plugin-rest-endpoint-methods.dep.yml Update licensed metadata for new version
.licenses/npm/@octokit/plugin-paginate-rest.dep.yml Update licensed metadata for new version
.licenses/npm/@octokit/openapi-types.dep.yml Update licensed metadata for new version
.licenses/npm/@octokit/graphql.dep.yml Update licensed metadata for new version
.licenses/npm/@octokit/endpoint.dep.yml Update licensed metadata for new version
.licenses/npm/@octokit/core.dep.yml Update licensed metadata for new version
.licenses/npm/@octokit/auth-token.dep.yml Update licensed metadata for new version
.licenses/npm/@azure/storage-common.dep.yml Update licensed metadata for new version
.licenses/npm/@azure/storage-blob.dep.yml Update licensed metadata for new version
.licenses/npm/@azure/core-xml.dep.yml Update licensed metadata for new version
.licenses/npm/@azure/core-rest-pipeline.dep.yml Update licensed metadata for new version
.licenses/npm/@azure/core-http-compat.dep.yml Update licensed metadata for new version
.licenses/npm/@azure/core-client.dep.yml Update licensed metadata for new version
.licenses/npm/@azure/abort-controller.dep.yml Add licensed metadata for dependency
.licenses/npm/@actions/io.dep.yml Update licensed metadata for new version
.licenses/npm/@actions/http-client-4.0.1.dep.yml Update licensed metadata for new version
.licenses/npm/@actions/glob-0.7.0.dep.yml Correct/update licensed metadata entry
.licenses/npm/@actions/glob-0.6.1.dep.yml Update licensed metadata for new version
.licenses/npm/@actions/github.dep.yml Update licensed metadata for new version
.licenses/npm/@actions/exec.dep.yml Update licensed metadata for new version
.licenses/npm/@actions/core.dep.yml Update licensed metadata for new version
.licenses/npm/@actions/cache.dep.yml Update licensed metadata for new version
.licensed.yml Allow/review new licenses introduced by bumps
.eslintrc.js Remove legacy ESLint config
.eslintignore Remove legacy ESLint ignore file
tests/setup-dotnet.test.ts Convert tests to ESM module mocking/imports
tests/latest-version.test.ts Convert tests to ESM module mocking/imports
tests/installer.test.ts Convert tests to ESM module mocking/imports
tests/installation-scripts.test.ts Fix __dirname usage for ESM tests
tests/csc.test.ts Update JSON import + TS indexing workaround
tests/cache-utils.test.ts Convert tests to ESM module mocking/imports
tests/cache-save.test.ts Convert tests to ESM module mocking/imports
tests/cache-restore.test.ts Convert tests to ESM module mocking/imports
tests/authutil.test.ts Fix __dirname usage + ESM import specifiers
tests/snapshots/authutil.test.ts.snap Update snapshot header text

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread package.json Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/installer.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@v-priyagupta108
Migrate to ESM and upgrade dependencies
876a438
@v-priyagupta108
v-priyagupta108 force-pushed the esm-and-dependency-upgrades branch from 716782d to 876a438 Compare June 26, 2026 07:42
v-priyagupta108 added 2 commits June 26, 2026 13:23
@v-priyagupta108
Address review: use type-only import for QualityOptions
d3b9b11
@v-priyagupta108
update version to 6.0.0 in package.json and package-lock.json
db074bb
@Frulfump

Frulfump commented Jun 26, 2026

Copy link
Copy Markdown

This should fix #731
So maybe worth to link with a "Fixes ..." comment?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Frulfump Frulfump mentioned this pull request Jun 26, 2026
Fix several npm packages with high vulnerabilities to unblock CI #731
Closed
4 of 5 tasks
@Frulfump

Frulfump commented Jun 26, 2026

Copy link
Copy Markdown

https://github.com/actions/setup-dotnet/actions/runs/28232146400/job/83638225574#step:9:1

Reports 18 moderate severity vulns so would be good to fix those as well.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

v-priyagupta108 and others added 2 commits July 1, 2026 11:04
@v-priyagupta108
Add ESM migration note to README for V6
60379d7
@v-priyagupta108
Update test imports for ESM and clean up devDependencies (ts-node, @t…
d4356c9
…ypes/jest)
@v-priyagupta108
v-priyagupta108 force-pushed the esm-and-dependency-upgrades branch from 3d1f979 to d4356c9 Compare July 7, 2026 03:54
v-gowridurgad
v-gowridurgad previously approved these changes Jul 9, 2026
View reviewed changes
@Frulfump

Frulfump commented Jul 9, 2026

Copy link
Copy Markdown

https://github.com/actions/setup-dotnet/actions/runs/28232146400/job/83638225574#step:9:1

Reports 18 moderate severity vulns so would be good to fix those as well.

This is clean now https://github.com/actions/setup-dotnet/actions/runs/28840313597/job/85532800573#step:9:1 reports 0 vulns nice job!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@v-priyagupta108
v-priyagupta108 dismissed v-gowridurgad’s stale review via 871f905 July 10, 2026 11:19
v-gowridurgad
v-gowridurgad previously approved these changes Jul 10, 2026
View reviewed changes
v-priya-kinthali
v-priya-kinthali previously approved these changes Jul 10, 2026
View reviewed changes
@v-priyagupta108
v-priyagupta108 dismissed stale reviews from v-priya-kinthali and v-gowridurgad via 8578015 July 14, 2026 05:00
Frulfump
Frulfump reviewed Jul 14, 2026
View reviewed changes
Comment thread tsconfig.json Resolved

Uh oh!

There was an error while loading. Please reload this page.

Frulfump
Frulfump reviewed Jul 14, 2026
View reviewed changes
Comment thread README.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Frulfump
Frulfump reviewed Jul 14, 2026
View reviewed changes
Comment thread package.json Resolved

Uh oh!

There was an error while loading. Please reload this page.

@v-priyagupta108
v-priyagupta108 force-pushed the esm-and-dependency-upgrades branch from 8578015 to 095bad8 Compare July 14, 2026 08:02
@v-priyagupta108
Pin @types/node to 24.x and refine tsconfig/README wording
3c38197
@v-priyagupta108
v-priyagupta108 force-pushed the esm-and-dependency-upgrades branch from 095bad8 to 3c38197 Compare July 14, 2026 08:07
v-gowridurgad
v-gowridurgad approved these changes Jul 14, 2026
View reviewed changes
v-priya-kinthali
v-priya-kinthali approved these changes Jul 14, 2026
View reviewed changes
v-HarithaVattikuti
v-HarithaVattikuti approved these changes Jul 15, 2026
View reviewed changes
@v-HarithaVattikuti
v-HarithaVattikuti merged commit 6df8cef into actions:main Jul 15, 2026
118 checks passed

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Jul 15, 2026
Bump semver and @types/semver #657
Closed
Automatic update of configuration files from 07/12/2026 #755
Closed
mergify Bot added a commit to ArcadeData/arcadedb that referenced this pull request Jul 19, 2026
@mergify
chore(deps): bump actions/setup-dotnet from 5.4.0 to 6.0.0 [skip ci]
8f78058
Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet) from 5.4.0 to 6.0.0.
Release notes

*Sourced from [actions/setup-dotnet's releases](https://github.com/actions/setup-dotnet/releases).*

> v6.0.0
> ------
>
> What's Changed
> --------------
>
> * Migrate to ESM and upgrade dependencies by [`@​priyagupta108`](https://github.com/priyagupta108) in [actions/setup-dotnet#752](https://redirect.github.com/actions/setup-dotnet/pull/752)
> * Bump actions/checkout from 6.0.3 to 7.0.0 by [`@​dependabot`](https://github.com/dependabot)[bot] in [actions/setup-dotnet#751](https://redirect.github.com/actions/setup-dotnet/pull/751)
> * chore(deps): bump `@​actions/cache` to 6.2.0 by [`@​philip-gai`](https://github.com/philip-gai) in [actions/setup-dotnet#756](https://redirect.github.com/actions/setup-dotnet/pull/756)
>
> New Contributors
> ----------------
>
> * [`@​philip-gai`](https://github.com/philip-gai) made their first contribution in [actions/setup-dotnet#756](https://redirect.github.com/actions/setup-dotnet/pull/756)
>
> **Full Changelog**: <actions/setup-dotnet@v5...v6.0.0>


Commits

* [`a98b568`](actions/setup-dotnet@a98b568) chore(deps): bump `@​actions/cache` to 6.2.0 ([#756](https://redirect.github.com/actions/setup-dotnet/issues/756))
* [`afb2931`](actions/setup-dotnet@afb2931) Bump actions/checkout from 6.0.3 to 7.0.0 ([#751](https://redirect.github.com/actions/setup-dotnet/issues/751))
* [`6df8cef`](actions/setup-dotnet@6df8cef) Migrate to ESM and upgrade dependencies ([#752](https://redirect.github.com/actions/setup-dotnet/issues/752))
* See full diff in [compare view](actions/setup-dotnet@26b0ec1...a98b568)
  
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility\_score?dependency-name=actions/setup-dotnet&package-manager=github\_actions&previous-version=5.4.0&new-version=6.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
  
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot show  ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Copilot AI mentioned this pull request Jul 23, 2026
Bump the github-actions group across 1 directory with 4 updates boxofyellow/ConsoleMarkdownRenderer#268
Merged
@somaz94 somaz94 mentioned this pull request Jul 24, 2026
Add dotnet-version-file input to read the .NET SDK version from a file #743
Closed
This was referenced Sep 2, 2026
chore(ci): bump actions/setup-dotnet from 5 to 6 bauer-group/automation-templates#91
Merged
chore(ci): bump the composite-actions group across 4 directories with 3 updates bauer-group/automation-templates#95
Merged
@rennerdo30 rennerdo30 mentioned this pull request Oct 21, 2026
[Historical PR] chore(deps): bump actions/setup-dotnet from 5 to 6 rennerdo30/UnityLongPathPlugin#10
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@v-HarithaVattikuti v-HarithaVattikuti v-HarithaVattikuti approved these changes
@v-priya-kinthali v-priya-kinthali v-priya-kinthali approved these changes
@v-gowridurgad v-gowridurgad v-gowridurgad approved these changes
+1 more reviewer
@Frulfump Frulfump Frulfump left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@v-priyagupta108 v-priyagupta108

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@v-priyagupta108 @Frulfump @v-HarithaVattikuti @v-priya-kinthali @v-gowridurgad
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.