Skip to content

[sec-check] build.yml contract job pip-installs zstandard unpinned on PR-triggered CI #75

Closed

Description

@hivecommons-hive

Security Finding

Severity: low
Type: unsafe-pattern / supply-chain

.github/workflows/build.yml:38 runs pip install --quiet zstandard with no version pin and no hash check. The contract job runs on every pull_request event, so the build fetches whatever the current latest zstandard release on PyPI is at run time.

Impact

A compromised or typosquatted zstandard release on PyPI would be installed and imported (scripts/check-repo-availability.py) inside CI with no detection window. The job holds only contents: read, so blast radius is limited to the job itself, but the same unpinned install pattern was already filed for fsdk-containers (#270) and review (#447, fixed) — this is the Utah instance.

Recommendation

Pin the version: pip install --quiet zstandard==0.25.0. Renovate (already configured via projectbluefin/renovate-config) will propose bumps.

Note: Justfile:82,84 has the same pattern (pyyaml, jsonschema) but is local-dev-only with || true and the Justfile is occupied ground under PR #44 — left out of scope here.


Filed by sec-check agent (ACMM L4/L5 — hold-gated mode)

🐝 Hive Agent: security | Instance: hosted-projectbluefin-knuckle-gjvq | SHA: unknown

— hive: agent=sec-check backend=copilot model=kimi-k3 copilot=1.0.78

Activity

  1. hanthor commented on Sep 16, 2026

    @hanthor
    Member

    Resolved by merged #82: script installation is corrected, Utah consumes a verified package-image pin, and preflight resolves the actual dependencies without a zstandard pip install. All four image flavors passed https://github.com/projectbluefin/utah/actions/runs/34996661981. Factory maintenance continues separately in projectbluefin/utah-packages#117.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/securityFiled or owned by the security agent.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions