Repository navigation
Hardened Docker image, changelog, and 0.2.1 - #2
Merged
Merged
Conversation
Switches both stages from python:3.13-slim to dhi.io/python:3.13-alpine (and -alpine-dev for the build). GitPulse now installs into a pip-free virtualenv that is the only thing copied into a runtime with no shell or package manager, running as UID 65532. Trivy findings drop from 193 (50 High) to 0, and the image shrinks from 227 MB to 105 MB. CI and the release workflow log in to dhi.io with the existing Docker Hub secrets; fork PRs skip the image build. Bumps the version to 0.2.1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Records the first public release and the hardened Docker image, including the upgrade step for volumes written by the 0.2.0 image (UID 1000 to 65532). Links the changelog from the package metadata, ships it in the sdist, and adds it to the release steps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Rebuilds the Docker image on Docker Hardened Images to clear the vulnerabilities reported against
fullstackspectrum/gitpulse:latest.python:3.13-slimtodhi.io/python:3.13-alpine(-alpine-devfor the build).dhi.iowith the existingDOCKERHUB_USERNAMEandDOCKERHUB_TOKENsecrets. Pull requests from forks don't get secrets, so they skip the image build.urllib32.8.0 (0.2.0's formula pins 2.7.0).Results (same Trivy version, same Dockerfile structure)
python:3.13-slimlatestonly (3.15)Chosen: DHI Alpine. It's the smallest, keeps Python pinned for free, and its one remaining Scout finding is in the base image, which a rebuild picks up.
Testing
docker buildxbuilds bothlinux/amd64andlinux/arm64. The amd64 image ran under emulation.org(with--save),history, andreposagainstfullstackspectrum, including with--user "$(id -u):$(id -g)"on a bind mount.pytestandruffpass.🤖 Generated with Claude Code