Skip to content

[Snyk] Security upgrade alpine from 3.20 to 3.21.2 #305

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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 dhcp-controller/dhcpserver/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager main.go

# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM alpine:3.20
FROM alpine:3.21.2

Choose a reason for hiding this comment

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

Consider using image digest for immutability

Consider pinning to a specific digest instead of using tag 3.21.2 for the Alpine base image to ensure immutable builds. Using image tags can lead to different image content being pulled over time even with the same tag.

Code suggestion
Check the AI-generated fix before applying
Suggested change
FROM alpine:3.21.2
FROM alpine@sha256:c5c5fda71656f07c8567adf9f16a94277e0fb9639045681c4cd8e75fb2ea7505

Code Review Run #0d23cb


Is this a valid issue, or was it incorrectly flagged by the Agent?

  • it was incorrectly flagged

RUN apk add --no-cache dnsmasq
WORKDIR /
COPY --from=builder /workspace/manager .
Expand Down
Loading