ci: pin @electron/lint-roller via yarn.lock#614
Merged
codebytere merged 1 commit intomainfrom Mar 31, 2026
Merged
Conversation
Replaces the npm init --yes + npm install + npx dance with the standard electron org yarn setup (vendored .yarn/releases, yarn.lock, --immutable install). The previous approach npm-installed @electron/lint-roller@^2.1.0 fresh on every run (no lockfile), then called npx with bin names (electron-markdownlint, lint-roller-markdown-links). Those bin names don't exist as npm packages today — but if someone registered them, and the install step ever failed or lint-roller renamed a bin in a minor bump, npx would fall through to fetching the attacker's package. yarn <bin> fails closed if the bin isn't in node_modules/.bin.
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
All alerts resolved. Learn more about Socket for GitHub. This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. Ignoring alerts on:
|
Member
Author
|
@SocketSecurity ignore-all |
codebytere
approved these changes
Mar 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Replaces the
npm init --yes+npm install+npxdance with the standard electron org yarn setup (vendored.yarn/releases/yarn-4.10.3.cjs,yarn.lock,--immutableinstall).The previous approach:
No lockfile —
^2.1.0resolves fresh every run. Andelectron-markdownlint/lint-roller-markdown-linksare bin names exposed by@electron/lint-roller, not package names. Both are currently 404 on npm — but if someone registered them, and the install step ever failed (or lint-roller renamed a bin in a minor bump),npxfalls through to fetching the attacker's package withGITHUB_TOKENin env.Now:
yarn <bin>fails closed if the bin isn't innode_modules/.bin. Same lint-roller^2.1.0constraint (resolved to 2.4.0 in the lockfile) so lint behavior is unchanged..yarnrc.ymlmatches the rest of the org (enableScripts: false,npmMinimalAgeGate: 10080,@electron/*preapproved).