Repository navigation
unpinned_install: Dockerfile, shell scripts, apt/apk/brew, GitLab image/include (Part of #4944) - #4997
Merged
Conversation
… image/include (Part of #4944) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s, both legs (Part of #4944) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 12, 2026 17:00
squid-protocol
enabled auto-merge (squash)
October 12, 2026 17:00
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 ruleunpinned_install-> SARIFGG-SAST-UNPINNED_INSTALL.RUN pip/npm installwithout a versioncurl|bash, apt/apk/brew onRUN)pip/npm install,curl | bash*.shshell)apt-get install/brew installwithout a versionapt,apk add; all three command surfaces)image:without a digest,include:without a refimage:(scalar andname:block),include: project:withoutref:,include: component:without a version; only on.gitlab-ci*and YAML under agitlab/dirDesign
scan_pipeline(content, lang_id, rel_path);find_unpinned(content, kind, gitlab).uses:stays YAML-only.galaxyscope.pynow runs it foryaml,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.ymlimage: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.shand.gitlab-ci.ymlat 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 libompin full-suite-gate.yml:161 and smoke-test.yml:110,apt install universal-ctagsin tri-comparison-audit.yml:88 and tri-comparison-history.yml:96.test_our_own_pipelines_are_cleanallows exactly these four (file, line, kind) and nothing else; fixing one forces its entry out.Golden masters
crucible_check.py --update --yes, both legs: only12. Scan Output Snapshots/SARIFmoved, +49GG-SAST-UNPINNED_INSTALLresults (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 --fast5/5;--ratchets7/7, none skipped (corpora fromv6/.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 (pinbuild-system.requiresor--no-build-isolation); not chosen.tests/requirements-mypy.txtintoci/requirementswith hashes:mypy-audit.yml,pr_gates.pyandmypy_audit.pyread the current path, so it needs a workflow edit.tests/equivalence/*.Dockerfileapt installs;.claude/hooks/session-start.shpip install networkx.FROMwithout digest, GitLabservices:images andinclude: remote:, GitHubcontainer:/services:images, docker-compose/k8s images,yum/dnf.Cross-repo
None.
🤖 Generated with Claude Code