Skip to content

ci: auto-rebuild :latest when the scheduled Trivy re-scan finds fixable CVEs - #42

Merged
tikibozo merged 1 commit into
mainfrom
ci/auto-rebuild-on-trivy-findings
Aug 31, 2026
Merged

tikibozo merged 1 commit into
mainfrom
ci/auto-rebuild-on-trivy-findings

Conversation

@tikibozo

Copy link
Copy Markdown
Owner

The weekly Security re-scan of the published :latest now self-heals instead of just going red.

New flow (schedule / manual dispatch only — nothing changes on PRs or pushes):

  1. Scan :latest as before, but findings no longer fail the run directly (continue-on-error on the scan step).
  2. On findings, call the existing Trivy-gated build workflow (workflow_call) to rebuild main at the current release version — the OS-package upgrade in the build pulls the patched packages, and the build's own Trivy gate still blocks the push if the fix isn't actually published upstream yet.
  3. Re-scan the republished :latest to verify.

Result: green run = clean or self-healed; red run = human attention genuinely needed (fix not shipped by the distro yet, or the rebuild didn't clear it).

Context: this morning's batch failure across all four repos (OpenSSL CVE-2026-14456 in unchanged base-image packages) — the class of finding Renovate structurally can't see, which previously needed a manual rebuild.

The new rebuild/verify jobs are schedule-only and must never be added to required checks.

🤖 Generated with Claude Code

https://claude.ai/code/session_01V1N3WEHKpJf9G3hN7H298o

…le CVEs

The weekly re-scan of the published image now hands findings to the
existing Trivy-gated build workflow (workflow_call) instead of just
failing: rebuild main at the current release version, then re-scan
:latest to verify. Green = clean or self-healed; red = the rebuild's
own gate refused to publish (fix not shipped upstream yet) or the
verify scan still finds issues.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V1N3WEHKpJf9G3hN7H298o
@tikibozo
tikibozo enabled auto-merge (squash) August 31, 2026 19:46
@tikibozo
tikibozo merged commit 71513df into main Aug 31, 2026
9 checks passed
@tikibozo
tikibozo deleted the ci/auto-rebuild-on-trivy-findings branch August 31, 2026 19:47
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