Repository navigation
ci: hash-pin the shipped surface: templates and action.yml (Part of #4918) - #4931
Merged
Merged
Conversation
…--require-hashes lockfiles (Part of #4918) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
…ify its sha256 (Part of #4918) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 11, 2026 21:27
squid-protocol
enabled auto-merge (squash)
October 11, 2026 21:27
squid-protocol
added a commit
that referenced
this pull request
Oct 12, 2026
…inned_install rule (Part of #4918) (#4942) * ci: re-stamp template GG_REF to the #4931 merge commit; document v2.4.0 action bump and pre-full-extra versions (Part of #4918) Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci: hash-pinned install sets for our own workflows + Dependabot; pip-install gate; SHA-pin remaining uses (Part of #4918) Co-Authored-By: Claude Opus 5.5 <[email protected]> * security: unpinned_install rule for YAML pipelines, surfaced in SARIF as GG-SAST-UNPINNED_INSTALL (Part of #4918) Co-Authored-By: Claude Opus 5.5 <[email protected]> * security: pipeline_pins mypy fix (Part of #4918) Co-Authored-By: Claude Opus 5.5 <[email protected]> * tests: bless golden SARIF snapshots for the new GG-SAST-UNPINNED_INSTALL rule (+82 results on corpus YAML, nothing removed) (Part of #4918) Co-Authored-By: Claude Opus 5.5 <[email protected]> * tests: pr_gates reads the ruff pin from ci/requirements/lint.in now that the workflow installs the hashed set (Part of #4918) Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
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 #4918 (step 1 only: the shipped surface; steps 2-4 are not here).
templates/requirements/{core,yaml,full}.txt:uv pip compile --universal --generate-hasheslockfiles pinned to gitgalaxy 2.11.0 (+ PyYAML, tiktoken, xgboost, pandas, numpy and transitive deps), valid on every OS / Python >= 3.10. Regenerate withtests/tools/pin_shipped_requirements.sh, then stamp templates withtests/tools/stamp_template_pins.py.action.ymlinstalls with--require-hashesfrom${GITHUB_ACTION_PATH}/templates/requirements/(the action's own checkout).<set>.txtfromraw.githubusercontent.com/.../gitgalaxy/${GG_REF}/templates/requirements/to/tmp, runssha256sum -cagainstGG_SHA256, thenpip install --require-hashes -r. One marker line per install (GG_REF=<commit> GG_SHA256=<sha> # gg-pin:<set>) holds both values; the stamp script rewrites them all. No install depends on a prior checkout, so step order no longer matters (Azure/GitHub installs before checkout are fine).version: latestmeans the pinned release; an explicit version is exact-pinned but not hash-verified. Dropped the unpinnedpip install --upgrade pip.tests/core_engine/test_shipped_pip_pins.py(22 tests): lockfiles exact + hashed; pins agree; no unpinned install in any shipped file; action usesGITHUB_ACTION_PATH; every template download is a pinned raw URL with a sha256 check before pip, never a workspace path; markers match the committed lockfiles' sha256 and share one ref.Evidence: fetched
full.txtfrom the real raw URL at the stamped ref andsha256sum -cpassed; ran the scan.yml fetch+verify+install snippet against a Python 3.12 venv (installed with hashes, imports ok);bash -non both GitLab blocks; all six YAML files parse. pr_gates --fast 5/5, --ratchets 7/7 (merged origin/main first). Not tested: Python 3.10, real CI runs of each template.Open items:
GG_REFis the commit1c0805a80on this PR's branch (where the lockfiles were first pushed). It is immutable on GitHub, but if the squash merge makes it unreachable the downloads 404. After merge/tag, re-point: runstamp_template_pins.py <merge-or-tag-sha>in a follow-up (the sha256 is unchanged, so integrity holds either way).templates/github/gitgalaxy-pipeline.ymlstill hassquid-protocol/[email protected]for three jobs; bump after the release that contains the lockfiles.versionwithfullstill resolves transitive deps unhashed.🤖 Generated with Claude Code