Skip to content

unpinned_install: Dockerfile, shell scripts, apt/apk/brew, GitLab image/include (Part of #4944) - #4997

Merged
squid-protocol merged 2 commits into
mainfrom
churn/4944-20261012T1639Z
Oct 12, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/4944-20261012T1639Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4944 (the rule half; the CI half stays open). Follows #4942.

Class

Unpinned dependency installs in pipelines. Same mechanism for every member: gitgalaxy/security/pipeline_pins.py, one rule unpinned_install -> SARIF GG-SAST-UNPINNED_INSTALL.

Member (#4944 table) Surface Status
RUN pip/npm install without a version Dockerfile this PR (also gem/go/cargo, curl|bash, apt/apk/brew on RUN)
pip/npm install, curl | bash *.sh this PR (lang shell)
apt-get install / brew install without a version workflow YAML this PR (+ apt, apk add; all three command surfaces)
image: without a digest, include: without a ref GitLab CI this PR: image: (scalar and name: block), include: project: without ref:, include: component: without a version; only on .gitlab-ci* and YAML under a gitlab/ dir

Design

scan_pipeline(content, lang_id, rel_path); find_unpinned(content, kind, gitlab). uses: stays YAML-only. galaxyscope.py now runs it for yaml, dockerfile, shell. Not flagged: pkg=1.2.3 (apt/apk), [email protected] (brew), image@sha256:, FROM x@sha256:, -r file / --require-hashes, $VAR / $(...) / ${{ }} system-package names (unknowable), npm i x@${PIN}.
Also: templates/gitlab/scan.yml image: is now digest-pinned (python:3.12-slim@sha256:a6e34c59..., looked up from Docker Hub today), so our shipped GitLab template passes its own rule.

Tests (tests/core_engine/test_pipeline_pins.py)

Per member, flagged and pinned/false-positive forms: Dockerfile, shell, YAML apt/apk/brew, GitLab image / include project / include component, gitlab-only gating, uses: YAML-only, hostile (linear) input, end-to-end SARIF with a Dockerfile, ci.sh and .gitlab-ci.yml at the right lines.

Our own pipelines

The wider rule finds four system-package installs in .github/workflows (out of scope here, no workflow edits): brew install libomp in full-suite-gate.yml:161 and smoke-test.yml:110, apt install universal-ctags in tri-comparison-audit.yml:88 and tri-comparison-history.yml:96. test_our_own_pipelines_are_clean allows exactly these four (file, line, kind) and nothing else; fixing one forces its entry out.

Golden masters

crucible_check.py --update --yes, both legs: only 12. Scan Output Snapshots/SARIF moved, +49 GG-SAST-UNPINNED_INSTALL results (30 Dockerfile, 11 yml, 8 sh), 0 removed, 0 other keys (diffed old vs new on both legs). scope_check.py --expect yaml,dockerfile,shell: the single difference is that unattributable SARIF rollup (same +49).

Gates

pr_gates --fast 5/5; --ratchets 7/7, none skipped (corpora from v6/.mainframe_corpora). Local ruff 0.16.0 vs CI 0.16.10: gates used the cached 0.16.10.

Not in this PR

  • pip install -e . build isolation: needs an owner decision (pin build-system.requires or --no-build-isolation); not chosen.
  • tests/requirements-mypy.txt into ci/requirements with hashes: mypy-audit.yml, pr_gates.py and mypy_audit.py read the current path, so it needs a workflow edit.
  • The four workflow apt/brew installs above; tests/equivalence/*.Dockerfile apt installs; .claude/hooks/session-start.sh pip install networkx.
  • Sibling gaps: FROM without digest, GitLab services: images and include: remote:, GitHub container:/services: images, docker-compose/k8s images, yum/dnf.

Cross-repo

None.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits October 12, 2026 12:42
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 12, 2026 17:00
@squid-protocol
squid-protocol enabled auto-merge (squash) October 12, 2026 17:00
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 961f7f2 into main Oct 12, 2026
35 checks passed
@squid-protocol
squid-protocol deleted the churn/4944-20261012T1639Z branch October 12, 2026 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant