Skip to content

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

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

Conversation

cruizen
Copy link
Contributor

@cruizen cruizen commented Feb 12, 2025

snyk-top-banner

Snyk has created this PR to fix 0 vulnerabilities in the dockerfile dependencies of this project.

Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image.

Snyk changed the following file(s):

  • yoshi/Dockerfile

We recommend upgrading to alpine:3.21.2, as this image has only 1 known vulnerabilities. To do this, merge this pull request, then verify your application still works as expected.


Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

Summary by Bito

Updates Alpine base image from version 3.20 to 3.21.2 in Dockerfile for security improvements recommended by Snyk. The change is minimal, affecting only the base image specification. A suggestion was made to use a specific digest instead of version tag for more consistent builds.

Unit tests added: False

Estimated effort to review (1-5, lower is better): 1

Copy link

bito-code-review bot commented Feb 12, 2025

Code Review Agent Run #db85fc

Actionable Suggestions - 1
  • yoshi/Dockerfile - 1
    • Consider using digest for Alpine image · Line 27-27
Review Details
  • Files reviewed - 1 · Commit Range: 9ac78cf..9ac78cf
    • yoshi/Dockerfile
  • Files skipped - 0
  • Tools
    • Golangci-lint (Linter) - ✔︎ Successful
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

AI Code Review powered by Bito Logo

Copy link

Changelist by Bito

This pull request implements the following key changes.

Key Change Files Impacted
Other Improvements - Docker Base Image Security Update

Dockerfile - Updated Alpine base image from 3.20 to 3.21.2 for security improvements

@@ -24,7 +24,7 @@ COPY dependencies /etc/plugin_templates
# by leaving it empty we can ensure that the container and binary shipped on it will have the same platform.
RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o manager main.go

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 digest for Alpine image

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:c5c5fda71656f07c8567aad6f89edab087e4a81c6a5adb0a8e4ce85f60be59b5

Code Review Run #db85fc


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

  • it was incorrectly flagged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants