Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG BASE_IMAGE=registry.access.redhat.com/ubi9-micro:latest

FROM registry.access.redhat.com/ubi9/go-toolset:9.8-1782736563 AS builder
FROM registry.access.redhat.com/ubi9/go-toolset:9.8-1782980183 AS builder

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ”’ Security & Privacy | 🟠 Major | ⚑ Quick win

No digest pin β€” supply chain integrity gap (CWE-1357/CWE-494).

registry.access.redhat.com/ubi9/go-toolset:9.8-1782980183 is a mutable tag. Registry tags can be repointed or replaced without notice β€” verify provenance and pin by digest instead.

πŸ”’ Pin by digest
-FROM registry.access.redhat.com/ubi9/go-toolset:9.8-1782980183 AS builder
+FROM registry.access.redhat.com/ubi9/go-toolset:9.8-1782980183@sha256:<digest> AS builder

As per path instructions, "Pin base images by digest (@sha256:...) not just tag."

πŸ€– Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@Dockerfile` at line 3, The builder base image in the Dockerfile is pinned
only by a mutable tag, which leaves the build vulnerable to upstream image
changes. Update the FROM reference for the builder stage to use the same image
pinned by immutable digest (`@sha256`:...) instead of only the registry tag, so
the image identity is fixed and reproducible.

Source: Path instructions


ARG GIT_SHA=unknown
ARG GIT_DIRTY=""
Expand Down