Skip to content

Pin Go builder image in Dockerfile by digest #3358

Description

@coderabbitai

Summary

Track a follow-up hardening change to pin the Go builder image in Dockerfile by digest instead of using only the mutable docker.io/library/golang:1.26.3 tag.

Rationale

The current build stage image reference is tag-only, which makes rebuilds less reproducible and weakens supply-chain hardening. The repository already uses digest-pinned base images in related container definitions (for example, Dockerfile.dist), so this would align the main Dockerfile with that pattern.

Affected area

  • Dockerfile

Requested change

Update the build stage FROM instruction to pin the Go image by digest, e.g.:

  • from: docker.io/library/golang:1.26.3
  • to: docker.io/library/golang:1.26.3@sha256:<resolved-digest>

Keep the change localized to the builder FROM line unless additional supporting updates are required.

Acceptance criteria

Backlinks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions