Repository navigation
ci: rebuild the runtime stage so OS security fixes reach the image - #20
Merged
Merged
Conversation
The image scan failed on a fixable Critical and three High findings in OpenSSL (libssl3 3.0.20-1~deb12u2, fixed in 3.0.22-1~deb12u1). The runtime stage already runs `apt-get upgrade` for exactly this reason. But the build restores layers from the GitHub Actions cache, so that layer was replayed from before the fix existed, and the upgrade never ran again. The pinned base image has not been rebuilt upstream yet, so bumping its digest is not an option. Exclude the runtime stage from the cache (`no-cache-filters: runtime`). The builder stage, where the expensive wheel builds happen, stays cached. 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.
The image scan (Grype, fail on fixable High/Critical) failed on
main: OpenSSL in the runtime image islibssl3 3.0.20-1~deb12u2, with one Critical and three High advisories fixed in3.0.22-1~deb12u1.The runtime stage already runs
apt-get upgradefor exactly this reason, but the build restores layers from the GitHub Actions cache. That layer was replayed from before the fix existed, so the upgrade never ran again. The pinnedpython:3.14-slim-bookwormdigest has not been rebuilt upstream yet, so bumping it is not an option.This change excludes the runtime stage from the cache (
no-cache-filters: runtime). The builder stage, where the wheels are compiled, stays cached.Verified with a manual run on this branch: all CI jobs pass, including the image scan, and so does the security workflow.
🤖 Generated with Claude Code