Repository navigation
Conversation
…release-check from its own commit Scorecard's Pinned-Dependencies check flags any npm install command, even after a sha256 check, so the image now unpacks the checked npm tarball into lib/node_modules/npm. zizmor's self-repository audit asks for the $/ form of a same-repository reusable workflow call, which runs the caller's commit as ./ does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The plugin scanner counts only ./ and docker:// as local action references, so the $/ form scored as two unpinned third-party actions and dropped the scan below its threshold. For a reusable workflow call, ./ already runs the caller's commit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
This branch has not been deployed
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.
Changelog category (leave one):
Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):
Not required.
Why
Scorecard's
Pinned-Dependenciescheck flagsDockerfile:110with "npmCommand not pinned by hash". The image replaces the bundled npm, which carries a vulnerable cross-spawn, with one already checked against its sha256. The check flags thenpm install -g /tmp/npm.tgzcommand whatever came before it.The registry tarball carries all of its own dependencies, and the Node tarball's
bin/npmandbin/npxlink tolib/node_modules/npm/bin/*-cli.js. Unpacking the checked tarball intolib/node_modules/npmtherefore installs the same files with no npm command. The step now also checks thatnpm --versionmatchesNPM_VERSION.zizmor's
self-repositorynote on the twouses: ./.github/workflows/release-check.ymlcalls inrelease.ymlis not fixed here. The plugin scanner counts only./anddocker://as local references, so the$/form scored as two unpinned third-party actions and failed that check. For a reusable workflow call,./already runs the caller's commit, so the$/form adds no protection there.Scope and risk
This changes the npm step of the image's
node-builderstage. Nothing else changes.Compatibility, rollout and rollback
Tests
docker build --target node-builder .(arm64) passed, including thenpm ciof the code toolchains with the new npm. In the built stage,npm --versionandnpx --versionprint11.21.3, andnpm ls -glistscorepackandnpm@11.21.3. Nocross-spawnpackage is left underlib/node_modules, and the files are owned by root.$/. The plugin scanner then scored 72 against its minimum of 75, so this PR keeps./.Dockerfileorrelease.yml: 532 passed. One failed,test_compose_extractor_service, because the reference extractor service answered 500 in the local environment. That test readsextractor/Dockerfileand compose files, which this change does not touch.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated (an agent wrote most of the diff): Claude Code. I checked the image build and the alert lines myself.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
make test-unitand applicable integration results are reported by CI; a full local run is not required before pushing.main; no merged migration is edited. (No migration.)frontend/changed. (Not changed.)docs/describe the system as it now is, and this description names any operator steps and wire changes.git commit -s), as CONTRIBUTING.md asks.🤖 Generated with Claude Code
Note
Low Risk
CI-only Docker build change in the node-builder stage; no runtime wire or application behavior changes beyond how npm is laid down in the image.
Overview
The node-builder stage no longer runs
npm install -gto layer the pinned npm tarball on top of Node. After the same sha256-checked download, it removes the bundled npm tree, unpacks the registry tarball directly intolib/node_modules/npm(so existingbin/npm/bin/npxsymlinks still work), and assertsnpm --versionequalsNPM_VERSION.Comments in the Dockerfile now explain that manual unpack avoids an unpinned npm invocation while keeping the CVE-motivated pinned npm replacement.
Reviewed by Cursor Bugbot for commit 104dd68. Bugbot is set up for automated code reviews on this repo. Configure here.