Repository navigation
fix(bin): override semgrep pins to install patched mcp, wcmatch, otel - #15
Merged
Merged
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.
Closes Dependabot alerts 30, 31, 32, 33, 40, 42 and 43, all in
container/requirements.txt.Why Dependabot could not do this
semgrep 1.180.0 (locked) and 1.186.0 (latest) both declare
mcp==1.29.0,opentelemetry-api~=1.37.0andwcmatch~=8.3. Each has advisories fixed only in a later release, so no resolver reaches a fixed version while honouring those pins, and upgrading semgrep does not help.What changes
container/overrides.txt: floors for the three packages and the opentelemetry packages that move with the API.container/requirements.txt: regenerated in the pinned base image withuv pip compile --override. semgrep stays at 1.180.0; the lock still holds 72 packages.container/licenses.json: the vendored opentelemetry-util-http licence pin moves to the 0.66b2 tag. The text at that tag has the same SHA-256.container/README.md: the regeneration recipe now uses uv with the overrides file, and records why the overrides exist and when to drop them.bin/test/container-dockerfile.test.mjs: a test that fails when the lock installs an overridden package below its floor. It fails on the previous lock (mcp: the lock installs 1.29.0, below the floor 1.30.0).The image installs the lock with
pip --require-hashes --no-deps, so pip does not re-check semgrep's declared pins.Verification
bin/test/container-dockerfile.test.mjs,container-licenses.test.mjs,dependency-policy.test.mjs,docker-down-void.test.mjs,no-unpinned-fetch.test.mjs: 55 pass, 0 fail.container/Dockerfilebuilds from this tree, including the licence collector.sh container/smoke.sh <image>exits 0: 19 lanes ran confined, the semgrep lane among them.semgrep --versionruns,semgrep mcp --helpprints the same text, and scans of one fixture gave the same findings and the same scanned paths with no errors in three modes (no path flags,--exclude,--include). The fixture carries a.semgrepignorewith**patterns.pip checkreports semgrep's overridden requirements and nothing else.Reachability before this change
semgrep mcpsubcommand, which commitwork never runs..semgrepignorepatterns.Not in this change
Alert 39 (minimatch, through the renovate devDependency) has no version fix: every renovate release pins minimatch 10.2.6, and forcing minimatch 11 makes glob 10 under renovate return an empty list for
**/*.js. Both places that run renovate are time-bounded.