setup-node icon indicating copy to clipboard operation
setup-node copied to clipboard

Node distributions not pulled from authenticated mirrors

Open yaworski-joseph-bah2 opened this issue 4 months ago • 4 comments

Description: When you use an authenticated mirror, the node distribution is always pulled from github, not from the mirror. This is due to the manifest check always being run, and the mirror fallback runs only if the manifest fails or the version isn't found.

Action version: v5 (but 6 appears to have the same problem)

Platform:

  • [x] Ubuntu
  • [ ] macOS
  • [ ] Windows

Runner type:

  • [ ] Hosted
  • [x] Self-hosted

Tools version: N/A

Repro steps:
Run with any authenticated mirror (in my case, jfrog artifactory). Set mirror and mirror-token, with node-version: 22.20.0 for example.

Expected behavior: setup-node pulls the node distribution from my mirror https://redacted/artifactory/nodejs-remote/dist/v22.20.0/node-v22.20.0-linux-x64.tar.gz.

Actual behavior: setup-node always pulls the node distribution from https://github.com/actions/node-versions/releases/download/22.20.0-17993202319/node-22.20.0-linux-x64.tar.gz.

I can provide a PR to solve this, if desired.

yaworski-joseph-bah2 avatar Oct 17 '25 15:10 yaworski-joseph-bah2