[BUILD]: Pin serve install with commit hash#871
Draft
MacOS wants to merge 1 commit into
Draft
Conversation
There was a problem hiding this comment.
Pull request overview
This PR increases supply-chain security for the documentation preview workflow by pinning the serve CLI installation to a specific upstream Git commit (corresponding to v14.2.6) rather than installing the latest version from npm.
Changes:
- Replace
npm install -g servewith a GitHub-commit-pinned install ofvercel/servein the documentation workflow.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| - name: Install serve package | ||
| run: npm install -g serve | ||
| run: npm install -g git+https://github.com/vercel/serve.git#f3c702c6bb312c6d6b05315721a6d3ea245d86b8 #v14.2.6 |
michalharakal
approved these changes
Jul 24, 2026
Contributor
|
Thank you @MacOS |
MacOS
marked this pull request as draft
July 24, 2026 10:29
Collaborator
Author
|
I am making thie |
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.
This
PRpins thenpm install -g servewith it's commit hash indocumentation.yml, and hereby increases the security of the project.This
PRchanges thenpminstall of serve such that the commit hash is used. We do this by installing the package fromGitHub. TheOpenSSFscore should improve after thisPRhas been merged.