Skip to content

Siblings of #4944: unpinned dependency installs in pipelines (image digests, yum/dnf) #4998

Closed

Description

@squid-protocol

Sibling gaps found while fixing #4944 (PR #4997), class unpinned dependency installs in pipelines (rule unpinned_install, GG-SAST-UNPINNED_INSTALL). #4918/#4942 cover pip/npm/gem/go/cargo, curl | sh and uses: in YAML; #4944 adds Dockerfile RUN, *.sh, apt/apk/brew, GitLab image: / include: project|component. Still uncovered:

  • Dockerfile FROM without an @sha256 digest (different mechanism; would flag nearly every Dockerfile, so it needs a severity/opt-in choice)
  • GitLab services: images without a digest
  • GitLab include: remote: (URL include, no integrity pin)
  • GitHub Actions container: / services: images without a digest
  • docker-compose image: without a digest
  • Kubernetes manifest image: without a digest
  • yum / dnf install without a version (pin syntax pkg-1.2.3 is ambiguous with names containing dashes)

Duplicate search: no open issue for any member (searched "Siblings of" unpinned, "digest", yum/dnf/docker-compose titles).

Acceptance: each box gets a flagged + pinned test form in tests/core_engine/test_pipeline_pins.py, or is declined here with a reason.

Siblings: #4944, #4918

Activity

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

    @squid-protocol
    OwnerAuthor

    Implemented and tested in PR #5007:

    • yum / dnf install without a version: flagged when unversioned (yum install curl); clean when pinned (curl-7.88.1, nginx-1:1.24.0, =), local .rpm path, or $VAR.
    • GitLab services: images without a digest: flagged when missing @sha256:; clean with digest or $VAR.
    • GitLab include: remote: without an integrity pin: flagged as gitlab-include.
    • GitHub Actions container: / services: images without a digest: flagged when missing @sha256: digest; clean with digest or expression.

    Declined with rationale (per acceptance criteria):

    • Dockerfile FROM without @sha256 digest: Declined. Tag-based FROM is standard container practice; flagging all non-digest FROM lines under unpinned_install creates excessive false-positive fatigue across common Dockerfiles. Base image digest pinning belongs in an opt-in Dockerfile lint rule (DL3006). Verified clean in test_declined_sibling_forms_remain_unflagged.
    • docker-compose image: without a digest: Declined. docker-compose is local developer orchestration, not a CI pipeline execution environment.
    • Kubernetes manifest image: without a digest: Declined. Kubernetes manifests are production deployment specs governed by cluster admission control (Kyverno/Gatekeeper), not CI pipeline sensors.
  3. 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