Skip to content

[Snyk] Security upgrade alpine from 3.16 to 3.21.3 #316

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 hostplumber/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 gcr.io/distroless/static:nonroot
FROM alpine:3.16
FROM alpine:3.21.3

Choose a reason for hiding this comment

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

Consider using digest SHA for base image

Consider using a more specific version tag for the base image. While alpine:3.21.3 is more specific than alpine:3.16, it might be worth considering pinning to a digest SHA for better reproducibility. For example: alpine:3.21.3@sha256:<digest>.

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

Code Review Run #08b56e


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

WORKDIR /

RUN apk update && apk upgrade
Expand Down
Loading