Skip to content

🛰️ GitGalaxy found a supply-chain risk in GitGalaxy: unpinned pip installs in 20+ pipelines, including the CI templates we ship #4918

Closed

Description

@squid-protocol

🛰️ GitGalaxy found a supply-chain risk in GitGalaxy

We pointed GitGalaxy at its own repository to see what it says about our YAML. Its safety score lit up on two pipeline files, bitbucket-pipelines.yml (71.5) and action.yml (54.4). Pulling on that thread turned up a supply-chain exposure that no other tool in our stack flagged: not CodeQL (84 open alerts, all regex rules), not GitGalaxy's own uploaded SARIF, not Muninn ("No security issues found").

What's exposed

Unpinned pip installs in 20+ pipeline files, which install whatever version PyPI serves at run time:

Where Files Example
Templates we ship to customers templates/github/gitgalaxy-pipeline.yml, templates/gitlab/scan.yml, templates/azure/azure-pipelines.yml, templates/bitbucket/bitbucket-pipelines.yml, templates/scan.yml pip install "gitgalaxy[yaml]" tiktoken xgboost pandas numpy
Our GitHub Action action.yml (pins gitgalaxy only when the caller passes a version; the ML engines are never pinned) pip install tiktoken xgboost pandas numpy
Our own CI 14 workflows incl. evidence-refresh.yml (10), rosetta-audit.yml, golden-crucible.yml, det-sweep.yml, smoke-test.yml, plus bitbucket-pipelines.yml pip install PyYAML networkx tiktoken "pandas>=2.0.0" xgboost pytest ...

Why it matters. A customer who copies our template installs the latest gitgalaxy, xgboost, pandas, numpy, tiktoken every run. A compromised or broken release of any of them (typosquat, hijacked maintainer, a bad major version) flows straight into their pipeline, inside the job that holds their source code. The same applies to our own CI and to the evidence we publish. Our GitHub Actions uses: are already pinned by commit SHA; our pip installs are not.

Plan

  1. Pin the shipped surface first (templates + action.yml): exact versions with --require-hashes (a constraints / requirements file per template, generated by pip-compile --generate-hashes), and gitgalaxy defaulting to the version the template/action was released with.
  2. Pin our own CI the same way: a shared, hash-pinned constraints file for workflow installs, kept current by Dependabot / Renovate (pins without updates rot).
  3. Gate it: a test that fails on any pip install of a named package without a pin or constraints file in .github/workflows/, templates/, action.yml and bitbucket-pipelines.yml.
  4. Make GitGalaxy name it. Today the safety score pointed us at the right files, but it scores their shell logic: there is no rule that says "unpinned dependency install in CI". Add one as a first-class YAML / pipeline signal (pip / npm / gem / go install without a version, curl | bash, unpinned uses:), surfaced in SARIF, so every customer's scan catches what ours just did. (Related: aperture: a 1,000+ line CI workflow is silently excluded as a 'Static Asset Blob' (evidence-refresh.yml missing from our own scan) #4917, where the same self-scan found a 1,000-line workflow silently skipped.)

Acceptance: templates and action.yml install only hash-pinned versions; our workflows use the shared constraints file; the gate test fails on a new unpinned install; GitGalaxy's scan of this repo before the fix reports the new rule on the files above and none after.

🤖 Generated with Claude Code

Activity

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

    @squid-protocol
    OwnerAuthor

    Review of PR #4942 (steps 2-4): approved, shepherd:merge. Sibling gaps filed: #4943 (dart import FP on main, red graph-accuracy-audit), #4944 (rule coverage for Dockerfile/shell/apt/brew/GitLab + remaining unhashed CI pins).

  3. added
    scope:infra
    on Oct 16, 2026
  4. 30 remaining items

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-cdlane:nyxpriority: highscope:infrasecurity

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions