Skip to content

build: pin base image digests - #740

Merged
av1155 merged 2 commits into
mainfrom
build/pin-base-image-digests
Aug 12, 2026
Merged

build: pin base image digests#740
av1155 merged 2 commits into
mainfrom
build/pin-base-image-digests

Conversation

@av1155

@av1155 av1155 commented Aug 12, 2026

Copy link
Copy Markdown
Owner

Summary

Pins both Dockerfile base images to their manifest list digest, and adds the Dependabot coverage that keeps them current.

Closes #736

Changes

  • Dockerfile: node:22-alpine and python:3.13-slim now carry the multi-arch manifest list digest. The tag stays for readability and Dependabot tracking; buildx still resolves the correct per-arch image.
  • .github/dependabot.yml: add the docker ecosystem. This is required, not optional: a digest pin with nothing watching it freezes the bases and stops upstream security patches, which is worse than the mutable tag it replaces.
  • .github/dependabot.yml: add cooldown: default-days: 7 to all four ecosystems. Security updates are exempt from cooldown, so patches are not delayed.

Testing

Both digests verified to resolve against the registry. hadolint clean. No Python touched and no test references the Dockerfile or Dependabot config.

Type of Change

  • Chore (chore:) — commit is typed build:

Checklist

  • Issue exists and is linked above with Closes #N
  • Linked issue has exactly one type:* and one priority:* label
  • Linked issue has at most one phase:* label (or none when not roadmap work)
  • Branch name matches issue scope
  • Tests added/updated for all changes — N/A, no application code
  • No secrets or sensitive data committed
  • Scope check: supply-chain hardening only, image contents unchanged

av1155 added 2 commits August 11, 2026 20:05
A tag can be repointed at a different image by the publisher; a digest
cannot. Both FROM lines now carry the multi-arch manifest list digest,
so buildx still resolves the correct per-arch image.

Adds the docker ecosystem to Dependabot in the same change: without it
a digest pin would freeze the bases and stop upstream security
patches, which is worse than the tag it replaces.

Cooldown holds a newly published version for 7 days before it is
proposed. Security updates are exempt, so patches are not delayed.
@av1155
av1155 merged commit d082ce8 into main Aug 12, 2026
@av1155
av1155 deleted the build/pin-base-image-digests branch August 12, 2026 00:50
@av1155 av1155 mentioned this pull request Aug 12, 2026
12 tasks
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.

security: pin Dockerfile base images by digest

1 participant