Skip to content
Open
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-1783931515 AS builder
FROM registry.access.redhat.com/ubi9/go-toolset:9.8-1784190466 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

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '\n== Dockerfile ==\n'
cat -n Dockerfile

printf '\n== Search for other FROM lines / digest pins ==\n'
rg -n '^FROM |`@sha256`:|ubi9/go-toolset' Dockerfile . || true

printf '\n== Check repo docker ignore ==\n'
if [ -f .dockerignore ]; then cat -n .dockerignore; else echo '.dockerignore missing'; fi

Repository: openshift-hyperfleet/hyperfleet-sentinel

Length of output: 4298


Pin both base images by digest. Dockerfile:1-3 still relies on tag-only references (ubi9-micro:latest and ubi9/go-toolset:9.8-1784190466), so builds can drift to different image contents without a code change (CWE-494). Use @sha256:... pins for both stages.

πŸ€– 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, Update both Dockerfile stages, including the builder
image reference, to pin their base images with the corresponding immutable
`@sha256` digests instead of tag-only references; preserve the existing image
repositories and stage structure.

Source: Path instructions


ARG GIT_SHA=unknown
ARG GIT_DIRTY=""
Expand Down