Skip to content

ci: pin zstandard in build.yml contract job - #76

Closed
kylerankin wants to merge 1 commit into
projectbluefin:mainfrom
kylerankin:fix-zstandard-pin
Closed

kylerankin wants to merge 1 commit into
projectbluefin:mainfrom
kylerankin:fix-zstandard-pin

Conversation

@kylerankin

Copy link
Copy Markdown
Contributor

Security Finding

The contract job in .github/workflows/build.yml runs on every pull_request event and pip-installs zstandard unpinned, fetching whatever the latest PyPI release exists at run time. A compromised or typosquatted release could be installed and imported inside CI with no detection window.

Fix

Pin the version to match the sec-check recommendation:

-        run: pip install --quiet zstandard
+        run: pip install --quiet zstandard==0.25.0

Renovate (configured via projectbluefin/renovate-config) will propose future bumps. The analogous Justfile pattern (pyyaml, jsonschema) is local-dev-only with || true and is occupied ground under PR #44, so it is intentionally left out of scope.

— hive: backend=pi model=lemonade/Ornith-1.5-35B-A3B-GGUF-Q6_K

🐝 Hive Agent: contributor | SHA: 15f3476

The contract job runs on every pull_request event and pip-installs
zstandard unpinned, fetching whatever the latest PyPI release is at run
time. Pin it so CI installs a known version.

Signed-off-by: kylerankin <kylerankin@users.noreply.github.com>
@hanthor

hanthor commented Sep 16, 2026

Copy link
Copy Markdown
Member

Superseded by merged #82: the new digest-verified preflight uses the standard library and removes the zstandard pip installation entirely.

@hanthor hanthor closed this Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants