Skip to content

fix(deploy): refresh and upgrade Debian packages in published images - #359

Merged
TheGreatAxios merged 2 commits into
mainfrom
cl-12436-unblock-publish-by-rebuilding-the-images-debian
Nov 26, 2026
Merged

TheGreatAxios merged 2 commits into
mainfrom
cl-12436-unblock-publish-by-rebuilding-the-images-debian

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

What

Unblocks the Publish workflow by letting the runtime image pull current Debian security updates on each workflow attempt and scanning both linux/amd64 and linux/arm64 before publishing.

Why

Publish had been failing at the Trivy scan because the cached runtime stage kept older Debian packages (including vulnerable Kerberos libraries), and pinning exact Debian package versions in deploy/Dockerfile broke uncached builds whenever Debian superseded a version such as libnss3. The previous scan step also only checked the runner's native architecture.

Changes

  • deploy/Dockerfile: remove hard-coded Debian package pins and manual apt/libapt-pkg7.0/zlib1g overrides, add ARG RUNTIME_CACHE_ID, and run apt-get upgrade -y --no-install-recommends before installing runtime packages.
  • .github/workflows/publish.yml: pass RUNTIME_CACHE_ID=${{ github.run_id }}-${{ github.run_attempt }} so Debian packages refresh once per workflow attempt while reusing the runtime layer across scan and multi-arch builds, and build + scan both linux/amd64 and linux/arm64 for the sidecar and hub images before the multi-arch publish steps.

Closes CL-12436

@linear-code

linear-code Bot commented Nov 25, 2026

Copy link
Copy Markdown

CL-12436

@TheGreatAxios
TheGreatAxios marked this pull request as draft November 26, 2026 06:42
@TheGreatAxios
TheGreatAxios force-pushed the cl-12436-unblock-publish-by-rebuilding-the-images-debian branch from 2f950c9 to 9447d22 Compare November 26, 2026 17:13
@TheGreatAxios TheGreatAxios changed the title fix(deploy): unblock Publish by updating the image's Debian packages fix(deploy): refresh and upgrade Debian packages in published images Nov 26, 2026
@TheGreatAxios
TheGreatAxios marked this pull request as ready for review November 26, 2026 17:28
@corbits-triage

corbits-triage Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Triage: Pass

No changes needed from you. A maintainer will review this pull request.

Notes:

  • changes sensitive paths: ci: .github/workflows/publish.yml, ci: deploy/Dockerfile

Approve held: code review did not report on this head.

@TheGreatAxios
TheGreatAxios added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit 448137e Nov 26, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant