Repository navigation
ci: verify yarn installer checksum before executing - #7050
Open
javier20dev25 wants to merge 1 commit into
Open
javier20dev25 wants to merge 1 commit into
javier20dev25 wants to merge 1 commit into
Conversation
Member
|
@Tony133 You'll need to tag someone else for now. https://github.com/orgs/fastify/discussions/98 😸 |
Member
Okay, I've read it—no problem. Thanks for the reply 😉👍🏻 |
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.
Description
The
yarnjob inpackage-manager-ci.yml(which runs on every push tomain) executes remote code without any integrity check:curl -o- -L https://yarnpkg.com/install.sh | bashThe URL is mutable and unpinned: whatever the endpoint serves at runtime is piped straight to a shell on the runner. Following GitHub's supply-chain hardening guidance, this pins the installer and verifies its SHA-256 checksum before execution, so CI only runs the exact installer that was reviewed at merge time.
No behavior change otherwise — the installer and the
yarnsteps run exactly as before. The hash will need bumping when the upstream installer changes (the one-liner prints a clear recognition failure then).Verification
https://yarnpkg.com/install.shchecksum:90798f6ad4c931e58afd7c6b8a2120bd5480022f298c4bb6a521755ccf297a42(recomputed before this PR).sha256sum -c --quietfails closed: a modified installer aborts the job before anything runs.Detected with Sentinel Cloud (Sentinel Security Intelligence). More about the tool on my profile: https://github.com/javier20dev25