Repository navigation
ci: replace unverified remote curl install with corepack enable in package-manager-ci - #7141
Open
javier20dev25 wants to merge 1 commit into
Open
javier20dev25 wants to merge 1 commit into
javier20dev25 wants to merge 1 commit into
Conversation
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.
Problem
During an automated security and CI/CD audit conducted with the Sentinel Security Ecosystem, an unpinned remote download script was flagged in
.github/workflows/package-manager-ci.yml:Piping an unpinned, remote shell script (
curl ... | bash) directly into a runner's shell introduces a supply-chain risk if DNS records or upstream CDNs encounter transient hijacking or compromise.Solution
Since the matrix runs on official Node.js releases (Node 24, 26), modern Node distributions include
corepacknatively. Replacing the unverifiedcurl ... | bashcommand withcorepack enablesecurely preparesyarnwithout making arbitrary, unverified network shell invocations.Observation on Future Attack Vectors (Low Severity Pattern)
Sentinel flags unpinned network fetches in CI runners as low-severity latent vectors: in zero-trust enterprise pipelines, untracked external fetch execution bypasses lockfile integrity and runner immutability guarantees.
Identified and submitted using the Sentinel Security Ecosystem.