Skip to content

Fix serena-mcp-server container: rebuild on python:3.13-slim to eliminate 413 CVEs - #48562

Closed
pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/container-image-scan-another-one
Closed

Fix serena-mcp-server container: rebuild on python:3.13-slim to eliminate 413 CVEs#48562
pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/container-image-scan-another-one

Conversation

Copilot AI commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

ghcr.io/github/serena-mcp-server:latest is pinned to a Feb 2026 build on python:3.11-slim with 413 vulnerabilities (61 Critical, 352 High). No updated image has been published upstream.

This PR adds build infrastructure directly in gh-aw to own the image and rebuild it on a patched base.

New files

  • containers/serena-mcp-server/Dockerfile — Multi-stage build mirroring the upstream image:

    • Stage 1 (golang:1.25-alpine): compiles gopls@v0.21.0 from source
    • Stage 2 (python:3.13-slim): installs git, Node.js/npm, golang-go, gopls, python-lsp-server[all], TypeScript language server, and the serena package; includes an init script to configure multi-language project settings on startup
  • .github/workflows/publish-serena-mcp-server.yml — Builds and pushes ghcr.io/github/serena-mcp-server:latest on:

    • Push to main touching containers/serena-mcp-server/**
    • Weekly schedule (Monday 04:00 UTC) to pick up base image CVE patches automatically
    • workflow_dispatch

    All action references pinned to SHA. Builds linux/amd64 + linux/arm64.

Follow-up required after merge

Once CI publishes the new image, run make recompile to update the sha256:bf343399... pin in 20+ .lock.yml files to the new digest.

…:3.13-slim base

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Update container image to resolve vulnerabilities Fix serena-mcp-server container: rebuild on python:3.13-slim to eliminate 413 CVEs Jul 28, 2026
Copilot AI requested a review from pelikhan July 28, 2026 08:33
@pelikhan pelikhan closed this Jul 28, 2026
@github-actions
github-actions Bot deleted the copilot/container-image-scan-another-one branch August 5, 2026 02:59
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.

[container-image-scan] Container findings for ghcr.io/github/serena-mcp-server

2 participants