Skip to content

chore: freeze pre-commit hooks and keep image digests out of article code - #116

Merged
meysam81 merged 2 commits into
mainfrom
chore/pin-hooks-and-ci-tools
Nov 13, 2026
Merged

meysam81 merged 2 commits into
mainfrom
chore/pin-hooks-and-ci-tools

Conversation

@meysam81

Copy link
Copy Markdown
Contributor

Changes

chore(pre-commit): freeze hooks to commit SHAs

Every rev is the commit its tag points at today, with the tag in a
"# frozen:" comment so Renovate keeps both current. No version changes.
The commitlint config, installed unversioned on every hook install, is
pinned as well.

chore(renovate): keep image digests out of the code shown in articles

The shared preset is about to pin Docker image digests in Dockerfiles and
compose files. Code under docs/blog is published as written, so it is
excluded.

Verified

  • Every SHA was resolved from its tag with git ls-remote (the peeled commit for annotated tags), and a check asserts that only rev, additional_dependencies and language lines changed.
  • The hooks that apply to the changed files ran at the frozen SHAs before this was pushed.
  • Renovate 44.216.0 was run locally with the new shared preset (meysam81/.github#9) on a sample of repos with the same file shapes, not on every repo: it reads a frozen rev together with its tag, and picks up .bun-version, annotated versions and python-version inputs.

Merge order

Merge this before meysam81/.github#9. That preset change pins Docker image digests in Dockerfiles and compose files; the rule added here keeps it away from the code published under docs/blog.

pre-commit.ci still has an autoupdate PR open here (#85). It rewrites frozen revs back to tags; Renovate does that job once the preset is merged.

Every rev is the commit its tag points at today, with the tag in a
"# frozen:" comment so Renovate keeps both current. No version changes.
The commitlint config, installed unversioned on every hook install, is
pinned as well.
The shared preset is about to pin Docker image digests in Dockerfiles and
compose files. Code under docs/blog is published as written, so it is
excluded.
@github-actions

Copy link
Copy Markdown
Contributor

Live preview

Last updated: 2026-11-12T17:58:42
Last commit: 9ebfe24
The live preview of the changes are available at the following URL:
https://6af5fe4f06331e9d98437ab8--developer-friendly.netlify.app

@meysam81
meysam81 merged commit 6bf81cb into main Nov 13, 2026
9 checks passed
@meysam81
meysam81 deleted the chore/pin-hooks-and-ci-tools branch November 13, 2026 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant