mirror of
https://github.com/actions/setup-node.git
synced 2026-02-04 06:28:20 +00:00
This change addresses issue #1440 where NPM OIDC authentication was broken because the action was exporting a fake NODE_AUTH_TOKEN value by default. NPM OIDC requires NODE_AUTH_TOKEN to either be unset or empty for proper authentication. The fix only exports NODE_AUTH_TOKEN if it was explicitly set by the user, allowing OIDC to work while maintaining backward compatibility for users who explicitly provide tokens. BREAKING CHANGE: Users who rely on the fake default token should now explicitly provide NODE_AUTH_TOKEN in their workflows or use OIDC authentication. Fixes #1440 Related: https://github.com/actions/setup-node/issues/1440 |
||
|---|---|---|
| .. | ||
| data | ||
| mock | ||
| authutil.test.ts | ||
| cache-restore.test.ts | ||
| cache-save.test.ts | ||
| cache-utils.test.ts | ||
| canary-installer.test.ts | ||
| main.test.ts | ||
| nightly-installer.test.ts | ||
| official-installer.test.ts | ||
| prepare-yarn-subprojects.sh | ||
| problem-matcher.test.ts | ||
| rc-installer.test.ts | ||
| README.md | ||
| verify-arch.sh | ||
| verify-node.sh | ||
Files located in data directory are used only for testing purposes.
Here the list of files in the data directory
.nvmrc,.tools-versionsandpackage.jsonare used to test node-version-file logicpackage-lock.json,pnpm-lock.yamlandyarn.lockare used to test cache logicversions-manifest.jsonis used for unit testing to check downloading Node.js versions from the node-versions repository.node-dist-index.jsonis used for unit testing to check downloading Node.js versions from the official site. The file was constructed from https://nodejs.org/dist/index.jsonnode-rc-index.jsonis used for unit testing to check downloading Node.js rc versions from the official site. The file was constructed from https://nodejs.org/download/rc/index.jsonnode-nightly-index.jsonis used for unit testing to check downloading Node.js nightly builds from the official site. The file was constructed from https://nodejs.org/download/nightly/index.json