Repository navigation
chore: pin example base images by digest and keep them current with Dependabot - #76
Conversation
A mutable tag builds a different image tomorrow, and a replaced upstream tag changes what users run with no commit here. Each base image is now pinned to the digest of its multi-platform index, so one line resolves to the same image for every architecture the registry lists. The tag stays in front of the digest: it is what a reader and Dependabot read, and Dependabot updates the tag and the digest together.
The digest pins only hold while something moves them: without an update check they freeze the images at today's patch level, including its vulnerabilities. Dependabot reads tag@sha256 in a Dockerfile and updates the tag and digest together, and it rewrites the SHA and the trailing version comment of the actions these workflows pin.
The key is no longer in the Dependabot options reference, and the organisation has no team of that name; review requests follow CODEOWNERS. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011KG8YqjNGKyXzFNPZ7PFYj
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Summary
Every Dockerfile in this repository built on a mutable tag (
node:26-slim,oven/bun:1-slim), so the same file could build a different image the next day, and a replaced upstream tag would change what the images run without a commit here.getting-startedis also the projectconnectum initdownloads, so its Dockerfiles are what users start from.FROMlines in 11 Dockerfiles readimage:tag@sha256:<digest>. The digest is that of the multi-platform index (node:26-slim: amd64, arm64/v8, ppc64le, s390x;oven/bun:1-slim: amd64, arm64), so builds on other architectures keep working. The tag stays for readers and for Dependabot..github/dependabot.yml: thedockerecosystem over the ten directories that hold Dockerfiles, andgithub-actions(every action here is already pinned by commit). Weekly. Without it the pins would go stale and miss base-image security updates.Verification
container-e2e.ymlbuilds it, one at a time; every build log showsload metadata for …@sha256:<pinned digest>.getting-started, Node and Bun variants: the wire-level scenarioscripts/container-e2e.shpassed 11/11 checks each.dependabot.ymlparses; the keys used are in the current options reference.container-e2eandbroker e2ejobs rebuild all of them.Not in this pull request
getting-started/Dockerfilestill installs without a lockfile (npm install). Committing a lockfile to the scaffold base needs a matching change inconnectum init, which rewritespackage.json; that is done together, not here.tag@sha256:lines is taken from thedependabot-coreDocker README and its file-updater tests, since the GitHub documentation has no sentence on it. The first Dependabot pull request will show it in practice.🤖 Generated with Claude Code
https://claude.ai/code/session_011KG8YqjNGKyXzFNPZ7PFYj
Summary by CodeRabbit