Skip to content

unpinned_install: cover Dockerfile, shell scripts, apt/brew, GitLab image/include; hash our last CI pins #4944

Closed

Description

@squid-protocol

Sibling gaps from #4918 / PR #4942, class unpinned dependency installs in pipelines. PR #4942 covers pip, npm, gem, go and cargo install, curl | bash and non-SHA uses: in YAML pipelines, through the unpinned_install rule (GG-SAST-UNPINNED_INSTALL). These members of the same class are not covered yet:

Member Surface Covered by #4942
RUN pip/npm install without a version Dockerfile no
pip/npm install, curl | bash shell scripts called by CI (*.sh) no
apt-get install / brew install without a version workflow YAML no
image: without a digest, include: without a ref GitLab CI no

Our own CI also has two gaps:

  • pip install -e . uses build isolation, so it fetches an unpinned setuptools. Fixing it needs a decision: pin build-system.requires in pyproject.toml, or use --no-build-isolation with the hashed bootstrap set.
  • tests/requirements-mypy.txt pins exact versions but has no hashes, so its transitive dependencies float. Move it into ci/requirements with hashes.

Acceptance: the rule flags each member in the table, with a test per member (flagged and pinned forms). Our own CI has no remaining unhashed installs, and test_ci_install_pins.py is extended to cover them.

Siblings: #4918

Activity

  1. added
    ci-cd
    security
    on Oct 12, 2026
  2. squid-protocol commented on Oct 12, 2026

    @squid-protocol
    OwnerAuthor

    Siblings: #4998 (consolidated class-sweep gaps from PR #4997).

  3. squid-protocol commented on Oct 12, 2026

    @squid-protocol
    OwnerAuthor

    Closed by PR #4997, which expanded unpinned_install (rule GG-SAST-UNPINNED_INSTALL) to cover Dockerfile RUN, shell scripts, workflow apt/apk/brew, and GitLab image/include. Remaining scanner sibling surfaces are tracked in #4998.

  4. added
    scope:infra
    on Oct 16, 2026
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

    ci-cdscope:infrasecurity

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions