Skip to content

build: pin envinfo versions in github actions#64117

Open
joyeecheung wants to merge 1 commit into
nodejs:mainfrom
joyeecheung:pin-envinfo
Open

build: pin envinfo versions in github actions#64117
joyeecheung wants to merge 1 commit into
nodejs:mainfrom
joyeecheung:pin-envinfo

Conversation

@joyeecheung

Copy link
Copy Markdown
Member

Currently they all run npx envinfo without pinning the version. This can be a supply-chain risk.

Currently they all run `npx envinfo` without pinning the version.
This can be a supply-chain risk.

Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/actions

@nodejs-github-bot nodejs-github-bot added the meta Issues and PRs related to the general management of the project. label Jun 24, 2026
@marco-ippolito

Copy link
Copy Markdown
Member

We should probably pin by commit hash to be safer

@joyeecheung

joyeecheung commented Jun 24, 2026

Copy link
Copy Markdown
Member Author

We should probably pin by commit hash to be safer

You mean commit hash of envinfo? That's an npm package, pinning the version should be enough as npm does not allow republishing packages. Using the github clone will be slower with no significant benefit.

@RafaelGSS

Copy link
Copy Markdown
Member

Yeah, different from GitHub Actions, npm tags are supposed to be immutable.

@marco-ippolito marco-ippolito left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I thought it was an npm package, LGTM

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

Labels

meta Issues and PRs related to the general management of the project.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants