ci(deps): pin hook revisions by SHA and install dev tools from a hashed lock #124

Merged
Defame1297 merged 2 commits from feat/supply-chain-pins into main 2026-11-14 20:08:42 +00:00
2 Commits
Author SHA1 Message Date
Defame1297 6e8f5bed10 Merge branch 'main' into feat/supply-chain-pins
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 1m34s
Molecule / molecule (pull_request) Successful in 8m0s
2026-11-14 19:57:50 +00:00
Dragonish 4058978353 ci(deps): pin hook revisions by SHA and install dev tools from a hashed lock
Build / build (pull_request) Successful in 10s
Lint / lint (pull_request) Successful in 1m42s
Molecule / molecule (pull_request) Successful in 5m23s
Refs #113.

- .pre-commit-config.yaml: every hook repo is pinned by commit SHA with the release in a
  `# frozen:` comment, so a moved tag cannot change the code a hook environment is built from.
- requirements-dev.lock: hashed lock of requirements-dev.txt. Installs use
  `pip install --require-hashes -r requirements-dev.lock -r requirements-dev.txt` (dev-setup.sh,
  the ci image, the fallback install of Lint and Build): pip refuses an unhashed package and any
  disagreement between the two files.
- scripts/lock-requirements.sh regenerates the lock (pinned pip and pip-tools, --upgrade mode).
- renovate.json: the pip-compile manager replaces pip_requirements for the lock, plus a weekly,
  never automerged lock-file maintenance PR for transitive packages. Not yet dry-run on Renovate.
- check_bot_pr_diff.py accepts `rev: <sha>  # frozen: <tag>` and lock entries, hashes and plain
  comments, but not a changed pip-compile header command.
- ci image 0.2.18 -> 0.2.19 (image inputs changed).
2026-11-14 16:52:38 +00:00