Skip to content

Add a weekly image scan and apply Alpine security updates - #41

Merged
polius merged 2 commits into
mainfrom
ci/weekly-image-scan
Nov 9, 2026
Merged

polius merged 2 commits into
mainfrom
ci/weekly-image-scan

Conversation

@polius

@polius polius commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

Why

Alpine package fixes only reach users with a new release, and a vulnerability can appear without any commit to this repo. Dependabot only tracks the base image, not the packages inside it, so nothing flags when a fix is waiting.

What

  • Adds .github/workflows/scan.yml, the same workflow Flow uses. Every Monday at 06:17 UTC, and on demand, it builds the image with a fresh base and fails on any fixable High or Critical vulnerability found by grype.
  • Runs apk upgrade --no-cache in the final image, so security fixes land without waiting for an upstream rebuild. The trade-off is that the same commit can produce slightly different images over time.

Scan results

Local arm64 builds of this branch, scanned with grype v0.118.0 and the workflow's flags.

Before:

Package Installed Fixed in Findings
zlib 1.3.2-r1 1.4-r0 1 Critical

After: No High or Critical findings remain. 3 Medium or Low python findings are below the cutoff and need a newer Python.

Users get these fixes with the next release.

🤖 Generated with Claude Code

polius and others added 2 commits November 9, 2026 18:05
Alpine package fixes only reach users with a new release, and nothing
flags when one is waiting. Build the image fresh every Monday and fail
on any fixable High or Critical vulnerability, the same way Flow does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The base image only carries the Alpine packages from the day it was
built, and Dependabot can't see them. Run apk upgrade so security fixes
land without waiting for an upstream rebuild.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@polius polius changed the title Add a weekly image scan Add a weekly image scan and apply Alpine security updates Nov 9, 2026
@polius
polius merged commit 5ac471c into main Nov 9, 2026
5 checks passed
@polius
polius deleted the ci/weekly-image-scan branch November 9, 2026 17:31
@polius polius mentioned this pull request Nov 9, 2026
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.

1 participant