Repository navigation
Description
🛰️ 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
- Pin the shipped surface first (templates +
action.yml): exact versions with--require-hashes(a constraints / requirements file per template, generated bypip-compile --generate-hashes), andgitgalaxydefaulting to the version the template/action was released with. - 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).
- Gate it: a test that fails on any
pip installof a named package without a pin or constraints file in.github/workflows/,templates/,action.ymlandbitbucket-pipelines.yml. - 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, unpinneduses:), 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
ci: templates fetch the hash-pinned set from an immutable ref and ver…
ci: hash-pin the shipped surface: templates and action.yml (Part of #…
security: unpinned_install rule for YAML pipelines, surfaced in SARIF…
security: pipeline_pins mypy fix (Part of #4918)
tests: bless golden SARIF snapshots for the new GG-SAST-UNPINNED_INST…
tests: pr_gates reads the ruff pin from ci/requirements/lint.in now t…
squid-protocol commentedon Oct 12, 2026
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).
ci: hash-pinned installs for our own workflows, pip-install gate, unp…
30 remaining items
build(deps): relock setuptools==84.1.0 with tests/tools/pin_requireme…
build(deps): bump setuptools from 84.0.0 to 84.1.0 in /ci/requirements (
ci(deps): add dependabot-relock.yml workflow and parse Dependabot YAM…
Templates: pin the gitgalaxy action and the lockfile markers to main's …
build(deps): relock pandas, pip, ruff, uv with tests/tools/pin_requir…
build(deps): bump the ci-requirements group in /ci/requirements with …
build(deps): relock mkdocs-material, mypy, pytest, ruff, setuptools, …
build(deps): bump the ci-requirements group in /ci/requirements with …
build(deps): relock pandas, pip, ruff, tree-sitter-language-pack, uv …
Bump the ci-requirements group in /ci/requirements with 6 updates (#8401
build(deps): relock mkdocs-material with tests/tools/pin_requirements…
Bump mkdocs-material from 9.8.0 to 9.8.1 in /ci/requirements in the c…
build(deps): relock mkdocs-material, ruff, uv with tests/tools/pin_re…